[decomp] Jak 2 mips2c, collide-func (#1805)

This commit is contained in:
water111
2022-08-26 18:03:48 -04:00
committed by GitHub
parent bc3cd2cf72
commit f8007cc84b
50 changed files with 1321 additions and 564 deletions
+1 -1
View File
@@ -471,7 +471,7 @@
:size-assert #x74
:flag-assert #x1000000074
(:methods
(add-to-loading-level (_type_) none 15)
(add-to-loading-level (_type_) skeleton-group 15)
)
)
+1 -1
View File
@@ -13,7 +13,7 @@
(:methods
(new (symbol type int level) _type_ 0)
(load-dir-method-9 () none 9)
(load-dir-method-10 () none 10)
(set-loaded-art (_type_ art-group) art-group 10)
)
)
+5 -5
View File
@@ -844,7 +844,7 @@ TEST_F(WithGameTests, StackSingletonType) {
{"#t\n0\n"});
}
namespace Mips2C {
namespace Mips2C::jak1 {
namespace test_func {
extern u64 execute(void*);
}
@@ -852,16 +852,16 @@ namespace goal_call_test {
extern u64 execute(void*);
extern void link();
} // namespace goal_call_test
} // namespace Mips2C
} // namespace Mips2C::jak1
TEST_F(WithGameTests, Mips2CBasic) {
Mips2C::gLinkedFunctionTable.reg("test-func", Mips2C::test_func::execute, 0);
Mips2C::gLinkedFunctionTable.reg("test-func", Mips2C::jak1::test_func::execute, 0);
shared_compiler->runner.run_static_test(testCategory, "test-mips2c-call.gc", {"36\n0\n"});
}
TEST_F(WithGameTests, Mips2C_CallGoal) {
Mips2C::gLinkedFunctionTable.reg("test-func2", Mips2C::goal_call_test::execute, 128);
Mips2C::goal_call_test::link();
Mips2C::gLinkedFunctionTable.reg("test-func2", Mips2C::jak1::goal_call_test::execute, 128);
Mips2C::jak1::goal_call_test::link();
shared_compiler->runner.run_static_test(testCategory, "test-mips2c-goal.gc",
{"1 2 3 4 5 6 7 8\n12\n"});
}