mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible * Move WindowClose family into WindowManager * Remove UpdateSceneryGroupIndexes hack
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "../object/ObjectManager.h"
|
||||
#include "../park/ParkFile.h"
|
||||
#include "../scenario/Scenario.h"
|
||||
#include "../ui/WindowManager.h"
|
||||
#include "CommandLine.hpp"
|
||||
|
||||
#include <cassert>
|
||||
@@ -123,7 +124,8 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator* enumerato
|
||||
|
||||
// HACK remove the main window so it saves the park with the
|
||||
// correct initial view
|
||||
WindowCloseByClass(WindowClass::MainWindow);
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseByClass(WindowClass::MainWindow);
|
||||
|
||||
exporter->Export(gameState, destinationPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user