Android: Show base dir to splash logs when starting

This commit is contained in:
zilmar 2023-10-26 11:17:49 +10:30
parent a2c4e06f90
commit b74e21d056
2 changed files with 4 additions and 2 deletions

View File

@ -112,10 +112,11 @@ public class SplashActivity extends AppCompatActivity implements ExtractAssetZip
{ {
return; return;
} }
mInit = true; mInit = false;
String ConfigFile = AndroidDevice.PACKAGE_DIRECTORY + "/Config/Project64.cfg"; String ConfigFile = AndroidDevice.PACKAGE_DIRECTORY + "/Config/Project64.cfg";
if((new File(ConfigFile)).exists()) if((new File(ConfigFile)).exists())
{ {
mInit = true;
InitProject64(); InitProject64();
} }

View File

@ -219,7 +219,6 @@ EXPORT jboolean CALL Java_emu_project64_jni_NativeExports_appInit(JNIEnv * env,
__android_log_print(ANDROID_LOG_INFO, "Project64", " /___/"); __android_log_print(ANDROID_LOG_INFO, "Project64", " /___/");
__android_log_print(ANDROID_LOG_INFO, "Project64", "https://www.pj64-emu.com/"); __android_log_print(ANDROID_LOG_INFO, "Project64", "https://www.pj64-emu.com/");
__android_log_print(ANDROID_LOG_INFO, "Project64", "%s", stdstr_f("%s Version %s", VER_FILE_DESCRIPTION_STR, VER_FILE_VERSION_STR).c_str()); __android_log_print(ANDROID_LOG_INFO, "Project64", "%s", stdstr_f("%s Version %s", VER_FILE_DESCRIPTION_STR, VER_FILE_VERSION_STR).c_str());
__android_log_print(ANDROID_LOG_INFO, "Project64", "");
if (g_Logger == NULL) if (g_Logger == NULL)
{ {
@ -235,6 +234,7 @@ EXPORT jboolean CALL Java_emu_project64_jni_NativeExports_appInit(JNIEnv * env,
const char * baseDir = env->GetStringUTFChars(BaseDir, 0); const char * baseDir = env->GetStringUTFChars(BaseDir, 0);
bool res = AppInit(&Notify(), baseDir, 0, NULL); bool res = AppInit(&Notify(), baseDir, 0, NULL);
__android_log_print(ANDROID_LOG_INFO, "Project64", "baseDir: %s", baseDir);
env->ReleaseStringUTFChars(BaseDir, baseDir); env->ReleaseStringUTFChars(BaseDir, baseDir);
if (res) if (res)
{ {
@ -251,6 +251,7 @@ EXPORT jboolean CALL Java_emu_project64_jni_NativeExports_appInit(JNIEnv * env,
{ {
AppCleanup(); AppCleanup();
} }
__android_log_print(ANDROID_LOG_INFO, "Project64", "");
return res; return res;
} }