mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
remove unused gRCT2AddressSavedGamesPath2 (#5626)
This commit is contained in:
@@ -1087,8 +1087,6 @@ bool game_load_save(const utf8 *path)
|
||||
{
|
||||
log_verbose("loading saved game, %s", path);
|
||||
|
||||
safe_strcpy((char*)gRCT2AddressSavedGamesPath2, path, MAX_PATH);
|
||||
|
||||
safe_strcpy(gScenarioSavePath, path, MAX_PATH);
|
||||
|
||||
uint32 extension_type = get_file_extension_type(path);
|
||||
|
||||
@@ -117,7 +117,6 @@ uint8 gSavePromptMode;
|
||||
|
||||
char gRCT2AddressAppPath[MAX_PATH];
|
||||
char gRCT2AddressSavedGamesPath[MAX_PATH];
|
||||
char gRCT2AddressSavedGamesPath2[MAX_PATH];
|
||||
char gRCT2AddressScenariosPath[MAX_PATH];
|
||||
char gRCT2AddressLandscapesPath[MAX_PATH];
|
||||
char gRCT2AddressObjectDataPath[MAX_PATH];
|
||||
@@ -224,8 +223,6 @@ sint32 rct2_init_directories()
|
||||
safe_strcpy(gRCT2AddressTracksPath, gRCT2AddressAppPath, sizeof(gRCT2AddressTracksPath));
|
||||
safe_strcat_path(gRCT2AddressTracksPath, "Tracks", sizeof(gRCT2AddressTracksPath));
|
||||
safe_strcat_path(gRCT2AddressTracksPath, "*.TD?", sizeof(gRCT2AddressTracksPath));
|
||||
|
||||
safe_strcpy(gRCT2AddressSavedGamesPath2, gRCT2AddressSavedGamesPath, sizeof(gRCT2AddressSavedGamesPath2));
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -331,7 +328,6 @@ bool rct2_open_file(const char *path)
|
||||
extension++;
|
||||
|
||||
if (_stricmp(extension, "sv6") == 0) {
|
||||
safe_strcpy((char*)gRCT2AddressSavedGamesPath2, path, sizeof(gRCT2AddressSavedGamesPath2));
|
||||
if (game_load_save(path)) {
|
||||
gFirstTimeSaving = false;
|
||||
return true;
|
||||
|
||||
@@ -164,7 +164,6 @@ extern uint8 gSavePromptMode;
|
||||
|
||||
extern char gRCT2AddressAppPath[];
|
||||
extern char gRCT2AddressSavedGamesPath[];
|
||||
extern char gRCT2AddressSavedGamesPath2[];
|
||||
extern char gRCT2AddressScenariosPath[];
|
||||
extern char gRCT2AddressLandscapesPath[];
|
||||
extern char gRCT2AddressObjectDataPath[];
|
||||
|
||||
@@ -237,10 +237,6 @@ void scenario_begin()
|
||||
safe_strcat_path(gScenarioSavePath, parkName, sizeof(gScenarioSavePath));
|
||||
path_append_extension(gScenarioSavePath, ".sv6", sizeof(gScenarioSavePath));
|
||||
|
||||
safe_strcpy(gRCT2AddressSavedGamesPath2, gRCT2AddressSavedGamesPath, MAX_PATH);
|
||||
safe_strcat_path(gRCT2AddressSavedGamesPath2, gScenarioSavePath, MAX_PATH);
|
||||
path_append_extension(gRCT2AddressSavedGamesPath2, ".SV6", MAX_PATH);
|
||||
|
||||
gCurrentExpenditure = 0;
|
||||
gCurrentProfit = 0;
|
||||
gWeeklyProfitAverageDividend = 0;
|
||||
|
||||
Reference in New Issue
Block a user