mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
Rearrange NativeInit dirs. Linux buildfix.
This commit is contained in:
1 parent
bf1e07661a
commit
a0aa6e3212
5 files changed
+19
-427
No files matched your search
+11
-18
@@ -217,13 +217,8 @@ void NativeInit(int argc, const char *argv[],
|
||||
setlocale( LC_ALL, "C" );
|
||||
std::string user_data_path = savegame_directory;
|
||||
isMessagePending = false;
|
||||
// We want this to be FIRST.
|
||||
#ifndef USING_QT_UI
|
||||
#ifdef BLACKBERRY
|
||||
// Packed assets are included in app/native/ dir
|
||||
VFSRegister("", new DirectoryAssetReader("app/native/assets/"));
|
||||
#elif defined(IOS)
|
||||
VFSRegister("", new DirectoryAssetReader(external_directory));
|
||||
|
||||
#ifdef IOS
|
||||
user_data_path += "/";
|
||||
#elif defined(__APPLE__)
|
||||
char program_path[4090];
|
||||
@@ -233,12 +228,18 @@ void NativeInit(int argc, const char *argv[],
|
||||
char assets_path[4096];
|
||||
sprintf(assets_path,"%sassets/",program_path);
|
||||
VFSRegister("", new DirectoryAssetReader(assets_path));
|
||||
VFSRegister("", new DirectoryAssetReader("assets/"));
|
||||
#endif
|
||||
|
||||
// We want this to be FIRST.
|
||||
#ifndef USING_QT_UI
|
||||
#if defined(BLACKBERRY) || defined(IOS)
|
||||
// Packed assets are included in app
|
||||
VFSRegister("", new DirectoryAssetReader(external_directory));
|
||||
#else
|
||||
VFSRegister("", new DirectoryAssetReader("assets/"));
|
||||
#endif
|
||||
#endif
|
||||
VFSRegister("", new DirectoryAssetReader(user_data_path.c_str()));
|
||||
VFSRegister("", new DirectoryAssetReader(savegame_directory);
|
||||
|
||||
host = new NativeHost();
|
||||
|
||||
@@ -333,15 +334,7 @@ void NativeInit(int argc, const char *argv[],
|
||||
g_Config.flashDirectory = std::string(external_directory)+"/flash/";
|
||||
#elif defined(BLACKBERRY) || defined(__SYMBIAN32__) || defined(MEEGO_EDITION_HARMATTAN) || defined(IOS) || defined(_WIN32)
|
||||
g_Config.memCardDirectory = user_data_path;
|
||||
#ifdef BLACKBERRY
|
||||
g_Config.flashDirectory = "app/native/assets/flash/";
|
||||
#elif defined(IOS)
|
||||
g_Config.flashDirectory = std::string(external_directory) + "flash0/";
|
||||
#elif defined(MEEGO_EDITION_HARMATTAN)
|
||||
g_Config.flashDirectory = "/opt/PPSSPP/flash/";
|
||||
#else
|
||||
g_Config.flashDirectory = user_data_path+"/flash/";
|
||||
#endif
|
||||
g_Config.flashDirectory = std::string(external_directory)+"flash/";
|
||||
#else
|
||||
g_Config.memCardDirectory = std::string(getenv("HOME"))+"/.ppsspp/";
|
||||
g_Config.flashDirectory = g_Config.memCardDirectory+"/flash/";
|
||||
|
||||
Reference in new issue
Block a user