mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Attempt to load VFS in headless on Android.
Otherwise we don't get fonts, and savestates fail to load.
This commit is contained in:
parent
36c3a0dd68
commit
4c35c1bb13
1 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <cstdlib>
|
||||
#include <limits>
|
||||
|
||||
#include "file/zip_read.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/Core.h"
|
||||
|
@ -375,6 +376,16 @@ int main(int argc, const char* argv[])
|
|||
if (screenshotFilename != 0)
|
||||
headlessHost->SetComparisonScreenshot(screenshotFilename);
|
||||
|
||||
#ifdef ANDROID
|
||||
// For some reason the debugger installs it with this name?
|
||||
if (File::Exists("/data/app/org.ppsspp.ppsspp-2.apk")) {
|
||||
VFSRegister("", new ZipAssetReader("/data/app/org.ppsspp.ppsspp-2.apk", "assets/"));
|
||||
}
|
||||
if (File::Exists("/data/app/org.ppsspp.ppsspp.apk")) {
|
||||
VFSRegister("", new ZipAssetReader("/data/app/org.ppsspp.ppsspp.apk", "assets/"));
|
||||
}
|
||||
#endif
|
||||
|
||||
if (stateToLoad != NULL)
|
||||
SaveState::Load(stateToLoad);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue