mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
Fix cache size (#2517)
This commit is contained in:
parent
f1c70ce53c
commit
84a614dddc
1 changed files with 6 additions and 2 deletions
|
@ -69,8 +69,12 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cache path
|
// Cache path
|
||||||
QFile size_cache_file(Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) /
|
QDir cacheDir =
|
||||||
game.serial / "size_cache.txt");
|
QDir(Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) / game.serial);
|
||||||
|
if (!cacheDir.exists()) {
|
||||||
|
cacheDir.mkpath(".");
|
||||||
|
}
|
||||||
|
QFile size_cache_file(cacheDir.absoluteFilePath("size_cache.txt"));
|
||||||
QFileInfo cacheInfo(size_cache_file);
|
QFileInfo cacheInfo(size_cache_file);
|
||||||
QFileInfo dirInfo(dirPath);
|
QFileInfo dirInfo(dirPath);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue