Add setting for Kitkat Immersive Mode on Android.

This commit is contained in:
Henrik Rydgard committed 2014-02-09 23:16:08 +01:00
1 parent a0d5610f36
commit ca500b0bf4
8 files changed
+21 -6

No files matched your search

+6 -2
View File
@@ -202,8 +202,9 @@ std::string NativeQueryConfig(std::string query) {
if (query == "screenRotation") {
char temp[128];
sprintf(temp, "%i", g_Config.iScreenRotation);
ILOG("Rotation queried: %s", temp);
return temp;
} else if (query == "immersiveMode") {
return g_Config.bImmersiveMode ? "1" : "0";
} else {
return "";
}
@@ -793,11 +794,14 @@ void NativeShutdown() {
#ifdef ANDROID_NDK_PROFILER
moncleanup();
#endif
ILOG("NativeShutdown called");
System_SendMessage("finish", "");
// This means that the activity has been completely destroyed. PPSSPP does not
// boot up correctly with "dirty" global variables currently, so we hack around that
// by simply exiting.
#ifdef ANDROID
ILOG("NativeShutdown called");
exit(0);
#endif