mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 09:09:29 +01:00
Merge pull request #8611 from unknownbrackets/diskcache
Set cache dir before loading config
This commit is contained in:
commit
87f922c678
1 file changed
+5
-5
+5
-5
@@ -347,6 +347,11 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
g_Config.flash0Directory = File::GetExeDirectory() + "/flash0/";
|
||||
#endif
|
||||
|
||||
if (cache_dir && strlen(cache_dir)) {
|
||||
DiskCachingFileLoaderCache::SetCacheDir(cache_dir);
|
||||
g_Config.appCacheDirectory = cache_dir;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
logger = new AndroidLogger();
|
||||
|
||||
@@ -505,11 +510,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
if (GetGPUBackend() == GPUBackend::OPENGL) {
|
||||
gl_lost_manager_init();
|
||||
}
|
||||
|
||||
if (cache_dir && strlen(cache_dir)) {
|
||||
DiskCachingFileLoaderCache::SetCacheDir(cache_dir);
|
||||
g_Config.appCacheDirectory = cache_dir;
|
||||
}
|
||||
}
|
||||
|
||||
void NativeInitGraphics(GraphicsContext *graphicsContext) {
|
||||
|
||||
Reference in new issue
Block a user