1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Remove title editor specific code from loadsave window

This involved removing any logic performed in loadsave for loading saved games and moving them to callback routines for all uses.
This commit is contained in:
Ted John
2016-11-29 18:41:54 +00:00
parent 877080f00c
commit 11a2b98e58
10 changed files with 108 additions and 90 deletions

View File

@@ -45,7 +45,6 @@ char gTextBoxInput[512] = { 0 };
int gMaxTextBoxInputLength = 0;
int gTextBoxFrameNo = 0;
bool gUsingWidgetTextBox = 0;
bool gLoadSaveTitleSequenceSave = 0;
uint16 gWindowUpdateTicks;
uint8 gToolbarDirtyFlags;

View File

@@ -526,10 +526,10 @@ enum GUEST_LIST_FILTER_TYPE
};
typedef void (*modal_callback)(int result);
typedef void (*loadsave_callback)(int result, const utf8 * path);
typedef void (*scenarioselect_callback)(const utf8 *path);
extern bool gLoadSaveTitleSequenceSave;
extern modal_callback gLoadSaveCallback;
extern loadsave_callback gLoadSaveCallback;
typedef void (*close_callback)();