Skip to content

Commit

Permalink
use dynamic urls
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Jun 9, 2024
1 parent 2984644 commit e4241e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions source/exec_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ static void togglePatch(const game_entry_t* game, const code_entry_t* code)

static void updNetCheats(void)
{
if (!http_download(GOLDCHEATS_URL, GOLDCHEATS_FILE, CHEATSMGR_LOCAL_CACHE LOCAL_TEMP_ZIP, 1))
if (!http_download(gcm_config.url_cheats, GOLDCHEATS_FILE, CHEATSMGR_LOCAL_CACHE LOCAL_TEMP_ZIP, 1))
{
show_message("No internet connection to " GOLDCHEATS_URL GOLDCHEATS_FILE " or server not available!");
show_message("No internet connection to %s%s or server not available!", gcm_config.url_cheats, GOLDCHEATS_FILE);
return;
}

Expand All @@ -74,9 +74,9 @@ static void updNetCheats(void)

static void updNetPatches(void)
{
if (!http_download(GOLDPATCH_URL, GOLDPATCH_FILE, CHEATSMGR_LOCAL_CACHE LOCAL_TEMP_ZIP, 1))
if (!http_download(gcm_config.url_patches, GOLDPATCH_FILE, CHEATSMGR_LOCAL_CACHE LOCAL_TEMP_ZIP, 1))
{
show_message("No internet connection to " GOLDPATCH_URL GOLDPATCH_FILE " or server not available!");
show_message("No internet connection to %s%s or server not available!", gcm_config.url_patches, GOLDPATCH_FILE);
return;
}

Expand All @@ -97,9 +97,9 @@ static void updNetPatches(void)

static void updNetPlugins(void)
{
if (!http_download(GOLDPLUGINS_UPDATE_URL, "", CHEATSMGR_LOCAL_CACHE "plugins.json", 0))
if (!http_download(gcm_config.url_plugins, "", CHEATSMGR_LOCAL_CACHE "plugins.json", 0))
{
show_message("No internet connection to " GOLDPLUGINS_UPDATE_URL " or server not available!");
show_message("No internet connection to %s or server not available!", gcm_config.url_plugins);
return;
}

Expand Down
6 changes: 3 additions & 3 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ app_config_t gcm_config = {
.update = 1,
.overwrite = 1,
.user_id = 0,
.url_cheats = GOLDCHEATS_URL,
.url_patches = GOLDPATCH_URL,
.url_plugins = GOLDPLUGINS_UPDATE_URL,
.url_cheats = GOLDCHEATS_URL,
.url_patches = GOLDPATCH_URL,
.url_plugins = GOLDPLUGINS_UPDATE_URL,
};

int close_app = 0;
Expand Down

0 comments on commit e4241e8

Please sign in to comment.