1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Debugging

This commit is contained in:
Duncan Frost
2014-07-26 11:09:13 +01:00
parent d84ed93c62
commit e321708e05
3 changed files with 4 additions and 2 deletions

View File

@@ -279,7 +279,9 @@ loc_6ED99E:
RCT2_GLOBAL(0x14241BC, uint32) = 2;
abc = (uint32 *)(0x1423598);
//edx = 6;
printf("%d %d\n", edx, abc[edx]);
char debug_out[250];
sprintf(debug_out, "%d %d\n", edx, abc[edx]);
OutputDebugString(debug_out);
osinterface_set_cursor(edx);
RCT2_GLOBAL(0x14241BC, uint32) = 0;
}

View File

@@ -65,6 +65,7 @@ void osinterface_init()
* rct2: 0x0407956
*/
void osinterface_set_cursor(char cursor){
HCURSOR hCurs = RCT2_ADDRESS(RCT2_ADDRESS_HCURSOR_START, HCURSOR)[cursor];
SetCursor((HCURSOR)hCurs);
}

View File

@@ -83,7 +83,6 @@ __declspec(dllexport) int StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevInsta
audio_init();
audio_get_devices();
RCT2_CALLPROC(0x0040502E); // get_dsound_devices()
config_init();
rct2_init();
rct2_loop();