From a0ee4ce41ddbbb85b5cf54d9159c3ea6c0a64327 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 23 Mar 2024 22:38:10 +0100 Subject: games-emulation/cemu: new package, add 2.0_p20240315 --- .../cemu-0002-remove-default-from-system-g.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 games-emulation/cemu/files/cemu-0002-remove-default-from-system-g.patch (limited to 'games-emulation/cemu/files') diff --git a/games-emulation/cemu/files/cemu-0002-remove-default-from-system-g.patch b/games-emulation/cemu/files/cemu-0002-remove-default-from-system-g.patch new file mode 100644 index 0000000..ee05b94 --- /dev/null +++ b/games-emulation/cemu/files/cemu-0002-remove-default-from-system-g.patch @@ -0,0 +1,39 @@ +From 64707c83cd3e060606781b87813ff6b73566d342 Mon Sep 17 00:00:00 2001 +From: Andrew Udvare +Date: Fri, 2 Sep 2022 00:19:59 -0400 +Subject: [PATCH 2/3] Remove /default/ from system gameProfiles path + +--- + src/Cafe/CafeSystem.cpp | 2 +- + src/Cafe/GameProfile/GameProfile.cpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Cafe/CafeSystem.cpp b/src/Cafe/CafeSystem.cpp +index 19b6c49..f00c469 100644 +--- a/src/Cafe/CafeSystem.cpp ++++ b/src/Cafe/CafeSystem.cpp +@@ -216,7 +216,7 @@ void InfoLog_TitleLoaded() + // game profile info + std::string gameProfilePath; + if(g_current_game_profile->IsDefaultProfile()) +- gameProfilePath = fmt::format("gameProfiles/default/{:016x}.ini", titleId); ++ gameProfilePath = fmt::format("gameProfiles/{:016x}.ini", titleId); + else + gameProfilePath = fmt::format("gameProfiles/{:016x}.ini", titleId); + cemuLog_log(LogType::Force, "gameprofile path: {}", g_current_game_profile->IsLoaded() ? gameProfilePath : std::string(" (not present)")); +diff --git a/src/Cafe/GameProfile/GameProfile.cpp b/src/Cafe/GameProfile/GameProfile.cpp +index 24aee64..06f233b 100644 +--- a/src/Cafe/GameProfile/GameProfile.cpp ++++ b/src/Cafe/GameProfile/GameProfile.cpp +@@ -185,7 +185,7 @@ bool GameProfile::Load(uint64_t title_id) + std::optional> profileContents = FileStream::LoadIntoMemory(gameProfilePath); + if (!profileContents) + { +- gameProfilePath = ActiveSettings::GetDataPath("gameProfiles/default/{:016x}.ini", title_id); ++ gameProfilePath = ActiveSettings::GetDataPath("gameProfiles/{:016x}.ini", title_id); + profileContents = FileStream::LoadIntoMemory(gameProfilePath); + if (!profileContents) + return false; +-- +2.37.3 + -- cgit v1.2.3-2-gb3c3