headless: Fix startup on latest Android versions.

Otherwise it tries to use deprecated ashmem and chokes.
This commit is contained in:
Unknown W. Brackets committed 2022-09-03 21:06:32 -07:00
1 parent f75dadd1d6
commit fc50860f55
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -295,6 +295,7 @@ bool CPU_Init(std::string *errorString) {
HLEPlugins::Init();
if (!Memory::Init()) {
// We're screwed.
*errorString = "Memory init failed";
return false;
}
mipsr4k.Reset();
+5 -1
View File
@@ -95,7 +95,11 @@ void NativeResized() { }
std::string System_GetProperty(SystemProperty prop) { return ""; }
std::vector<std::string> System_GetPropertyStringVec(SystemProperty prop) { return std::vector<std::string>(); }
int System_GetPropertyInt(SystemProperty prop) { return -1; }
int System_GetPropertyInt(SystemProperty prop) {
if (prop == SYSPROP_SYSTEMVERSION)
return 31;
return -1;
}
float System_GetPropertyFloat(SystemProperty prop) { return -1.0f; }
bool System_GetPropertyBool(SystemProperty prop) {
switch (prop) {