mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
decomp: merc, merc-vu1 (#1865)
The merc VU1 program is identical to Jak 1. Jak 2's merc is doing some new texture login stuff and the DMA buffer setup is a bit different, but overall very similar.
This commit is contained in:
@@ -30,6 +30,13 @@ std::string get_expected(const std::string& name) {
|
||||
}
|
||||
} // namespace
|
||||
|
||||
TEST(VuDisasm, Merc_Jak2) {
|
||||
auto data = get_test_data("jak2/merc-vu1");
|
||||
VuDisassembler disasm(VuDisassembler::VuKind::VU1);
|
||||
auto prog = disasm.disassemble(data.data(), data.size() * 4, false);
|
||||
EXPECT_EQ(disasm.to_string(prog), get_expected("jak2/merc-vu1"));
|
||||
}
|
||||
|
||||
TEST(VuDisasm, Emerc) {
|
||||
auto data = get_test_data("jak2/emerc-vu1");
|
||||
VuDisassembler disasm(VuDisassembler::VuKind::VU1);
|
||||
|
||||
Reference in New Issue
Block a user