Config: Move data path settings to Paths.

This commit is contained in:
Unknown W. Brackets committed 2021-05-15 11:11:37 -07:00
1 parent 15038bb663
commit 2558022afe
8 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -605,7 +605,7 @@ Path GetSysDirectory(PSPDirectories directoryType) {
return g_Config.memStickDirectory / "PSP/PLUGINS";
case DIRECTORY_APP_CACHE:
if (!g_Config.appCacheDirectory.empty()) {
return Path(g_Config.appCacheDirectory);
return g_Config.appCacheDirectory;
}
return g_Config.memStickDirectory / "PSP/SYSTEM/CACHE";
case DIRECTORY_VIDEO:
@@ -638,7 +638,7 @@ void InitSysDirectories() {
#else
// Caller sets this to the Documents folder.
const Path rootMyDocsPath = Path(g_Config.internalDataDirectory);
const Path rootMyDocsPath = g_Config.internalDataDirectory;
const Path myDocsPath = rootMyDocsPath / "PPSSPP";
const Path installedFile = path / "installed.txt";
const bool installed = File::Exists(installedFile);