From a530cae3c81639eedebac606c67322acd6fa8965 Mon Sep 17 00:00:00 2001 From: bucanero Date: Sun, 16 Apr 2023 09:50:56 -0300 Subject: [PATCH] clean-up --- source/saves.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/saves.c b/source/saves.c index ba04629..24bdd30 100644 --- a/source/saves.c +++ b/source/saves.c @@ -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); @@ -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);