Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy android port #1530

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
fbb91e5
Revert "engine: partially remove legacy Android port, in preparation …
mittorn Oct 23, 2023
eed13cf
waifulib/xcompile: host clang experiments (ndk ld)
mittorn Oct 24, 2023
bb97750
platform/android_nosdl: fix build (ndk10, host clang15)
mittorn Oct 24, 2023
30c69d3
wscript: add external projects support (updated waf required)
mittorn Oct 24, 2023
34aab39
waifulib/xcompile: fix host clang16
mittorn Oct 25, 2023
c2e14eb
platform/android: rewrite egl part to separate not android-specific file
mittorn Oct 26, 2023
ea35863
platform/android: disable swbuffer resize hack, wrong buffer size rea…
mittorn Oct 26, 2023
7b4fd3b
platform/android: debug surface enabling/disabling, add notification …
mittorn Oct 26, 2023
06c6371
platform/eglutil: prevent rendering while no surface
mittorn Oct 26, 2023
44b1a8e
platform/android: implement dumb dladdr fallback (only searches in se…
mittorn Oct 28, 2023
d423c43
waf/xcompile: fix ld path for host clang
mittorn Oct 28, 2023
bb55de5
platform/android: prevent rendering without context, fix android_slee…
mittorn Oct 30, 2023
46c82e8
waifu: set external waifulibs for extra-projects
mittorn Oct 31, 2023
16eeaef
wscript: check if extra-projects was set in configuration
mittorn Oct 31, 2023
313f2a8
waifulib/xcompile: add android-from-none for new host-clang versions,…
mittorn Nov 1, 2023
55943ad
waifulib/xcompile: disable stpcpy on host-clang
mittorn Nov 1, 2023
1b9af8c
waifulib/xcompile: add objcopy tool to android configuration, allow s…
mittorn Nov 1, 2023
88f76c6
ref_gl: workaround using fake arb functions on GLES (Mali400 has stub…
mittorn Nov 1, 2023
16aa2e9
vid/android: Remove pixelFormat selection code, it only used to set d…
mittorn Dec 1, 2023
e21d8df
platform/android-nosdl: Move all bindings to XashBindings class, work…
mittorn Dec 1, 2023
7841382
platform/android-nosdl: fix declaration style (werror)
mittorn Dec 1, 2023
0d18753
platform/android-nosdl: add Platform_Shutdown for preShutdown callback
mittorn Dec 1, 2023
0901fd9
platform/android-nosdl: optionally wait gdb in nativeInit, enable dum…
mittorn Dec 1, 2023
91d9ca7
platform/android-nosdl: restore SIGTRAP handler
mittorn Dec 2, 2023
a5f3fce
platform/android-nosdl: add workarounds for yama bullshit
mittorn Dec 3, 2023
9484eff
wscript: fix options in external projects
mittorn Dec 8, 2023
abeb267
scripts/waifulib: save zip task to make it output reuseable
mittorn Dec 10, 2023
6fec039
wscript: re-enable xash-extras on android
mittorn Dec 10, 2023
9c09797
wscript: only enable SINGLE_BINARY and XASH_SDLMAIN on android when S…
mittorn Dec 13, 2023
ffe1ff3
waifulib/xcompile: make clang work with original stlport
mittorn Dec 13, 2023
96c3679
platform/android/dlsym-weak: fix code style
mittorn Dec 16, 2023
4953656
platform/android/dlsym-weak: do not call LoadLibrary to find server l…
mittorn Dec 16, 2023
93e5faa
Remove unused macro and spaces restored by revert
mittorn Dec 16, 2023
892c735
Replace harmless single-line pair assigns by multi-line, need more ne…
mittorn Dec 16, 2023
ec92d05
Fix wrong function name and macro on ARM target
mittorn Dec 16, 2023
dbc54fb
platform/android_nosdl: reduce unneeded logging
mittorn Dec 16, 2023
be9dda2
platform/android_nosdl: remove NULL native object case
mittorn Dec 16, 2023
d6cfc65
platform/android_nosdl: remove dynamic cvars
mittorn Dec 16, 2023
26cbb1d
platform/android_nosdl: use ARRAYSIZE
mittorn Dec 16, 2023
bd5309b
platform/android_nosdl: fix forgotten static
mittorn Dec 16, 2023
42958bc
platform/android_nosdl: use FS_GetDiskPath for icon path
mittorn Dec 16, 2023
0442af7
platform/android_nosdl/dlsym-weak: move includes/defines to the begin…
mittorn Dec 16, 2023
38a3154
ref/gl: refactor gl extension checking again
mittorn Dec 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
platform/android_nosdl: remove NULL native object case
mittorn authored and a1batross committed Feb 27, 2024
commit be9dda2a5611665718d649a31f9e2053a9296830
7 changes: 1 addition & 6 deletions engine/platform/android/android_nosdl.c
Original file line number Diff line number Diff line change
@@ -667,14 +667,9 @@ Android_GetNativeObject
*/
void *Android_GetNativeObject( const char *objName )
{
static const char *availObjects[] = { "JNIEnv", "ActivityClass", NULL };
void *object = NULL;

if( !objName )
{
object = (void*)availObjects;
}
else if( !strcasecmp( objName, "JNIEnv" ) )
if( !strcasecmp( objName, "JNIEnv" ) )
{
object = (void*)jni.env;
}