diff --git a/Projects/Android/jni/OpenJK/shared/sys/sys_main.cpp b/Projects/Android/jni/OpenJK/shared/sys/sys_main.cpp index a1b32dc..62ad42c 100644 --- a/Projects/Android/jni/OpenJK/shared/sys/sys_main.cpp +++ b/Projects/Android/jni/OpenJK/shared/sys/sys_main.cpp @@ -571,6 +571,7 @@ void *Sys_LoadSPGameDll( const char *name, GetGameAPIProc **GetGameAPI ) char *apppath = Cvar_VariableString( "fs_apppath" ); #endif const char* binarypath = Sys_BinaryPath(); + const char* current_dir = Sys_CurrentDirname(); const char *searchPaths[] = { homepath, @@ -579,6 +580,7 @@ void *Sys_LoadSPGameDll( const char *name, GetGameAPIProc **GetGameAPI ) #endif basepath, binarypath, + current_dir, cdpath, }; size_t numPaths = ARRAY_LEN( searchPaths ); diff --git a/Projects/Android/jni/OpenJK/shared/sys/sys_win32.cpp b/Projects/Android/jni/OpenJK/shared/sys/sys_win32.cpp index 92d3943..2de9664 100644 --- a/Projects/Android/jni/OpenJK/shared/sys/sys_win32.cpp +++ b/Projects/Android/jni/OpenJK/shared/sys/sys_win32.cpp @@ -99,11 +99,6 @@ const char *Sys_CurrentDirname( ) dir ); - while( length > 0 && dir[ length ] != '\\' ) - length--; - - dir[ length ] = '\0'; - return dir; }