[Decompile] file-io, loader-h, texture-h, level-h, math-camera-h (#397)

* file-io and loader-h

* add test for level-h

* math camera-h
This commit is contained in:
water111
2021-04-28 20:51:17 -04:00
committed by GitHub
parent 14028b90bc
commit 70d93354eb
23 changed files with 1519 additions and 205 deletions
+2 -2
View File
@@ -305,7 +305,7 @@ TEST_F(DataDecompTest, ContinuePoint) {
" :z -19435708.0\n"
" :w 1.0\n"
" )\n"
" :camera-rot (new 'static 'array 'float 9\n"
" :camera-rot (new 'static 'array float 9\n"
" 0.5883\n"
" 0.0\n"
" -0.8085\n"
@@ -340,7 +340,7 @@ TEST_F(DataDecompTest, FloatArray) {
auto decomp = decompile_at_label_with_hint({"(pointer float)", true, 7}, parsed.label("L63"),
parsed.labels, {parsed.words}, *dts);
check_forms_equal(decomp.print(),
"(new 'static 'array 'float 7\n"
"(new 'static 'array float 7\n"
"1.0 0.0 1.0 0.0 1.0 0.0 1.0)");
}