Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Apr 16, 2023
1 parent c31901f commit a530cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/saves.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,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 @@ -1640,7 +1640,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

0 comments on commit a530cae

Please sign in to comment.