Skip to content

Commit

Permalink
Android: Show base dir to splash logs when starting
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Oct 26, 2023
1 parent a2c4e06 commit b74e21d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Android/app/src/main/java/emu/project64/SplashActivity.java
Expand Up @@ -112,10 +112,11 @@ public void StartExtraction()
{
return;
}
mInit = true;
mInit = false;
String ConfigFile = AndroidDevice.PACKAGE_DIRECTORY + "/Config/Project64.cfg";
if((new File(ConfigFile)).exists())
{
mInit = true;
InitProject64();
}

Expand Down
3 changes: 2 additions & 1 deletion Source/Android/Bridge/jniBridge.cpp
Expand Up @@ -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", "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", "");

if (g_Logger == NULL)
{
Expand All @@ -235,6 +234,7 @@ EXPORT jboolean CALL Java_emu_project64_jni_NativeExports_appInit(JNIEnv * env,

const char * baseDir = env->GetStringUTFChars(BaseDir, 0);
bool res = AppInit(&Notify(), baseDir, 0, NULL);
__android_log_print(ANDROID_LOG_INFO, "Project64", "baseDir: %s", baseDir);
env->ReleaseStringUTFChars(BaseDir, baseDir);
if (res)
{
Expand All @@ -251,6 +251,7 @@ EXPORT jboolean CALL Java_emu_project64_jni_NativeExports_appInit(JNIEnv * env,
{
AppCleanup();
}
__android_log_print(ANDROID_LOG_INFO, "Project64", "");
return res;
}

Expand Down

0 comments on commit b74e21d

Please sign in to comment.