Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmloader.sh - update module_repo, use patch file instead of own fork … #93

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scriptmodules/ports/gmloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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() {
Expand Down
13 changes: 13 additions & 0 deletions scriptmodules/ports/gmloader/01_config_dir.patch
Original file line number Diff line number Diff line change
@@ -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];