mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
add editor loading
This commit is contained in:
15
src/window.c
15
src/window.c
@@ -424,6 +424,21 @@ rct_window *window_bring_to_front(rct_window *w)
|
||||
return w;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006EE2E4
|
||||
*/
|
||||
rct_window *window_get_main()
|
||||
{
|
||||
rct_window* w;
|
||||
|
||||
for (w = RCT2_FIRST_WINDOW; w < RCT2_NEW_WINDOW; w++)
|
||||
if (w->classification == WC_MAIN_WINDOW)
|
||||
return w;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws a window that is in the specified region.
|
||||
* rct2: 0x006E756C
|
||||
|
||||
Reference in New Issue
Block a user