Fix cache size

This commit is contained in:
DanielSvoboda 2025-02-23 16:59:39 -03:00
parent bc85357235
commit 89a798a773

View File

@ -69,8 +69,12 @@ public:
}
// Cache path
QFile size_cache_file(Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) /
game.serial / "size_cache.txt");
QDir cacheDir =
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 dirInfo(dirPath);