mirror of
https://github.com/open-goal/jak-project
synced 2026-08-01 00:18:25 -04:00
[decomp] Jak 2 mips2c, collide-func (#1805)
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -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"});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user