mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Updated Decompiling Tips IDA (markdown)
@@ -183,6 +183,20 @@ This will eventually end up like the following once we have the offset properly
|
||||
ebx = RCT2_ADDRESS_SPRITE_LIST[ebx];
|
||||
```
|
||||
|
||||
### Print debugging
|
||||
|
||||
To print statements to the console after RCT2 begins running, include the following header:
|
||||
|
||||
```
|
||||
#include "windows.h"
|
||||
```
|
||||
|
||||
Then use the command [`OutputDebugString`](http://msdn.microsoft.com/en-us/library/aa363362%28VS.85%29.aspx). Sadly printf does not work in some cases.
|
||||
|
||||
```
|
||||
OutputDebugString("Hello World!\n");
|
||||
```
|
||||
|
||||
### IDA Tips
|
||||
|
||||
- Use the spacebar to shuffle between the graphical layout and the line-by-line instructions.
|
||||
|
||||
Reference in New Issue
Block a user