Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Apr 9, 2023
1 parent d5dc9c4 commit b78073e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/save_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ int create_savegame_folder(const char* folder)

static void _log_settings(app_config_t* config)
{
LOG("Apollo Save Tool v%s - Patch Engine v%s", APOLLO_VERSION, APOLLO_LIB_VERSION);
LOG("Apollo Save Tool v%s - Patch Engine v%s", APOLLO_VERSION, APOLLO_LIB_VERSION);
LOG("User Settings: UserID (%08d) AccountID (%016lX)", config->user_id, config->account_id);
LOG("PSID %016lX %016lX", config->psid[0], config->psid[1]);
LOG("IDPS %016lX %016lX", config->idps[0], config->idps[1]);
Expand Down
4 changes: 2 additions & 2 deletions source/saves.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ int ReadOnlineSaves(save_entry_t * game)
char path[256];
snprintf(path, sizeof(path), APOLLO_LOCAL_CACHE "%s.txt", game->title_id);

if (file_exists(path) == SUCCESS)
if (file_exists(path) == SUCCESS && strcmp(apollo_config.save_db, ONLINE_URL) == 0)
{
struct stat stats;
stat(path, &stats);
Expand Down Expand Up @@ -1589,7 +1589,7 @@ static void _ReadOnlineListEx(const char* urlPath, uint16_t flag, list_t *list)

snprintf(path, sizeof(path), APOLLO_LOCAL_CACHE "%04X_games.txt", flag);

if (file_exists(path) == SUCCESS)
if (file_exists(path) == SUCCESS && strcmp(apollo_config.save_db, ONLINE_URL) == 0)
{
struct stat stats;
stat(path, &stats);
Expand Down
3 changes: 3 additions & 0 deletions source/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ static void db_url_callback(int sel)
{
if (osk_dialog_get_text("Enter the URL of the online database", apollo_config.save_db, sizeof(apollo_config.save_db)))
show_message("Online database URL changed to:\n%s", apollo_config.save_db);

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

static void clearcache_callback(int sel)
Expand Down

0 comments on commit b78073e

Please sign in to comment.