1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Move loadsave dialog

This commit is contained in:
Marijn van der Werf
2017-09-12 00:04:03 +02:00
parent 9b1b2b5c62
commit d18e59ff17
20 changed files with 145 additions and 65 deletions

View File

@@ -100,8 +100,10 @@ namespace Editor
void ConvertSaveToScenario()
{
tool_cancel();
window_loadsave_open(LOADSAVETYPE_LOAD | LOADSAVETYPE_GAME, NULL);
window_loadsave_set_loadsave_callback(ConvertSaveToScenarioCallback);
auto intent = Intent(WC_LOADSAVE);
intent.putExtra(INTENT_EXTRA_4, LOADSAVETYPE_LOAD | LOADSAVETYPE_GAME);
intent.putExtra(INTENT_EXTRA_5, (void *) ConvertSaveToScenarioCallback);
context_open_intent(&intent);
}
static void ConvertSaveToScenarioCallback(sint32 result, const utf8 * path)