mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
Add a debug PS2 VM to the runtime (#401)
* update VS launch target params * remove redundant VS launch option * Add a debug PS2 VM to the runtime, currently only for the DMAC * Formatting * remove broken assert * Avoid weird buffer overflow bug * Test on `VIF0_DMA_BANK`! * Add a docstring * patch pointers for the other dma channels * patch DMAC pointer * remove dead leftover code * Change default return value for `get_vm_ptr`
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include "game/sce/libpad.h"
|
||||
#include "common/symbols.h"
|
||||
#include "common/log/log.h"
|
||||
|
||||
#include "game/system/vm/vm.h"
|
||||
using namespace ee;
|
||||
|
||||
/*!
|
||||
@@ -369,6 +371,12 @@ int ShutdownMachine() {
|
||||
CloseListener();
|
||||
ShutdownSound();
|
||||
ShutdownGoalProto();
|
||||
|
||||
// OpenGOAL only - kill ps2 VM
|
||||
if (VM::use) {
|
||||
VM::vm_kill();
|
||||
}
|
||||
|
||||
Msg(6, "kernel: machine shutdown\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user