diff --git a/scriptmodules/ports/gmloader.sh b/scriptmodules/ports/gmloader.sh index 0f777660..29a6cfe2 100644 --- a/scriptmodules/ports/gmloader.sh +++ b/scriptmodules/ports/gmloader.sh @@ -13,7 +13,7 @@ rp_module_id="gmloader" rp_module_desc="GMLoader - play GameMaker Studio games for Android on non-Android operating systems" rp_module_help="ROM Extensions: .apk .APK\n\nIncludes free games Maldita Castilla and Spelunky Classic HD. Use launch scripts as template for additional games." -rp_module_repo="git https://github.com/s1eve-mcdichae1/droidports.git patch-config-dir cc31738" +rp_module_repo="git https://github.com/JohnnyonFlame/droidports.git master faf3970" rp_module_licence="GPL3 https://raw.githubusercontent.com/JohnnyonFlame/droidports/master/LICENSE.md" rp_module_section="exp" rp_module_flags="!all rpi4" @@ -24,6 +24,8 @@ function depends_gmloader() { function sources_gmloader() { gitPullOrClone + # group config dirs in parent gmloader dir + applyPatch "$md_data/01_config_dir.patch" } function build_gmloader() { diff --git a/scriptmodules/ports/gmloader/01_config_dir.patch b/scriptmodules/ports/gmloader/01_config_dir.patch new file mode 100644 index 00000000..00cc7df5 --- /dev/null +++ b/scriptmodules/ports/gmloader/01_config_dir.patch @@ -0,0 +1,13 @@ +diff --git a/ports/gmloader/libyoyo.c b/ports/gmloader/libyoyo.c +index e224cb9..055456a 100644 +--- a/ports/gmloader/libyoyo.c ++++ b/ports/gmloader/libyoyo.c +@@ -88,7 +88,7 @@ void setup_platform_savedir(const char *gamename) + //TODO:: Update psvita sdk and use the newlib mkdir. + #ifndef PLATFORM_VITA + // For linux targets +- snprintf(platform_savedir, sizeof(platform_savedir), "%s/.config/%s/", getenv("HOME"), gamename); ++ snprintf(platform_savedir, sizeof(platform_savedir), "%s/.config/gmloader/%s/", getenv("HOME"), gamename); + warning("Saving to folder %s.\n", platform_savedir); + + char mkdir_cmd[PATH_MAX];