mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
headless: Fix startup on latest Android versions.
Otherwise it tries to use deprecated ashmem and chokes.
This commit is contained in:
1 parent
f75dadd1d6
commit
fc50860f55
2 files changed
+6
-1
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user