Move game_data to RW directory inside user folder for linux

This commit is contained in:
Live session user 2024-07-13 16:19:02 -07:00
parent 83c8204d23
commit a1fbab5de7
5 changed files with 14 additions and 13 deletions

View file

@ -20,7 +20,7 @@ int main(int argc, char* argv[]) {
// Load configurations and initialize Qt application
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
Config::load(config_dir / "config.toml");
QString gameDataPath = qApp->applicationDirPath() + "/game_data/";
QString gameDataPath = QDir::currentPath() + "/user/game_data/";
std::string stdStr = gameDataPath.toStdString();
std::filesystem::path path(stdStr);
#ifdef _WIN64