mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
android: remove some jni functions, use APP_LIB_PATH instead of APP_DATA_PATH
This commit is contained in:
@@ -307,6 +307,9 @@ static bool Sys_GetExecutableName( char *out, int len )
|
||||
|
||||
bool FileSystem_GetExecutableDir( char *exedir, int exeDirLen )
|
||||
{
|
||||
#ifdef ANDROID
|
||||
Q_snprintf( exedir, exeDirLen, "%s", getenv("APP_LIB_PATH") );
|
||||
#else
|
||||
exedir[0] = 0;
|
||||
|
||||
if ( s_bUseVProjectBinDir )
|
||||
@@ -341,11 +344,7 @@ bool FileSystem_GetExecutableDir( char *exedir, int exeDirLen )
|
||||
|
||||
Q_FixSlashes( exedir );
|
||||
|
||||
#ifdef ANDROID
|
||||
const char* libDir = "lib";
|
||||
#else
|
||||
const char* libDir = "bin";
|
||||
#endif
|
||||
|
||||
// Return the bin directory as the executable dir if it's not in there
|
||||
// because that's really where we're running from...
|
||||
@@ -357,6 +356,7 @@ bool FileSystem_GetExecutableDir( char *exedir, int exeDirLen )
|
||||
Q_strncat( exedir, libDir, exeDirLen, COPY_ALL_CHARACTERS );
|
||||
Q_FixSlashes( exedir );
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user