1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Implement #7658: Add option to always use system file browsing window.

This commit is contained in:
Aaron van Geffen
2018-08-14 20:09:11 +02:00
parent 35ac24a4f3
commit 25170fda45
9 changed files with 44 additions and 20 deletions

View File

@@ -218,8 +218,7 @@ public:
uint32_t type = intent->GetUIntExtra(INTENT_EXTRA_LOADSAVE_TYPE);
std::string defaultName = intent->GetStringExtra(INTENT_EXTRA_PATH);
loadsave_callback callback = (loadsave_callback)intent->GetPointerExtra(INTENT_EXTRA_CALLBACK);
rct_window* w = window_loadsave_open(type, defaultName.c_str());
window_loadsave_set_loadsave_callback(callback);
rct_window* w = window_loadsave_open(type, defaultName.c_str(), callback);
return w;
}