Mount /data to <userdir>/data instead of <userdir>/data/gameid (#4066)

This commit is contained in:
kalaposfos13 2026-02-22 18:10:55 +01:00 committed by GitHub
parent fb5c36fa11
commit 607d704707
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,11 +341,8 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
g_window = window.get();
const auto& mount_data_dir = Common::FS::GetUserPath(Common::FS::PathType::GameDataDir) / id;
if (!std::filesystem::exists(mount_data_dir)) {
std::filesystem::create_directory(mount_data_dir);
}
mnt->Mount(mount_data_dir, "/data"); // should just exist, manually create with game serial
const auto& mount_data_dir = Common::FS::GetUserPath(Common::FS::PathType::GameDataDir);
mnt->Mount(mount_data_dir, "/data");
// Mounting temp folders
const auto& mount_temp_dir = Common::FS::GetUserPath(Common::FS::PathType::TempDataDir) / id;