From 240d765534323d176b477212fea3275a51434f6d Mon Sep 17 00:00:00 2001 From: cheezwiz7899 Date: Fri, 3 Jul 2026 12:53:00 +1000 Subject: [PATCH] stop making two different paths for appdata --- src/citron/game_list.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/citron/game_list.cpp b/src/citron/game_list.cpp index 967374ec8a..32d6f5d2dc 100644 --- a/src/citron/game_list.cpp +++ b/src/citron/game_list.cpp @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include @@ -4483,8 +4482,9 @@ void GameList::SaveGameListIndex() { root_array.append(folder_obj); } - const QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + - QStringLiteral("/game_list_metadata.json"); + const auto cache_dir = Common::FS::GetCitronPath(Common::FS::CitronPath::CacheDir) / "game_list"; + const QString path = + QString::fromStdString(Common::FS::PathToUTF8String(cache_dir / "game_list_metadata.json")); QDir().mkpath(QFileInfo(path).absolutePath()); QFile file(path); if (file.open(QIODevice::WriteOnly)) { @@ -4493,8 +4493,9 @@ void GameList::SaveGameListIndex() { } void GameList::LoadGameListIndex() { - const QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + - QStringLiteral("/game_list_metadata.json"); + const auto cache_dir = Common::FS::GetCitronPath(Common::FS::CitronPath::CacheDir) / "game_list"; + const QString path = + QString::fromStdString(Common::FS::PathToUTF8String(cache_dir / "game_list_metadata.json")); QFile file(path); if (!file.open(QIODevice::ReadOnly)) return;