diff --git a/Decompiling-Tips-IDA.md b/Decompiling-Tips-IDA.md index 8cf7387..1d0a36a 100644 --- a/Decompiling-Tips-IDA.md +++ b/Decompiling-Tips-IDA.md @@ -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.