mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
[decomp] jak2: shrubbery (#1898)
Some notes: - `draw-prototype-inline-array-shrub` can probably be decompiled but I'm not comfortable doing this function myself. It's got a ton of inline assembly (or at least I think it's inline assembly) and is very long. I left this marked as asm for now but I am confident in the function definition. - The VU program is identical to Jak 1 (yay) - There's some new `dma-test` stuff at the end of the file, not really sure what it's doing but it runs in the top-level.
This commit is contained in:
@@ -44,6 +44,13 @@ TEST(VuDisasm, Emerc) {
|
||||
EXPECT_EQ(disasm.to_string(prog), get_expected("jak2/emerc-vu1"));
|
||||
}
|
||||
|
||||
TEST(VuDisasm, Shrub_Jak2) {
|
||||
auto data = get_test_data("jak2/shrub");
|
||||
VuDisassembler disasm(VuDisassembler::VuKind::VU1);
|
||||
auto prog = disasm.disassemble(data.data(), data.size() * 4, false);
|
||||
EXPECT_EQ(disasm.to_string(prog), get_expected("jak2/shrub"));
|
||||
}
|
||||
|
||||
TEST(VuDisasm, Sprite_Jak2) {
|
||||
auto data = get_test_data("jak2/sprite");
|
||||
VuDisassembler disasm(VuDisassembler::VuKind::VU1);
|
||||
|
||||
Reference in New Issue
Block a user