Add IOP, audio, pad, fio changes, VAG handling, and call-stack logger (#76)

- Add IOP with RPC handling (handleRPC, LibSd SID) and init/reset using RDRAM
- Add IOP audio layer for LibSd RPC (handleLibSdRpc)
- Add PS2AudioBackend with VAG decode, onVagTransfer/onSoundCommand, raylib playback
- Add PSPadBackend with readState and raylib input
- Add IOP RAM mapping in Memory (getIOPRAM) for EE↔IOP access
- Add fio syscalls: fioOpen, fioRead, fioWrite, fioClose, fioLseek, fioMkdir
- Add VAG accumulation for fio reads (multi-chunk VagAccumEntry)
- Add ps2_log.h call-stack logger (tab-indented, Debug only, ps2_log.txt next to exe)
- Code generator: emit ps2_log include and PS_LOG_ENTRY for full functions
- Recompiler: emit ps2_log include and PS_LOG_ENTRY for stubs
- Runtime: print "[PS2 LOG] Logs saved at <path>" on exit (Debug only)
This commit is contained in:
Aslan Hud
2026-02-24 15:45:52 +01:00
committed by GitHub
parent bac1fc9ef8
commit c1e98c9398
20 changed files with 849 additions and 23 deletions
+6
View File
@@ -1,6 +1,9 @@
#include "ps2_runtime.h"
#include "register_functions.h"
#include "games_database.h"
#ifdef _DEBUG
#include "ps2_log.h"
#endif
#include <iostream>
#include <string>
@@ -63,5 +66,8 @@ int main(int argc, char* argv[])
runtime.run();
#ifdef _DEBUG
ps2_log::print_saved_location();
#endif
return 0;
}