1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

add editor loading

This commit is contained in:
IntelOrca
2014-04-09 17:06:47 +01:00
parent 0402ffe6fc
commit 481b8e23c0
12 changed files with 199 additions and 8 deletions

View File

@@ -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