|
|
This page contains no introduction. |
Debug Logging#
Within the game is a stubbed printf function. This would have logged various background information to a debug unit. This logs information such as files loaded and memory information. It would also report errors if any occurred. To re-enable this mode, apply the below code:
Re-enable printf Messages
2010F118 0805BAC4
2010F11C 00000000
If you are playing the game on a regular PlayStation 2, you will need to use a TOOL, RDB, or a debug version of OPL to view the logs. If you are playing on an emulator, you can see this information by enabling the option "Show Console". Below is an example of what type of information gets logged.
SafOpen():"cdrom0:¥DATA¥ykg.saf", flag 0000
SafOpen():end "cdrom0:¥DATA¥ykg.saf", flag 0000, safHd 5
SafGetIndex(): safHd 5, entName "white"
SafGetIndex():end safHd 5, entName "white", entIdx 87
SafRead(): safHd 5, entIdx 87, buf 0x0, sizep 0x0, mode 0, "white"
Cash Hit Ratio 0
SafRead():end safHd 5, entIdx 87, buf 0x0, sizeP 0x0, mode 0
"white", dataP 0x60f7f0, dsize 308240
SafClose(): safHd D
SafClearCash(): safHd 5
SafClearCash():end safHd 5
(Source: Original TCRF research)