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:
ManDude
2021-05-01 05:32:19 +01:00
committed by GitHub
parent fab73cab75
commit 8cc63ff35c
12 changed files with 374 additions and 21 deletions
+8
View File
@@ -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;
}