Skip to content

Commit

Permalink
erm........ ok???????
Browse files Browse the repository at this point in the history
  • Loading branch information
MegAmi24 committed Oct 29, 2023
1 parent a207d5c commit 85287db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RSDKv4/Userdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,11 +1245,11 @@ void NotifyCallback(int *callback, int *param1, int *param2, int *param3)
case NOTIFY_SPECIAL_END: PrintLog("NOTIFY: SpecialEnd() -> %d", *param1); break;
case NOTIFY_DEBUGPRINT:
// This callback can be called with either CallNativeFunction2 or CallNativeFunction4
// todo: find a better way to check for which one was used
if (*param2 == 264865096)
PrintLog("NOTIFY: DebugPrint() -> %d", *param1);
else
try {
PrintLog("NOTIFY: DebugPrint() -> %d, %d, %d", *param1, *param2, *param3);
} catch (...) {
PrintLog("NOTIFY: DebugPrint() -> %d", *param1);
}
break;
case NOTIFY_KILL_BOSS: PrintLog("NOTIFY: KillBoss() -> %d", *param1); break;
case NOTIFY_TOUCH_EMERALD: PrintLog("NOTIFY: TouchEmerald() -> %d", *param1); break;
Expand Down

0 comments on commit 85287db

Please sign in to comment.