distribution/packages/games/libretro/ppsspp/patches/003-libretro-path-fix.patch

22 lines
926 B
Diff
Raw Normal View History

2022-10-27 21:46:49 +00:00
diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp
index 9b4a20bd9..cc32ea83c 100644
--- a/libretro/libretro.cpp
+++ b/libretro/libretro.cpp
@@ -993,9 +993,13 @@ void retro_init(void)
retro_base_dir /= "PPSSPP";
- g_Config.currentDirectory = retro_base_dir;
- g_Config.defaultCurrentDirectory = retro_base_dir;
- g_Config.memStickDirectory = retro_save_dir;
+ g_Config.defaultCurrentDirectory = Path(getenv("HOME"));
+ g_Config.memStickDirectory = g_Config.defaultCurrentDirectory / ".config/ppsspp";
+ g_Config.flash0Directory = g_Config.defaultCurrentDirectory / "assets" / "flash0";
+
+ //g_Config.currentDirectory = retro_base_dir;
+ //g_Config.defaultCurrentDirectory = retro_base_dir;
+ //g_Config.memStickDirectory = retro_save_dir;
g_Config.flash0Directory = retro_base_dir / "flash0";
g_Config.internalDataDirectory = retro_base_dir;
g_Config.bEnableNetworkChat = false;