Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Jun 10, 2024
1 parent 228e9c4 commit c1a4739
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions source/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,22 +142,23 @@ static void set_pluginsperms_callback(int sel)
static void change_url_callback(int sel)
{
if (osk_dialog_get_text("Enter the Cheat Download URL (1/3)", gcm_config.url_cheats, sizeof(gcm_config.url_cheats)))
{
if (gcm_config.url_cheats[strlen(gcm_config.url_cheats)-1] != '/')
strcat(gcm_config.url_cheats, "/");

show_message("Cheat Download URL changed to:\n%s", gcm_config.url_cheats);
}

if (osk_dialog_get_text("Enter the Patch Download URL (2/3)", gcm_config.url_patches, sizeof(gcm_config.url_patches)))
{
if (gcm_config.url_patches[strlen(gcm_config.url_patches)-1] != '/')
strcat(gcm_config.url_patches, "/");

show_message("Patch Download URL changed to:\n%s", gcm_config.url_patches);
}

if (osk_dialog_get_text("Enter the Plugin Download URL (3/3)", gcm_config.url_plugins, sizeof(gcm_config.url_plugins)))
show_message("Plugin Download URL changed to:\n%s", gcm_config.url_plugins);

if (gcm_config.url_cheats[strlen(gcm_config.url_cheats)-1] != '/')
strcat(gcm_config.url_cheats, "/");

if (gcm_config.url_patches[strlen(gcm_config.url_patches)-1] != '/')
strcat(gcm_config.url_patches, "/");

if (gcm_config.url_plugins[strlen(gcm_config.url_plugins)-1] != '/')
strcat(gcm_config.url_plugins, "/");
}

void update_callback(int sel)
Expand Down

0 comments on commit c1a4739

Please sign in to comment.