summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrueffeloot <geiloking135@gmail.com>2023-04-25 18:33:26 +0200
committerTrueffeloot <geiloking135@gmail.com>2023-04-25 18:33:26 +0200
commitfd6e75ee714fe577ca1d0c14ddfa8c71b45ee753 (patch)
tree663de597a574a46ad1e46a6776cb432b5ae5949a
parent1c5bacc97bc11bc9694410f84c5ea44d3b1f3b35 (diff)
parentaf265612c1e714a3f135c23f426b72952926fc40 (diff)
Merge remote-tracking branch 'upstream/master' into work7
-rw-r--r--Progress.md8
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmColorKeyFv.s22
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmColorFullFv.s22
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__17J3DAnmVtxColorKeyFv.s25
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__18J3DAnmVtxColorFullFv.s25
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData.s10
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData.s10
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable.s43
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData.s10
-rw-r--r--asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable.s78
-rw-r--r--include/JSystem/J3DGraphAnimator/J3DAnimation.h8
-rw-r--r--include/JSystem/JAudio2/JASWaveArcLoader.h1
-rw-r--r--include/JSystem/JUtility/JUTFont.h2
-rw-r--r--include/MSL_C/MSL_Common/Src/wchar_io.h2
-rw-r--r--include/MSL_C/stdlib.h10
-rw-r--r--include/MSL_C/string.h23
-rw-r--r--include/d/save/d_save.h2
-rw-r--r--include/init.h1
-rw-r--r--libs/JSystem/J2DGraph/J2DManage.cpp2
-rw-r--r--libs/JSystem/J2DGraph/J2DPrint.cpp3
-rw-r--r--libs/JSystem/J2DGraph/J2DTextBox.cpp2
-rw-r--r--libs/JSystem/J3DGraphAnimator/J3DAnimation.cpp259
-rw-r--r--libs/JSystem/J3DGraphBase/J3DPacket.cpp2
-rw-r--r--libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp2
-rw-r--r--libs/JSystem/J3DGraphBase/J3DVertex.cpp1
-rw-r--r--libs/JSystem/JAudio2/JASWaveArcLoader.cpp1
-rw-r--r--libs/JSystem/JAudio2/JAUSectionHeap.cpp3
-rw-r--r--libs/JSystem/JKernel/JKRAramArchive.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRArchivePri.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRCompArchive.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRDvdRipper.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRFileCache.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRFileLoader.cpp2
-rw-r--r--libs/JSystem/JKernel/JKRMemArchive.cpp2
-rw-r--r--libs/JSystem/JMessage/resource.cpp2
-rw-r--r--libs/JSystem/JParticle/JPAResourceManager.cpp2
-rw-r--r--libs/JSystem/JStudio/JStudio/functionvalue.cpp2
-rw-r--r--libs/JSystem/JSupport/JSUMemoryStream.cpp2
-rw-r--r--libs/JSystem/JUtility/JUTException.cpp4
-rw-r--r--libs/JSystem/JUtility/JUTNameTab.cpp2
-rw-r--r--libs/SSystem/SComponent/c_lib.cpp2
-rw-r--r--libs/Z2AudioLib/Z2AudioMgr.cpp3
-rw-r--r--libs/dolphin/ar/ar.c2
-rw-r--r--libs/dolphin/card/CARDBlock.c2
-rw-r--r--libs/dolphin/card/CARDCheck.c2
-rw-r--r--libs/dolphin/card/CARDCreate.c3
-rw-r--r--libs/dolphin/card/CARDDir.c2
-rw-r--r--libs/dolphin/card/CARDFormat.c2
-rw-r--r--libs/dolphin/card/CARDOpen.c2
-rw-r--r--libs/dolphin/dvd/dvd.c3
-rw-r--r--libs/dolphin/dvd/dvdidutils.c2
-rw-r--r--libs/dolphin/dvd/fstload.c2
-rw-r--r--libs/dolphin/pad/Pad.c2
-rw-r--r--rel/d/a/d_a_bg/d_a_bg.cpp2
-rw-r--r--src/__start.c2
-rw-r--r--src/c/c_dylink.cpp2
-rw-r--r--src/d/d_eye_hl.cpp2
-rw-r--r--src/d/d_resorce.cpp3
-rw-r--r--src/d/kankyo/d_kankyo.cpp2
-rw-r--r--src/d/kankyo/d_kankyo_rain.cpp2
-rw-r--r--src/d/kankyo/d_kankyo_wether.cpp2
-rw-r--r--src/d/menu/d_menu_collect.cpp1
-rw-r--r--src/d/menu/d_menu_dmap.cpp1
-rw-r--r--src/d/menu/d_menu_fmap.cpp1
-rw-r--r--src/d/menu/d_menu_insect.cpp1
-rw-r--r--src/d/menu/d_menu_letter.cpp1
-rw-r--r--src/d/menu/d_menu_option.cpp1
-rw-r--r--src/d/menu/d_menu_ring.cpp1
-rw-r--r--src/d/menu/d_menu_skill.cpp1
-rw-r--r--src/d/s/d_s_room.cpp2
-rw-r--r--src/init.c3
-rw-r--r--src/m_Do/m_Do_MemCard.cpp2
72 files changed, 277 insertions, 389 deletions
diff --git a/Progress.md b/Progress.md
index 9e61a48de3..5e7748558e 100644
--- a/Progress.md
+++ b/Progress.md
@@ -7,22 +7,22 @@ Section | Percentage | Decompiled (bytes) | Total (bytes)
.init | 97.972973% | 9280 | 9472
.extab | 100.000000% | 96 | 96
.extabindex | 100.000000% | 96 | 96
-.text | 26.574623% | 955768 | 3596544
+.text | 26.599313% | 956656 | 3596544
.ctors | 100.000000% | 448 | 448
.dtors | 100.000000% | 32 | 32
.rodata | 100.000000% | 193856 | 193856
.data | 100.000000% | 197632 | 197632
.sdata | 100.000000% | 1408 | 1408
.sdata2 | 100.000000% | 20832 | 20832
-Total | 34.315259% | 1379704 | 4020672
+Total | 34.337345% | 1380592 | 4020672
## Total
Section | Percentage | Decompiled (bytes) | Total (bytes)
---|---|---|---
-main.dol | 34.315259% | 1379704 | 4020672
+main.dol | 34.337345% | 1380592 | 4020672
RELs | 33.516030% | 3854452 | 11500324
-Total | 33.723068% | 5234156 | 15520996
+Total | 33.728789% | 5235044 | 15520996
## RELs
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmColorKeyFv.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmColorKeyFv.s
deleted file mode 100644
index 180b8378be..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmColorKeyFv.s
+++ /dev/null
@@ -1,22 +0,0 @@
-lbl_8032AB00:
-/* 8032AB00 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032AB04 7C 08 02 A6 */ mflr r0
-/* 8032AB08 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032AB0C 93 E1 00 0C */ stw r31, 0xc(r1)
-/* 8032AB10 7C 7F 1B 78 */ mr r31, r3
-/* 8032AB14 4B FF FD 15 */ bl __ct__11J3DAnmColorFv
-/* 8032AB18 3C 60 80 3D */ lis r3, __vt__14J3DAnmColorKey@ha /* 0x803CED70@ha */
-/* 8032AB1C 38 03 ED 70 */ addi r0, r3, __vt__14J3DAnmColorKey@l /* 0x803CED70@l */
-/* 8032AB20 90 1F 00 00 */ stw r0, 0(r31)
-/* 8032AB24 38 00 00 00 */ li r0, 0
-/* 8032AB28 90 1F 00 2C */ stw r0, 0x2c(r31)
-/* 8032AB2C 90 1F 00 30 */ stw r0, 0x30(r31)
-/* 8032AB30 90 1F 00 34 */ stw r0, 0x34(r31)
-/* 8032AB34 90 1F 00 38 */ stw r0, 0x38(r31)
-/* 8032AB38 90 1F 00 3C */ stw r0, 0x3c(r31)
-/* 8032AB3C 7F E3 FB 78 */ mr r3, r31
-/* 8032AB40 83 E1 00 0C */ lwz r31, 0xc(r1)
-/* 8032AB44 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032AB48 7C 08 03 A6 */ mtlr r0
-/* 8032AB4C 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032AB50 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmColorFullFv.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmColorFullFv.s
deleted file mode 100644
index 2ed608ed44..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmColorFullFv.s
+++ /dev/null
@@ -1,22 +0,0 @@
-lbl_8032A93C:
-/* 8032A93C 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032A940 7C 08 02 A6 */ mflr r0
-/* 8032A944 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032A948 93 E1 00 0C */ stw r31, 0xc(r1)
-/* 8032A94C 7C 7F 1B 78 */ mr r31, r3
-/* 8032A950 4B FF FE D9 */ bl __ct__11J3DAnmColorFv
-/* 8032A954 3C 60 80 3D */ lis r3, __vt__15J3DAnmColorFull@ha /* 0x803CED84@ha */
-/* 8032A958 38 03 ED 84 */ addi r0, r3, __vt__15J3DAnmColorFull@l /* 0x803CED84@l */
-/* 8032A95C 90 1F 00 00 */ stw r0, 0(r31)
-/* 8032A960 38 00 00 00 */ li r0, 0
-/* 8032A964 90 1F 00 2C */ stw r0, 0x2c(r31)
-/* 8032A968 90 1F 00 30 */ stw r0, 0x30(r31)
-/* 8032A96C 90 1F 00 34 */ stw r0, 0x34(r31)
-/* 8032A970 90 1F 00 38 */ stw r0, 0x38(r31)
-/* 8032A974 90 1F 00 3C */ stw r0, 0x3c(r31)
-/* 8032A978 7F E3 FB 78 */ mr r3, r31
-/* 8032A97C 83 E1 00 0C */ lwz r31, 0xc(r1)
-/* 8032A980 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032A984 7C 08 03 A6 */ mtlr r0
-/* 8032A988 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032A98C 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__17J3DAnmVtxColorKeyFv.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__17J3DAnmVtxColorKeyFv.s
deleted file mode 100644
index 74ec3daf5a..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__17J3DAnmVtxColorKeyFv.s
+++ /dev/null
@@ -1,25 +0,0 @@
-lbl_8032A4E0:
-/* 8032A4E0 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032A4E4 7C 08 02 A6 */ mflr r0
-/* 8032A4E8 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032A4EC 93 E1 00 0C */ stw r31, 0xc(r1)
-/* 8032A4F0 7C 7F 1B 78 */ mr r31, r3
-/* 8032A4F4 4B FF FD A9 */ bl __ct__14J3DAnmVtxColorFv
-/* 8032A4F8 3C 60 80 3D */ lis r3, __vt__17J3DAnmVtxColorKey@ha /* 0x803CEDAC@ha */
-/* 8032A4FC 38 03 ED AC */ addi r0, r3, __vt__17J3DAnmVtxColorKey@l /* 0x803CEDAC@l */
-/* 8032A500 90 1F 00 00 */ stw r0, 0(r31)
-/* 8032A504 38 60 00 00 */ li r3, 0
-/* 8032A508 7C 64 1B 78 */ mr r4, r3
-/* 8032A50C 38 00 00 02 */ li r0, 2
-/* 8032A510 7C 09 03 A6 */ mtctr r0
-lbl_8032A514:
-/* 8032A514 38 03 00 18 */ addi r0, r3, 0x18
-/* 8032A518 7C 9F 01 2E */ stwx r4, r31, r0
-/* 8032A51C 38 63 00 04 */ addi r3, r3, 4
-/* 8032A520 42 00 FF F4 */ bdnz lbl_8032A514
-/* 8032A524 7F E3 FB 78 */ mr r3, r31
-/* 8032A528 83 E1 00 0C */ lwz r31, 0xc(r1)
-/* 8032A52C 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032A530 7C 08 03 A6 */ mtlr r0
-/* 8032A534 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032A538 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__18J3DAnmVtxColorFullFv.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__18J3DAnmVtxColorFullFv.s
deleted file mode 100644
index 587c37e3bf..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__18J3DAnmVtxColorFullFv.s
+++ /dev/null
@@ -1,25 +0,0 @@
-lbl_8032A30C:
-/* 8032A30C 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032A310 7C 08 02 A6 */ mflr r0
-/* 8032A314 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032A318 93 E1 00 0C */ stw r31, 0xc(r1)
-/* 8032A31C 7C 7F 1B 78 */ mr r31, r3
-/* 8032A320 4B FF FF 7D */ bl __ct__14J3DAnmVtxColorFv
-/* 8032A324 3C 60 80 3D */ lis r3, __vt__18J3DAnmVtxColorFull@ha /* 0x803CEDC0@ha */
-/* 8032A328 38 03 ED C0 */ addi r0, r3, __vt__18J3DAnmVtxColorFull@l /* 0x803CEDC0@l */
-/* 8032A32C 90 1F 00 00 */ stw r0, 0(r31)
-/* 8032A330 38 60 00 00 */ li r3, 0
-/* 8032A334 7C 64 1B 78 */ mr r4, r3
-/* 8032A338 38 00 00 02 */ li r0, 2
-/* 8032A33C 7C 09 03 A6 */ mtctr r0
-lbl_8032A340:
-/* 8032A340 38 03 00 18 */ addi r0, r3, 0x18
-/* 8032A344 7C 9F 01 2E */ stwx r4, r31, r0
-/* 8032A348 38 63 00 04 */ addi r3, r3, 4
-/* 8032A34C 42 00 FF F4 */ bdnz lbl_8032A340
-/* 8032A350 7F E3 FB 78 */ mr r3, r31
-/* 8032A354 83 E1 00 0C */ lwz r31, 0xc(r1)
-/* 8032A358 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032A35C 7C 08 03 A6 */ mtlr r0
-/* 8032A360 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032A364 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData.s
deleted file mode 100644
index 01712c6608..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData.s
+++ /dev/null
@@ -1,10 +0,0 @@
-lbl_8032B87C:
-/* 8032B87C 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032B880 7C 08 02 A6 */ mflr r0
-/* 8032B884 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032B888 38 84 00 58 */ addi r4, r4, 0x58
-/* 8032B88C 4B FF FE F5 */ bl searchUpdateMaterialID__15J3DAnmTevRegKeyFP16J3DMaterialTable
-/* 8032B890 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032B894 7C 08 03 A6 */ mtlr r0
-/* 8032B898 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032B89C 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData.s
deleted file mode 100644
index ee0095583e..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData.s
+++ /dev/null
@@ -1,10 +0,0 @@
-lbl_8032B09C:
-/* 8032B09C 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032B0A0 7C 08 02 A6 */ mflr r0
-/* 8032B0A4 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032B0A8 38 84 00 58 */ addi r4, r4, 0x58
-/* 8032B0AC 4B FF FF 59 */ bl searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable
-/* 8032B0B0 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032B0B4 7C 08 03 A6 */ mtlr r0
-/* 8032B0B8 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032B0BC 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable.s
deleted file mode 100644
index 65e283bea3..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable.s
+++ /dev/null
@@ -1,43 +0,0 @@
-lbl_8032B004:
-/* 8032B004 94 21 FF E0 */ stwu r1, -0x20(r1)
-/* 8032B008 7C 08 02 A6 */ mflr r0
-/* 8032B00C 90 01 00 24 */ stw r0, 0x24(r1)
-/* 8032B010 39 61 00 20 */ addi r11, r1, 0x20
-/* 8032B014 48 03 71 C5 */ bl _savegpr_28
-/* 8032B018 7C 7C 1B 78 */ mr r28, r3
-/* 8032B01C 7C 9D 23 78 */ mr r29, r4
-/* 8032B020 3B C0 00 00 */ li r30, 0
-/* 8032B024 48 00 00 50 */ b lbl_8032B074
-lbl_8032B028:
-/* 8032B028 83 FD 00 0C */ lwz r31, 0xc(r29)
-/* 8032B02C 38 7C 00 1C */ addi r3, r28, 0x1c
-/* 8032B030 7F C4 F3 78 */ mr r4, r30
-/* 8032B034 4B FB 3A C5 */ bl getName__10JUTNameTabCFUs
-/* 8032B038 7C 64 1B 78 */ mr r4, r3
-/* 8032B03C 7F E3 FB 78 */ mr r3, r31
-/* 8032B040 4B FB 3A 19 */ bl getIndex__10JUTNameTabCFPCc
-/* 8032B044 2C 03 FF FF */ cmpwi r3, -1
-/* 8032B048 41 82 00 14 */ beq lbl_8032B05C
-/* 8032B04C 80 9C 00 18 */ lwz r4, 0x18(r28)
-/* 8032B050 57 C0 0B FC */ rlwinm r0, r30, 1, 0xf, 0x1e
-/* 8032B054 7C 64 03 2E */ sthx r3, r4, r0
-/* 8032B058 48 00 00 18 */ b lbl_8032B070
-lbl_8032B05C:
-/* 8032B05C 3C 60 00 01 */ lis r3, 0x0001 /* 0x0000FFFF@ha */
-/* 8032B060 38 83 FF FF */ addi r4, r3, 0xFFFF /* 0x0000FFFF@l */
-/* 8032B064 80 7C 00 18 */ lwz r3, 0x18(r28)
-/* 8032B068 57 C0 0B FC */ rlwinm r0, r30, 1, 0xf, 0x1e
-/* 8032B06C 7C 83 03 2E */ sthx r4, r3, r0
-lbl_8032B070:
-/* 8032B070 3B DE 00 01 */ addi r30, r30, 1
-lbl_8032B074:
-/* 8032B074 57 C3 04 3E */ clrlwi r3, r30, 0x10
-/* 8032B078 A0 1C 00 16 */ lhz r0, 0x16(r28)
-/* 8032B07C 7C 03 00 40 */ cmplw r3, r0
-/* 8032B080 41 80 FF A8 */ blt lbl_8032B028
-/* 8032B084 39 61 00 20 */ addi r11, r1, 0x20
-/* 8032B088 48 03 71 9D */ bl _restgpr_28
-/* 8032B08C 80 01 00 24 */ lwz r0, 0x24(r1)
-/* 8032B090 7C 08 03 A6 */ mtlr r0
-/* 8032B094 38 21 00 20 */ addi r1, r1, 0x20
-/* 8032B098 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData.s
deleted file mode 100644
index 8472ed90ad..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData.s
+++ /dev/null
@@ -1,10 +0,0 @@
-lbl_8032B1D4:
-/* 8032B1D4 94 21 FF F0 */ stwu r1, -0x10(r1)
-/* 8032B1D8 7C 08 02 A6 */ mflr r0
-/* 8032B1DC 90 01 00 14 */ stw r0, 0x14(r1)
-/* 8032B1E0 38 84 00 58 */ addi r4, r4, 0x58
-/* 8032B1E4 4B FF FE DD */ bl searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable
-/* 8032B1E8 80 01 00 14 */ lwz r0, 0x14(r1)
-/* 8032B1EC 7C 08 03 A6 */ mtlr r0
-/* 8032B1F0 38 21 00 10 */ addi r1, r1, 0x10
-/* 8032B1F4 4E 80 00 20 */ blr
diff --git a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable.s b/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable.s
deleted file mode 100644
index f48b3bef5c..0000000000
--- a/asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable.s
+++ /dev/null
@@ -1,78 +0,0 @@
-lbl_8032B0C0:
-/* 8032B0C0 94 21 FF E0 */ stwu r1, -0x20(r1)
-/* 8032B0C4 7C 08 02 A6 */ mflr r0
-/* 8032B0C8 90 01 00 24 */ stw r0, 0x24(r1)
-/* 8032B0CC 39 61 00 20 */ addi r11, r1, 0x20
-/* 8032B0D0 48 03 71 09 */ bl _savegpr_28
-/* 8032B0D4 7C 7E 1B 78 */ mr r30, r3
-/* 8032B0D8 7C 9F 23 78 */ mr r31, r4
-/* 8032B0DC 3B 80 00 00 */ li r28, 0
-/* 8032B0E0 48 00 00 50 */ b lbl_8032B130
-lbl_8032B0E4:
-/* 8032B0E4 83 BF 00 0C */ lwz r29, 0xc(r31)
-/* 8032B0E8 38 7E 00 30 */ addi r3, r30, 0x30
-/* 8032B0EC 7F 84 E3 78 */ mr r4, r28
-/* 8032B0F0 4B FB 3A 09 */ bl getName__10JUTNameTabCFUs
-/* 8032B0F4 7C 64 1B 78 */ mr r4, r3
-/* 8032B0F8 7F A3 EB 78 */ mr r3, r29
-/* 8032B0FC 4B FB 39 5D */ bl getIndex__10JUTNameTabCFPCc
-/* 8032B100 2C 03 FF FF */ cmpwi r3, -1
-/* 8032B104 41 82 00 14 */ beq lbl_8032B118
-/* 8032B108 80 9E 00 2C */ lwz r4, 0x2c(r30)
-/* 8032B10C 57 80 0B FC */ rlwinm r0, r28, 1, 0xf, 0x1e
-/* 8032B110 7C 64 03 2E */ sthx r3, r4, r0
-/* 8032B114 48 00 00 18 */ b lbl_8032B12C
-lbl_8032B118:
-/* 8032B118 3C 60 00 01 */ lis r3, 0x0001 /* 0x0000FFFF@ha */
-/* 8032B11C 38 83 FF FF */ addi r4, r3, 0xFFFF /* 0x0000FFFF@l */
-/* 8032B120 80 7E 00 2C */ lwz r3, 0x2c(r30)
-/* 8032B124 57 80 0B FC */ rlwinm r0, r28, 1, 0xf, 0x1e
-/* 8032B128 7C 83 03 2E */ sthx r4, r3, r0
-lbl_8032B12C:
-/* 8032B12C 3B 9C 00 01 */ addi r28, r28, 1
-lbl_8032B130:
-/* 8032B130 57 84 04 3E */ clrlwi r4, r28, 0x10
-/* 8032B134 A0 7E 00 14 */ lhz r3, 0x14(r30)
-/* 8032B138 38 00 00 03 */ li r0, 3
-/* 8032B13C 7C 03 03 D6 */ divw r0, r3, r0
-/* 8032B140 54 00 04 3E */ clrlwi r0, r0, 0x10
-/* 8032B144 7C 04 00 40 */ cmplw r4, r0
-/* 8032B148 41 80 FF 9C */ blt lbl_8032B0E4
-/* 8032B14C 3B 80 00 00 */ li r28, 0
-/* 8032B150 48 00 00 50 */ b lbl_8032B1A0
-lbl_8032B154:
-/* 8032B154 83 BF 00 0C */ lwz r29, 0xc(r31)
-/* 8032B158 38 7E 00 64 */ addi r3, r30, 0x64
-/* 8032B15C 7F 84 E3 78 */ mr r4, r28
-/* 8032B160 4B FB 39 99 */ bl getName__10JUTNameTabCFUs
-/* 8032B164 7C 64 1B 78 */ mr r4, r3
-/* 8032B168 7F A3 EB 78 */ mr r3, r29
-/* 8032B16C 4B FB 38 ED */ bl getIndex__10JUTNameTabCFPCc
-/* 8032B170 2C 03 FF FF */ cmpwi r3, -1
-/* 8032B174 41 82 00 14 */ beq lbl_8032B188
-/* 8032B178 80 9E 00 60 */ lwz r4, 0x60(r30)
-/* 8032B17C 57 80 0B FC */ rlwinm r0, r28, 1, 0xf, 0x1e
-/* 8032B180 7C 64 03 2E */ sthx r3, r4, r0
-/* 8032B184 48 00 00 18 */ b lbl_8032B19C
-lbl_8032B188:
-/* 8032B188 3C 60 00 01 */ lis r3, 0x0001 /* 0x0000FFFF@ha */
-/* 8032B18C 38 83 FF FF */ addi r4, r3, 0xFFFF /* 0x0000FFFF@l */
-/* 8032B190 80 7E 00 60 */ lwz r3, 0x60(r30)
-/* 8032B194 57 80 0B FC */ rlwinm r0, r28, 1, 0xf, 0x1e
-/* 8032B198 7C 83 03 2E */ sthx r4, r3, r0
-lbl_8032B19C:
-/* 8032B19C 3B 9C 00 01 */ addi r28, r28, 1
-lbl_8032B1A0:
-/* 8032B1A0 57 84 04 3E */ clrlwi r4, r28, 0x10
-/* 8032B1A4 A0 7E 00 4A */ lhz r3, 0x4a(r30)
-/* 8032B1A8 38 00 00 03 */ li r0, 3
-/* 8032B1AC 7C 03 03 D6 */ divw r0, r3, r0
-/* 8032B1B0 54 00 04 3E */ clrlwi r0, r0, 0x10
-/* 8032B1B4 7C 04 00 40 */ cmplw r4, r0
-/* 8032B1B8 41 80 FF 9C */ blt lbl_8032B154
-/* 8032B1BC 39 61 00 20 */ addi r11, r1, 0x20
-/* 8032B1C0 48 03 70 65 */ bl _restgpr_28
-/* 8032B1C4 80 01 00 24 */ lwz r0, 0x24(r1)
-/* 8032B1C8 7C 08 03 A6 */ mtlr r0
-/* 8032B1CC 38 21 00 20 */ addi r1, r1, 0x20
-/* 8032B1D0 4E 80 00 20 */ blr
diff --git a/include/JSystem/J3DGraphAnimator/J3DAnimation.h b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
index a9835b5858..5fe848fe8a 100644
--- a/include/JSystem/J3DGraphAnimator/J3DAnimation.h
+++ b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
@@ -394,7 +394,7 @@ private:
/* 0x54 */ int field_0x54;
/* 0x58 */ int field_0x58;
/* 0x5C */ u8 field_0x5c[4];
- /* 0x60 */ u16 field_0x60[2];
+ /* 0x60 */ u16* field_0x60;
/* 0x64 */ JUTNameTab field_0x64;
/* 0x74 */ u8 field_0x74[4];
/* 0x78 */ u32 mTexMtxCalcType;
@@ -415,7 +415,7 @@ private:
/* 0x10 */ void* mAnmTable;
/* 0x14 */ u16 field_0x14;
/* 0x16 */ u16 mUpdateMaterialNum;
- /* 0x18 */ void* field_0x18;
+ /* 0x18 */ u16* field_0x18;
/* 0x1C */ JUTNameTab field_0x1c;
}; // Size: 0x2C
@@ -448,9 +448,9 @@ private:
/* 0x1C */ u16 field_0x1c;
/* 0x1E */ u16 field_0x1e;
/* 0x20 */ u16* mCRegUpdateMaterialID;
- /* 0x24 */ u8 field_0x24[0x34 - 0x24];
+ /* 0x24 */ JUTNameTab field_0x24;
/* 0x34 */ u16* mKRegUpdateMaterialID;
- /* 0x38 */ u8 field_0x38[0x48 - 0x38];
+ /* 0x38 */ JUTNameTab field_0x38;
/* 0x48 */ void* field_0x48;
/* 0x4C */ void* field_0x4c;
/* 0x50 */ int field_0x50;
diff --git a/include/JSystem/JAudio2/JASWaveArcLoader.h b/include/JSystem/JAudio2/JASWaveArcLoader.h
index 2d7e55e0aa..95fb0280b0 100644
--- a/include/JSystem/JAudio2/JASWaveArcLoader.h
+++ b/include/JSystem/JAudio2/JASWaveArcLoader.h
@@ -5,7 +5,6 @@
#include "dolphin/types.h"
#include "global.h"
-#include "MSL_C/MSL_Common/Src/string.h"
#include "dolphin/os/OSMutex.h"
#include "JSystem/JAudio2/JASDvdThread.h"
diff --git a/include/JSystem/JUtility/JUTFont.h b/include/JSystem/JUtility/JUTFont.h
index d1d88b1417..4cb04da538 100644
--- a/include/JSystem/JUtility/JUTFont.h
+++ b/include/JSystem/JUtility/JUTFont.h
@@ -2,7 +2,7 @@
#define JUTFONT_H
#include "JSystem/JUtility/TColor.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dolphin/gx/GX.h"
#include "dolphin/types.h"
diff --git a/include/MSL_C/MSL_Common/Src/wchar_io.h b/include/MSL_C/MSL_Common/Src/wchar_io.h
index d42110c016..be6fb63783 100644
--- a/include/MSL_C/MSL_Common/Src/wchar_io.h
+++ b/include/MSL_C/MSL_Common/Src/wchar_io.h
@@ -3,7 +3,9 @@
#include "MSL_C/MSL_Common/Src/ansi_files.h"
+#ifndef __cplusplus
typedef unsigned short wchar_t;
+#endif
int fwide(FILE* file, int mode);
diff --git a/include/MSL_C/stdlib.h b/include/MSL_C/stdlib.h
new file mode 100644
index 0000000000..0a0532aa40
--- /dev/null
+++ b/include/MSL_C/stdlib.h
@@ -0,0 +1,10 @@
+#ifndef MSL_STDLIB_H_
+#define MSL_STDLIB_H_
+
+#include "MSL_C/MSL_Common/Src/abort_exit.h"
+#include "MSL_C/MSL_Common/Src/alloc.h"
+#include "MSL_C/MSL_Common/Src/arith.h"
+#include "MSL_C/MSL_Common/Src/mbstring.h"
+#include "MSL_C/MSL_Common/Src/strtoul.h"
+
+#endif
diff --git a/include/MSL_C/string.h b/include/MSL_C/string.h
index 21cb9c7274..ea08c98fa4 100644
--- a/include/MSL_C/string.h
+++ b/include/MSL_C/string.h
@@ -1,23 +1,8 @@
#ifndef MSL_STRING_H_
#define MSL_STRING_H_
-#include "MSL_C/MSL_Common/Src/stddef.h"
+#include "MSL_C/MSL_Common/Src/extras.h"
+#include "MSL_C/MSL_Common/Src/mem.h"
+#include "MSL_C/MSL_Common/Src/string.h"
-
-// TODO: move to MSL_C/
-extern "C" {
-void memcpy(void*, const void*, size_t);
-void* memset(void* dest, int ch, size_t count);
-char* strrchr(const char* s, int c);
-char* strchr(const char* s, int c);
-int strncmp(const char* s1, const char* s2, size_t n);
-int strcmp(const char* s1, const char* s2);
-int stricmp(const char*, const char*);
-char* strcat(char* dest, const char* source);
-char* strncpy(char* dest, const char* source, size_t n);
-char* strcpy(char* dest, const char* source);
-size_t strlen(const char* s);
-int tolower(int);
-}
-
-#endif \ No newline at end of file
+#endif
diff --git a/include/d/save/d_save.h b/include/d/save/d_save.h
index 46d8d8dc28..8acbe2582c 100644
--- a/include/d/save/d_save.h
+++ b/include/d/save/d_save.h
@@ -1,7 +1,7 @@
#ifndef D_SAVE_D_SAVE_H
#define D_SAVE_D_SAVE_H
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "SSystem/SComponent/c_xyz.h"
#include "dolphin/os/OS.h"
#include "dolphin/types.h"
diff --git a/include/init.h b/include/init.h
index b0937bf24b..12079a2282 100644
--- a/include/init.h
+++ b/include/init.h
@@ -1,7 +1,6 @@
#ifndef INIT_H
#define INIT_H
-#include "MSL_C/MSL_Common/Src/string.h"
#include "dolphin/types.h"
#ifdef __cplusplus
diff --git a/libs/JSystem/J2DGraph/J2DManage.cpp b/libs/JSystem/J2DGraph/J2DManage.cpp
index bf7f07717a..60318ed15c 100644
--- a/libs/JSystem/J2DGraph/J2DManage.cpp
+++ b/libs/JSystem/J2DGraph/J2DManage.cpp
@@ -4,7 +4,7 @@
//
#include "JSystem/J2DGraph/J2DManage.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/libs/JSystem/J2DGraph/J2DPrint.cpp b/libs/JSystem/J2DGraph/J2DPrint.cpp
index 6dcde38036..dea6720967 100644
--- a/libs/JSystem/J2DGraph/J2DPrint.cpp
+++ b/libs/JSystem/J2DGraph/J2DPrint.cpp
@@ -5,6 +5,7 @@
#include "JSystem/J2DGraph/J2DPrint.h"
#include "MSL_C/stdio.h"
+#include "MSL_C/stdlib.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -49,8 +50,6 @@ extern "C" void _restgpr_25();
extern "C" void _restgpr_26();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void strtol();
-extern "C" void strtoul();
extern "C" u8 sSystemHeap__7JKRHeap[4];
//
diff --git a/libs/JSystem/J2DGraph/J2DTextBox.cpp b/libs/JSystem/J2DGraph/J2DTextBox.cpp
index edc385fbd1..10fdc19796 100644
--- a/libs/JSystem/J2DGraph/J2DTextBox.cpp
+++ b/libs/JSystem/J2DGraph/J2DTextBox.cpp
@@ -5,7 +5,7 @@
#include "JSystem/J2DGraph/J2DTextBox.h"
#include "JSystem/J2DGraph/J2DPrint.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/libs/JSystem/J3DGraphAnimator/J3DAnimation.cpp b/libs/JSystem/J3DGraphAnimator/J3DAnimation.cpp
index 06d359ec41..d9a14fcc3b 100644
--- a/libs/JSystem/J3DGraphAnimator/J3DAnimation.cpp
+++ b/libs/JSystem/J3DGraphAnimator/J3DAnimation.cpp
@@ -270,6 +270,77 @@ asm int J3DFrameCtrl::checkPass(f32 pass_frame) {
#endif
/* 803289CC-80328E40 32330C 0474+00 0/0 3/3 0/0 .text update__12J3DFrameCtrlFv */
+// matches with literals
+#ifdef NONMATCHING
+void J3DFrameCtrl::update() {
+ mState = 0;
+ mFrame += mRate;
+ switch (mAttribute) {
+ case 0:
+ if (mFrame < mStart) {
+ mFrame = mStart;
+ mRate = 0.0f;
+ mState |= 1;
+ }
+ if (mFrame >= mEnd) {
+ mFrame = mEnd - 0.001f;
+ mRate = 0.0f;
+ mState |= 1;
+ }
+ break;
+ case 1:
+ if (mFrame < mStart) {
+ mFrame = mStart;
+ mRate = 0.0f;
+ mState |= 1;
+ }
+ if (mFrame >= mEnd) {
+ mFrame = mStart;
+ mRate = 0.0f;
+ mState |= 1;
+ }
+ break;
+ case 2:
+ while (mFrame < mStart) {
+ mState |= 2;
+ if (mLoop - mStart <= 0.0f) {
+ break;
+ }
+ mFrame += mLoop - mStart;
+ }
+ while (mFrame >= mEnd) {
+ mState |= 2;
+ if (mEnd - mLoop <= 0.0f) {
+ break;
+ }
+ mFrame -= mEnd - mLoop;
+ }
+ break;
+ case 3:
+ if (mFrame >= mEnd) {
+ mFrame = mEnd - (mFrame - mEnd);
+ mRate = -mRate;
+ }
+ if (mFrame < mStart) {
+ mFrame = mStart - (mFrame - mStart);
+ mRate = 0.0f;
+ mState |= 1;
+ }
+ break;
+ case 4:
+ if (mFrame >= mEnd - 1.0f) {
+ mFrame = (mEnd - 1.0f) - (mFrame - (mEnd - 1.0f));
+ mRate = -mRate;
+ }
+ if (mFrame < mStart) {
+ mFrame = mStart - (mFrame - mStart);
+ mRate = -mRate;
+ mState |= 2;
+ }
+ break;
+ }
+}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -278,6 +349,7 @@ asm void J3DFrameCtrl::update() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/update__12J3DFrameCtrlFv.s"
}
#pragma pop
+#endif
/* 80328E40-80328E90 323780 0050+00 0/0 3/3 0/0 .text __ct__15J3DAnmTransformFsPfPsPf */
// matches with literals
@@ -456,6 +528,29 @@ SECTION_DATA extern void* __vt__19J3DAnmTextureSRTKey[4] = {
};
/* 80329E5C-80329F14 32479C 00B8+00 0/0 2/2 0/0 .text __ct__19J3DAnmTextureSRTKeyFv */
+// matches with literals
+#ifdef NONMATCHING
+J3DAnmTextureSRTKey::J3DAnmTextureSRTKey() : J3DAnmBase(0) {
+ field_0xc = 0;
+ field_0x1a = 0;
+ field_0x18 = 0;
+ field_0x16 = 0;
+ field_0x14 = 0;
+ field_0x10 = 0;
+ field_0x24 = 0;
+ field_0x1c = 0;
+ field_0x20 = 0;
+ field_0x48 = 0;
+ field_0x46 = 0;
+ field_0x44 = 0;
+ field_0x4a = 0;
+ field_0x58 = 0;
+ field_0x54 = 0;
+ field_0x4c = 0;
+ field_0x50 = 0;
+ mTexMtxCalcType = 0;
+}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -464,6 +559,7 @@ asm J3DAnmTextureSRTKey::J3DAnmTextureSRTKey() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__19J3DAnmTextureSRTKeyFv.s"
}
#pragma pop
+#endif
/* 80329F14-8032A184 324854 0270+00 0/0 1/1 0/0 .text
* calcTransform__19J3DAnmTextureSRTKeyCFfUsP17J3DTextureSRTInfo */
@@ -500,6 +596,17 @@ asm f32 J3DAnmClusterKey::getWeight(u16 param_0) const {
#pragma pop
/* 8032A29C-8032A30C 324BDC 0070+00 2/2 0/0 0/0 .text __ct__14J3DAnmVtxColorFv */
+// matches with literals
+#ifdef NONMATCHING
+J3DAnmVtxColor::J3DAnmVtxColor() : J3DAnmBase(0) {
+ for (int i = 0; i < 2; i++) {
+ mAnmTableNum[i] = 0;
+ }
+ for (int i = 0; i < 2; i++) {
+ mAnmVtxColorIndexData[i] = 0;
+ }
+}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -508,16 +615,14 @@ asm J3DAnmVtxColor::J3DAnmVtxColor() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmVtxColorFv.s"
}
#pragma pop
+#endif
/* 8032A30C-8032A368 324C4C 005C+00 0/0 1/1 0/0 .text __ct__18J3DAnmVtxColorFullFv */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm J3DAnmVtxColorFull::J3DAnmVtxColorFull() {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__18J3DAnmVtxColorFullFv.s"
+J3DAnmVtxColorFull::J3DAnmVtxColorFull() {
+ for (int i = 0; i < 2; i++) {
+ field_0x18[i] = 0;
+ }
}
-#pragma pop
/* 8032A368-8032A4E0 324CA8 0178+00 1/0 0/0 0/0 .text
* getColor__18J3DAnmVtxColorFullCFUcUsP8_GXColor */
@@ -531,14 +636,11 @@ asm void J3DAnmVtxColorFull::getColor(u8 param_0, u16 param_1, _GXColor* param_2
#pragma pop
/* 8032A4E0-8032A53C 324E20 005C+00 0/0 1/1 0/0 .text __ct__17J3DAnmVtxColorKeyFv */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm J3DAnmVtxColorKey::J3DAnmVtxColorKey() {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__17J3DAnmVtxColorKeyFv.s"
+J3DAnmVtxColorKey::J3DAnmVtxColorKey() {
+ for (int i = 0; i < 2; i++) {
+ field_0x18[i] = 0;
+ }
}
-#pragma pop
/* ############################################################################################## */
/* 80456458-8045645C 004A58 0004+00 3/3 0/0 0/0 .sdata2 @1499 */
@@ -556,6 +658,10 @@ asm void J3DAnmVtxColorKey::getColor(u8 param_0, u16 param_1, _GXColor* param_2)
#pragma pop
/* 8032A828-8032A8A4 325168 007C+00 2/2 0/0 0/0 .text __ct__11J3DAnmColorFv */
+// matches with literals
+#ifdef NONMATCHING
+J3DAnmColor::J3DAnmColor() : J3DAnmBase(0), field_0xc(0), field_0xe(0), field_0x10(0), field_0x12(0), mUpdateMaterialNum(0), mUpdateMaterialID(NULL) {}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -564,6 +670,7 @@ asm J3DAnmColor::J3DAnmColor() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__11J3DAnmColorFv.s"
}
#pragma pop
+#endif
/* 8032A8A4-8032A93C 3251E4 0098+00 0/0 1/1 0/0 .text
* searchUpdateMaterialID__11J3DAnmColorFP16J3DMaterialTable */
@@ -577,14 +684,13 @@ asm void J3DAnmColor::searchUpdateMaterialID(J3DMaterialTable* param_0) {
#pragma pop
/* 8032A93C-8032A990 32527C 0054+00 0/0 1/1 0/0 .text __ct__15J3DAnmColorFullFv */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm J3DAnmColorFull::J3DAnmColorFull() {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmColorFullFv.s"
+J3DAnmColorFull::J3DAnmColorFull() {
+ field_0x2c = 0;
+ field_0x30 = 0;
+ field_0x34 = 0;
+ field_0x38 = 0;
+ field_0x3c = 0;
}
-#pragma pop
/* 8032A990-8032AB00 3252D0 0170+00 1/0 0/0 0/0 .text getColor__15J3DAnmColorFullCFUsP8_GXColor */
#pragma push
@@ -597,14 +703,13 @@ asm void J3DAnmColorFull::getColor(u16 param_0, _GXColor* param_1) const {
#pragma pop
/* 8032AB00-8032AB54 325440 0054+00 0/0 1/1 0/0 .text __ct__14J3DAnmColorKeyFv */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm J3DAnmColorKey::J3DAnmColorKey() {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__14J3DAnmColorKeyFv.s"
+J3DAnmColorKey::J3DAnmColorKey() {
+ field_0x2c = 0;
+ field_0x30 = 0;
+ field_0x34 = 0;
+ field_0x38 = 0;
+ field_0x3c = 0;
}
-#pragma pop
/* 8032AB54-8032AE18 325494 02C4+00 1/0 0/0 0/0 .text getColor__14J3DAnmColorKeyCFUsP8_GXColor */
#pragma push
@@ -617,6 +722,31 @@ asm void J3DAnmColorKey::getColor(u16 param_0, _GXColor* param_1) const {
#pragma pop
/* 8032AE18-8032AED8 325758 00C0+00 0/0 1/1 0/0 .text __ct__15J3DAnmTevRegKeyFv */
+// matches with literals
+#ifdef NONMATCHING
+J3DAnmTevRegKey::J3DAnmTevRegKey() : J3DAnmBase(0) {
+ mKRegUpdateMaterialNum = 0;
+ mCRegUpdateMaterialNum = 0;
+ field_0x16 = 0;
+ field_0x14 = 0;
+ field_0x12 = 0;
+ field_0x10 = 0;
+ field_0x1e = 0;
+ field_0x1c = 0;
+ field_0x1a = 0;
+ field_0x18 = 0;
+ mKRegUpdateMaterialID = 0;
+ mCRegUpdateMaterialID = 0;
+ field_0x5c = 0;
+ field_0x58 = 0;
+ field_0x54 = 0;
+ field_0x50 = 0;
+ field_0x6c = 0;
+ field_0x68 = 0;
+ field_0x64 = 0;
+ field_0x60 = 0;
+}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -625,8 +755,13 @@ asm J3DAnmTevRegKey::J3DAnmTevRegKey() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__15J3DAnmTevRegKeyFv.s"
}
#pragma pop
+#endif
/* 8032AED8-8032AF50 325818 0078+00 0/0 2/2 0/0 .text __ct__16J3DAnmTexPatternFv */
+// matches with literals
+#if NONMATCHING
+J3DAnmTexPattern::J3DAnmTexPattern() : J3DAnmBase(0), field_0xc(NULL), mAnmTable(NULL), field_0x14(0), mUpdateMaterialNum(0), field_0x18(NULL) {}
+#else
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
@@ -635,6 +770,7 @@ asm J3DAnmTexPattern::J3DAnmTexPattern() {
#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/__ct__16J3DAnmTexPatternFv.s"
}
#pragma pop
+#endif
/* 8032AF50-8032B004 325890 00B4+00 0/0 1/1 72/72 .text getTexNo__16J3DAnmTexPatternCFUsPUs */
#pragma push
@@ -648,47 +784,49 @@ asm void J3DAnmTexPattern::getTexNo(u16 param_0, u16* param_1) const {
/* 8032B004-8032B09C 325944 0098+00 1/1 1/1 0/0 .text
* searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void J3DAnmTexPattern::searchUpdateMaterialID(J3DMaterialTable* param_0) {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP16J3DMaterialTable.s"
+void J3DAnmTexPattern::searchUpdateMaterialID(J3DMaterialTable* param_0) {
+ for (u16 i = 0; i < mUpdateMaterialNum; i++) {
+ s32 r3 = param_0->getMaterialName()->getIndex(field_0x1c.getName(i));
+ if (r3 != -1) {
+ field_0x18[i] = r3;
+ } else {
+ field_0x18[i] = -1;
+ }
+ }
}
-#pragma pop
/* 8032B09C-8032B0C0 3259DC 0024+00 0/0 4/4 1/1 .text
* searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void J3DAnmTexPattern::searchUpdateMaterialID(J3DModelData* param_0) {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__16J3DAnmTexPatternFP12J3DModelData.s"
+void J3DAnmTexPattern::searchUpdateMaterialID(J3DModelData* param_0) {
+ searchUpdateMaterialID(&param_0->getMaterialTable());
}
-#pragma pop
/* 8032B0C0-8032B1D4 325A00 0114+00 1/1 1/1 0/0 .text
* searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void J3DAnmTextureSRTKey::searchUpdateMaterialID(J3DMaterialTable* param_0) {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP16J3DMaterialTable.s"
+void J3DAnmTextureSRTKey::searchUpdateMaterialID(J3DMaterialTable* param_0) {
+ for (u16 i = 0; i < u16(field_0x14 / 3); i++) {
+ s32 r3 = param_0->getMaterialName()->getIndex(field_0x30.getName(i));
+ if (r3 != -1) {
+ mUpdateMaterialID[i] = r3;
+ } else {
+ mUpdateMaterialID[i] = -1;
+ }
+ }
+ for (u16 i = 0; i < u16(field_0x4a / 3); i++) {
+ s32 r3 = param_0->getMaterialName()->getIndex(field_0x64.getName(i));
+ if (r3 != -1) {
+ field_0x60[i] = r3;
+ } else {
+ field_0x60[i] = -1;
+ }
+ }
}
-#pragma pop
/* 8032B1D4-8032B1F8 325B14 0024+00 0/0 8/8 6/6 .text
* searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void J3DAnmTextureSRTKey::searchUpdateMaterialID(J3DModelData* param_0) {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__19J3DAnmTextureSRTKeyFP12J3DModelData.s"
+void J3DAnmTextureSRTKey::searchUpdateMaterialID(J3DModelData* param_0) {
+ searchUpdateMaterialID(&param_0->getMaterialTable());
}
-#pragma pop
/* ############################################################################################## */
/* 8045645C-80456460 004A5C 0004+00 1/1 0/0 0/0 .sdata2 @1817 */
@@ -736,14 +874,9 @@ asm void J3DAnmTevRegKey::searchUpdateMaterialID(J3DMaterialTable* param_0) {
/* 8032B87C-8032B8A0 3261BC 0024+00 0/0 9/9 4/4 .text
* searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData */
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void J3DAnmTevRegKey::searchUpdateMaterialID(J3DModelData* param_0) {
- nofralloc
-#include "asm/JSystem/J3DGraphAnimator/J3DAnimation/searchUpdateMaterialID__15J3DAnmTevRegKeyFP12J3DModelData.s"
+void J3DAnmTevRegKey::searchUpdateMaterialID(J3DModelData* param_0) {
+ searchUpdateMaterialID(&param_0->getMaterialTable());
}
-#pragma pop
/* 8032B8A0-8032BAD4 3261E0 0234+00 6/6 0/0 0/0 .text
* J3DGetKeyFrameInterpolation<s>__FfP18J3DAnmKeyTableBasePs */
diff --git a/libs/JSystem/J3DGraphBase/J3DPacket.cpp b/libs/JSystem/J3DGraphBase/J3DPacket.cpp
index 85f799d080..87770b6c21 100644
--- a/libs/JSystem/J3DGraphBase/J3DPacket.cpp
+++ b/libs/JSystem/J3DGraphBase/J3DPacket.cpp
@@ -12,7 +12,7 @@
#include "JSystem/J3DGraphBase/J3DSys.h"
#include "JSystem/J3DGraphBase/J3DVertex.h"
#include "JSystem/JKernel/JKRHeap.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/gx/GX.h"
#include "dolphin/os/OSCache.h"
diff --git a/libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp b/libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp
index 94b407be05..64f0bb02ae 100644
--- a/libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp
+++ b/libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp
@@ -5,7 +5,7 @@
#include "JSystem/J3DGraphBase/J3DShapeDraw.h"
#include "JSystem/JKernel/JKRHeap.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/gx/GX.h"
#include "dolphin/os/OSCache.h"
diff --git a/libs/JSystem/J3DGraphBase/J3DVertex.cpp b/libs/JSystem/J3DGraphBase/J3DVertex.cpp
index 1356041e34..6d3e4e4ba5 100644
--- a/libs/JSystem/J3DGraphBase/J3DVertex.cpp
+++ b/libs/JSystem/J3DGraphBase/J3DVertex.cpp
@@ -7,6 +7,7 @@
#include "JSystem/J3DGraphAnimator/J3DJointTree.h"
#include "JSystem/J3DGraphBase/J3DSys.h"
#include "JSystem/JKernel/JKRHeap.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/os/OSCache.h"
#include "dolphin/types.h"
diff --git a/libs/JSystem/JAudio2/JASWaveArcLoader.cpp b/libs/JSystem/JAudio2/JASWaveArcLoader.cpp
index af19d207c4..5d6d4325d1 100644
--- a/libs/JSystem/JAudio2/JASWaveArcLoader.cpp
+++ b/libs/JSystem/JAudio2/JASWaveArcLoader.cpp
@@ -4,6 +4,7 @@
//
#include "JSystem/JAudio2/JASWaveArcLoader.h"
+#include "MSL_C/string.h"
//
// Forward References:
diff --git a/libs/JSystem/JAudio2/JAUSectionHeap.cpp b/libs/JSystem/JAudio2/JAUSectionHeap.cpp
index d794f1cc67..62cc69dfd8 100644
--- a/libs/JSystem/JAudio2/JAUSectionHeap.cpp
+++ b/libs/JSystem/JAudio2/JAUSectionHeap.cpp
@@ -4,6 +4,7 @@
//
#include "JSystem/JAudio2/JAUSectionHeap.h"
+#include "MSL_C/stdlib.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -282,7 +283,6 @@ extern "C" void _restgpr_26();
extern "C" void _restgpr_27();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void abort();
extern "C" void fprintf();
extern "C" extern void* __vt__11JASBankList[3 + 1 /* padding */];
extern "C" extern void* __vt__7JASBank[5];
@@ -290,7 +290,6 @@ extern "C" extern void* __vt__12JASVoiceBank[5 + 1 /* padding */];
extern "C" extern void* __vt__13JAISeqDataMgr[6];
extern "C" extern void* __vt__16JAIStreamDataMgr[4 + 1 /* padding */];
extern "C" extern void* __vt__32JAUStreamDataMgr_StreamFileTable[4];
-extern "C" extern void* __files[80];
extern "C" extern u8 data_80450B50[4];
extern "C" extern u8 data_80450B54[4];
extern "C" extern u8 data_80450B58[4];
diff --git a/libs/JSystem/JKernel/JKRAramArchive.cpp b/libs/JSystem/JKernel/JKRAramArchive.cpp
index b6482fc77c..5b2cb23561 100644
--- a/libs/JSystem/JKernel/JKRAramArchive.cpp
+++ b/libs/JSystem/JKernel/JKRAramArchive.cpp
@@ -9,8 +9,8 @@
#include "JSystem/JKernel/JKRDvdRipper.h"
#include "JSystem/JKernel/JKRFile.h"
#include "JSystem/JUtility/JUTException.h"
-#include "MSL_C/MSL_Common/Src/string.h"
#include "MSL_C/math.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/os/OSCache.h"
diff --git a/libs/JSystem/JKernel/JKRArchivePri.cpp b/libs/JSystem/JKernel/JKRArchivePri.cpp
index 988c461361..7743207cce 100644
--- a/libs/JSystem/JKernel/JKRArchivePri.cpp
+++ b/libs/JSystem/JKernel/JKRArchivePri.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JKernel/JKRArchive.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "MSL_C/MSL_Common/Src/ctype.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
/* ############################################################################################## */
/* 80451420-80451428 000920 0004+04 1/1 5/5 0/0 .sbss sCurrentDirID__10JKRArchive */
diff --git a/libs/JSystem/JKernel/JKRCompArchive.cpp b/libs/JSystem/JKernel/JKRCompArchive.cpp
index 8597e6727e..9626f9eed3 100644
--- a/libs/JSystem/JKernel/JKRCompArchive.cpp
+++ b/libs/JSystem/JKernel/JKRCompArchive.cpp
@@ -9,8 +9,8 @@
#include "JSystem/JKernel/JKRDvdArchive.h"
#include "JSystem/JKernel/JKRMemArchive.h"
#include "JSystem/JUtility/JUTException.h"
-#include "MSL_C/MSL_Common/Src/string.h"
#include "MSL_C/math.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
//
diff --git a/libs/JSystem/JKernel/JKRDvdRipper.cpp b/libs/JSystem/JKernel/JKRDvdRipper.cpp
index 405214c384..59fa399fd1 100644
--- a/libs/JSystem/JKernel/JKRDvdRipper.cpp
+++ b/libs/JSystem/JKernel/JKRDvdRipper.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JKernel/JKRDvdRipper.h"
#include "JSystem/JKernel/JKRDvdFile.h"
#include "JSystem/JUtility/JUTException.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/os/OSCache.h"
#include "global.h"
diff --git a/libs/JSystem/JKernel/JKRFileCache.cpp b/libs/JSystem/JKernel/JKRFileCache.cpp
index 24da35f07f..d77e26ddcd 100644
--- a/libs/JSystem/JKernel/JKRFileCache.cpp
+++ b/libs/JSystem/JKernel/JKRFileCache.cpp
@@ -8,7 +8,7 @@
#include "JSystem/JKernel/JKRFileFinder.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "MSL_C/MSL_Common/Src/ctype.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "global.h"
/* 802D49B4-802D4AB4 2CF2F4 0100+00 0/0 2/2 0/0 .text mount__12JKRFileCacheFPCcP7JKRHeapPCc */
diff --git a/libs/JSystem/JKernel/JKRFileLoader.cpp b/libs/JSystem/JKernel/JKRFileLoader.cpp
index c019a58b0c..c12ac92585 100644
--- a/libs/JSystem/JKernel/JKRFileLoader.cpp
+++ b/libs/JSystem/JKernel/JKRFileLoader.cpp
@@ -4,7 +4,7 @@
//
#include "JSystem/JKernel/JKRFileLoader.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "global.h"
diff --git a/libs/JSystem/JKernel/JKRMemArchive.cpp b/libs/JSystem/JKernel/JKRMemArchive.cpp
index 5ec3502403..c4c3edf333 100644
--- a/libs/JSystem/JKernel/JKRMemArchive.cpp
+++ b/libs/JSystem/JKernel/JKRMemArchive.cpp
@@ -7,7 +7,7 @@
#include "JSystem/JKernel/JKRDvdRipper.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JUtility/JUTException.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
//
diff --git a/libs/JSystem/JMessage/resource.cpp b/libs/JSystem/JMessage/resource.cpp
index ad6c49503a..795b9fc121 100644
--- a/libs/JSystem/JMessage/resource.cpp
+++ b/libs/JSystem/JMessage/resource.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JMessage/resource.h"
#include "JSystem/JGadget/binary.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
//
diff --git a/libs/JSystem/JParticle/JPAResourceManager.cpp b/libs/JSystem/JParticle/JPAResourceManager.cpp
index ad0ceb8786..0334495374 100644
--- a/libs/JSystem/JParticle/JPAResourceManager.cpp
+++ b/libs/JSystem/JParticle/JPAResourceManager.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JParticle/JPAResourceManager.h"
#include "JSystem/JParticle/JPADynamicsBlock.h"
#include "JSystem/JParticle/JPAResource.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/libs/JSystem/JStudio/JStudio/functionvalue.cpp b/libs/JSystem/JStudio/JStudio/functionvalue.cpp
index eb41a55d3c..d51fd487fa 100644
--- a/libs/JSystem/JStudio/JStudio/functionvalue.cpp
+++ b/libs/JSystem/JStudio/JStudio/functionvalue.cpp
@@ -6,6 +6,7 @@
#include "JSystem/JStudio/JStudio/functionvalue.h"
#include "JSystem/JUtility/JUTException.h"
#include "MSL_C/math.h"
+#include "MSL_C/stdlib.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -179,7 +180,6 @@ extern "C" void _savefpr_29();
extern "C" void _restfpr_29();
extern "C" void _savegpr_29();
extern "C" void _restgpr_29();
-extern "C" void div();
/* ############################################################################################## */
/* 803C48E0-803C4900 021A00 0020+00 2/2 1/1 0/0 .data __vt__Q27JStudio22TFunctionValue_hermite */
diff --git a/libs/JSystem/JSupport/JSUMemoryStream.cpp b/libs/JSystem/JSupport/JSUMemoryStream.cpp
index 7b4e6f5812..093be5330a 100644
--- a/libs/JSystem/JSupport/JSUMemoryStream.cpp
+++ b/libs/JSystem/JSupport/JSUMemoryStream.cpp
@@ -4,7 +4,7 @@
//
#include "JSystem/JSupport/JSUMemoryStream.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
/* 802DC520-802DC534 2D6E60 0014+00 0/0 3/3 0/0 .text setBuffer__20JSUMemoryInputStreamFPCvl */
void JSUMemoryInputStream::setBuffer(void const* pBuffer, s32 length) {
diff --git a/libs/JSystem/JUtility/JUTException.cpp b/libs/JSystem/JUtility/JUTException.cpp
index c949afb07d..a8a28998cf 100644
--- a/libs/JSystem/JUtility/JUTException.cpp
+++ b/libs/JSystem/JUtility/JUTException.cpp
@@ -7,8 +7,9 @@
#include "JSystem/JUtility/JUTConsole.h"
#include "JSystem/JUtility/JUTDirectFile.h"
#include "JSystem/JUtility/JUTDirectPrint.h"
-#include "MSL_C/MSL_Common/Src/float.h"
+#include "MSL_C/float.h"
#include "MSL_C/stdio.h"
+#include "MSL_C/stdlib.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "dol2asm.h"
@@ -61,7 +62,6 @@ extern "C" void fopen__13JUTDirectFileFPCc();
extern "C" void fclose__13JUTDirectFileFv();
extern "C" void fgets__13JUTDirectFileFPvi();
extern "C" void print__10JUTConsoleFPCc();
-extern "C" long int strtol(const char* str, char** endptr, int base);
extern "C" void __ct__13JUTDirectFileFv();
extern "C" void __dt__13JUTDirectFileFv();
extern "C" void _savegpr_16();
diff --git a/libs/JSystem/JUtility/JUTNameTab.cpp b/libs/JSystem/JUtility/JUTNameTab.cpp
index 00cc32b420..ca2ff4ea1b 100644
--- a/libs/JSystem/JUtility/JUTNameTab.cpp
+++ b/libs/JSystem/JUtility/JUTNameTab.cpp
@@ -4,7 +4,7 @@
//
#include "JSystem/JUtility/JUTNameTab.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
JUTNameTab::JUTNameTab() {
setResource(NULL);
diff --git a/libs/SSystem/SComponent/c_lib.cpp b/libs/SSystem/SComponent/c_lib.cpp
index f789657c2b..54dfcd6c91 100644
--- a/libs/SSystem/SComponent/c_lib.cpp
+++ b/libs/SSystem/SComponent/c_lib.cpp
@@ -5,8 +5,8 @@
#include "SSystem/SComponent/c_lib.h"
#include "JSystem/JMath/JMath.h"
-#include "MSL_C/MSL_Common/Src/string.h"
#include "MSL_C/math.h"
+#include "MSL_C/string.h"
#include "SSystem/SComponent/c_math.h"
#include "SSystem/SComponent/c_xyz.h"
#include "dol2asm.h"
diff --git a/libs/Z2AudioLib/Z2AudioMgr.cpp b/libs/Z2AudioLib/Z2AudioMgr.cpp
index 905cb2b887..9356e2a86f 100644
--- a/libs/Z2AudioLib/Z2AudioMgr.cpp
+++ b/libs/Z2AudioLib/Z2AudioMgr.cpp
@@ -5,6 +5,7 @@
#include "Z2AudioLib/Z2AudioMgr.h"
#include "JSystem/JAudio2/JASDriverIF.h"
+#include "MSL_C/stdlib.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -212,7 +213,6 @@ extern "C" void _restgpr_24();
extern "C" void _restgpr_25();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void abort();
extern "C" void fprintf();
extern "C" extern void* __vt__12JAUSoundInfo[4 + 1 /* padding */];
extern "C" extern void* __vt__16JAIStreamAramMgr[5];
@@ -220,7 +220,6 @@ extern "C" extern void* __vt__16JAIStreamDataMgr[4 + 1 /* padding */];
extern "C" extern void* __vt__17JAUAudioArcLoader[17 + 1 /* padding */];
extern "C" extern void* __vt__16Z2AudioArcLoader[17 + 1 /* padding */];
extern "C" extern void* __vt__11Z2SoundInfo[20];
-extern "C" extern void* __files[80];
extern "C" extern u8 data_804341C4[16 + 4 /* padding */];
extern "C" extern u8 data_804341E4[16 + 4 /* padding */];
extern "C" f32 VOL_BGM_DEFAULT__7Z2Param;
diff --git a/libs/dolphin/ar/ar.c b/libs/dolphin/ar/ar.c
index 6f11a21f84..4dad7a2f07 100644
--- a/libs/dolphin/ar/ar.c
+++ b/libs/dolphin/ar/ar.c
@@ -4,7 +4,7 @@
//
#include "dolphin/ar/ar.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/base/PPCArch.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDBlock.c b/libs/dolphin/card/CARDBlock.c
index 011489d080..40ca946fde 100644
--- a/libs/dolphin/card/CARDBlock.c
+++ b/libs/dolphin/card/CARDBlock.c
@@ -4,7 +4,7 @@
//
#include "dolphin/card/CARDBlock.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDCheck.c b/libs/dolphin/card/CARDCheck.c
index abd98491a7..a35974e8d6 100644
--- a/libs/dolphin/card/CARDCheck.c
+++ b/libs/dolphin/card/CARDCheck.c
@@ -4,7 +4,7 @@
//
#include "dolphin/card/CARDCheck.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDCreate.c b/libs/dolphin/card/CARDCreate.c
index 01caf4025c..d391d501ec 100644
--- a/libs/dolphin/card/CARDCreate.c
+++ b/libs/dolphin/card/CARDCreate.c
@@ -4,8 +4,7 @@
//
#include "dolphin/card/CARDCreate.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDDir.c b/libs/dolphin/card/CARDDir.c
index 87d776574c..68d15bf9e6 100644
--- a/libs/dolphin/card/CARDDir.c
+++ b/libs/dolphin/card/CARDDir.c
@@ -4,7 +4,7 @@
//
#include "dolphin/card/CARDDir.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDFormat.c b/libs/dolphin/card/CARDFormat.c
index d633512260..9532329bf7 100644
--- a/libs/dolphin/card/CARDFormat.c
+++ b/libs/dolphin/card/CARDFormat.c
@@ -4,7 +4,7 @@
//
#include "dolphin/card/CARDFormat.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/card/CARDOpen.c b/libs/dolphin/card/CARDOpen.c
index 2321c21542..0a2d9fbde1 100644
--- a/libs/dolphin/card/CARDOpen.c
+++ b/libs/dolphin/card/CARDOpen.c
@@ -4,7 +4,7 @@
//
#include "dolphin/card/CARDOpen.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/card/card.h"
#include "dolphin/dsp/dsp.h"
diff --git a/libs/dolphin/dvd/dvd.c b/libs/dolphin/dvd/dvd.c
index 668e8a363d..db30119490 100644
--- a/libs/dolphin/dvd/dvd.c
+++ b/libs/dolphin/dvd/dvd.c
@@ -4,8 +4,7 @@
//
#include "dolphin/dvd/dvd.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/dvd/dvdlow.h"
#include "dolphin/os/OS.h"
diff --git a/libs/dolphin/dvd/dvdidutils.c b/libs/dolphin/dvd/dvdidutils.c
index de95f3e481..21dd68a8f4 100644
--- a/libs/dolphin/dvd/dvdidutils.c
+++ b/libs/dolphin/dvd/dvdidutils.c
@@ -1,5 +1,5 @@
#include "dolphin/dvd/dvdidutils.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dolphin/dvd/dvd.h"
/* 8034BC04-8034BCFC 346544 00F8+00 0/0 1/1 0/0 .text DVDCompareDiskID */
diff --git a/libs/dolphin/dvd/fstload.c b/libs/dolphin/dvd/fstload.c
index d39425eae6..50e45f4d5e 100644
--- a/libs/dolphin/dvd/fstload.c
+++ b/libs/dolphin/dvd/fstload.c
@@ -4,7 +4,7 @@
//
#include "dolphin/dvd/fstload.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/dvd/dvd.h"
#include "dolphin/os/OS.h"
diff --git a/libs/dolphin/pad/Pad.c b/libs/dolphin/pad/Pad.c
index 9716ad03b6..11235c960b 100644
--- a/libs/dolphin/pad/Pad.c
+++ b/libs/dolphin/pad/Pad.c
@@ -4,7 +4,7 @@
//
#include "dolphin/pad/Pad.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/si/SIBios.h"
#include "dolphin/si/SISamplingRate.h"
diff --git a/rel/d/a/d_a_bg/d_a_bg.cpp b/rel/d/a/d_a_bg/d_a_bg.cpp
index 8ed960569f..87498d584e 100644
--- a/rel/d/a/d_a_bg/d_a_bg.cpp
+++ b/rel/d/a/d_a_bg/d_a_bg.cpp
@@ -4,7 +4,7 @@
//
#include "rel/d/a/d_a_bg/d_a_bg.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
+#include "MSL_C/string.h"
#include "d/bg/d_bg_w_kcol.h"
#include "d/com/d_com_inf_game.h"
#include "d/com/d_com_static.h"
diff --git a/src/__start.c b/src/__start.c
index a022ef7430..5bc6f38431 100644
--- a/src/__start.c
+++ b/src/__start.c
@@ -1,3 +1,4 @@
+#include "MSL_C/stdlib.h"
#include "dol2asm.h"
#include "dolphin/types.h"
#include "init.h"
@@ -20,7 +21,6 @@ void OSInit();
void OSResetSystem(s32, s32, s32);
void __init_user();
void DBInit();
-void exit();
void InitMetroTRK();
void InitMetroTRK_BBA();
extern u8 data_804516D0;
diff --git a/src/c/c_dylink.cpp b/src/c/c_dylink.cpp
index ecc51364b2..fcf5b640c3 100644
--- a/src/c/c_dylink.cpp
+++ b/src/c/c_dylink.cpp
@@ -6,7 +6,7 @@
#include "DynamicLink.h"
#include "JSystem/JKernel/JKRArchive.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "d/com/d_com_inf_game.h"
#include "d/d_procname.h"
#include "dol2asm.h"
diff --git a/src/d/d_eye_hl.cpp b/src/d/d_eye_hl.cpp
index ba658e20b2..73abec2c13 100644
--- a/src/d/d_eye_hl.cpp
+++ b/src/d/d_eye_hl.cpp
@@ -4,7 +4,7 @@
*/
#include "d/d_eye_hl.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "d/com/d_com_inf_game.h"
#include "dolphin/os/OS.h"
#include "dol2asm.h"
diff --git a/src/d/d_resorce.cpp b/src/d/d_resorce.cpp
index 59e5e98dcd..cc186865e5 100644
--- a/src/d/d_resorce.cpp
+++ b/src/d/d_resorce.cpp
@@ -12,8 +12,8 @@
#include "JSystem/J3DGraphLoader/J3DClusterLoader.h"
#include "JSystem/J3DGraphLoader/J3DModelLoader.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
-#include "MSL_C/MSL_Common/Src/extras.h"
#include "MSL_C/stdio.h"
+#include "MSL_C/string.h"
#include "d/com/d_com_inf_game.h"
#include "dol2asm.h"
#include "dolphin/mtx/mtx.h"
@@ -149,7 +149,6 @@ extern "C" void _restgpr_26();
extern "C" void _restgpr_27();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void memcmp();
extern "C" extern void* __vt__14J3DMaterialAnm[4];
extern "C" u8 now__14mDoMtx_stack_c[48];
extern "C" u8 mFrameBufferTimg__13mDoGph_gInf_c[4];
diff --git a/src/d/kankyo/d_kankyo.cpp b/src/d/kankyo/d_kankyo.cpp
index 111de41c9d..7237f3678c 100644
--- a/src/d/kankyo/d_kankyo.cpp
+++ b/src/d/kankyo/d_kankyo.cpp
@@ -4,7 +4,7 @@
//
#include "d/kankyo/d_kankyo.h"
-#include "MSL_C/MSL_Common/Src/mem.h"
+#include "MSL_C/string.h"
#include "SSystem/SComponent/c_counter.h"
#include "SSystem/SComponent/c_math.h"
#include "d/com/d_com_inf_game.h"
diff --git a/src/d/kankyo/d_kankyo_rain.cpp b/src/d/kankyo/d_kankyo_rain.cpp
index b803a409a9..8630e948e1 100644
--- a/src/d/kankyo/d_kankyo_rain.cpp
+++ b/src/d/kankyo/d_kankyo_rain.cpp
@@ -5,6 +5,7 @@
#include "d/kankyo/d_kankyo_rain.h"
#include "MSL_C/math.h"
+#include "MSL_C/string.h"
#include "d/com/d_com_inf_game.h"
#include "d/d_demo.h"
#include "dol2asm.h"
@@ -169,7 +170,6 @@ extern "C" void _restgpr_26();
extern "C" void _restgpr_27();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void memcmp();
extern "C" extern void* __vt__14dBgS_ObjGndChk[12 + 1 /* padding */];
extern "C" extern void* __vt__19dKankyo_star_Packet[5];
extern "C" extern void* __vt__19dKankyo_snow_Packet[5];
diff --git a/src/d/kankyo/d_kankyo_wether.cpp b/src/d/kankyo/d_kankyo_wether.cpp
index 19d038f3c2..0839605f1a 100644
--- a/src/d/kankyo/d_kankyo_wether.cpp
+++ b/src/d/kankyo/d_kankyo_wether.cpp
@@ -4,6 +4,7 @@
//
#include "d/kankyo/d_kankyo_wether.h"
+#include "MSL_C/string.h"
#include "Z2AudioLib/Z2EnvSeMgr.h"
#include "d/com/d_com_inf_game.h"
#include "d/kankyo/d_kankyo.h"
@@ -210,7 +211,6 @@ extern "C" void _restgpr_25();
extern "C" void _restgpr_26();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void memcmp();
extern "C" extern void* __vt__9J3DPacket[5];
extern "C" extern dScnKy_env_light_c g_env_light;
extern "C" extern Z2EnvSeMgr g_mEnvSeMgr;
diff --git a/src/d/menu/d_menu_collect.cpp b/src/d/menu/d_menu_collect.cpp
index a8fc4babdc..a37283bc79 100644
--- a/src/d/menu/d_menu_collect.cpp
+++ b/src/d/menu/d_menu_collect.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_collect.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_dmap.cpp b/src/d/menu/d_menu_dmap.cpp
index bd0fb53db6..450dbd1ff6 100644
--- a/src/d/menu/d_menu_dmap.cpp
+++ b/src/d/menu/d_menu_dmap.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_dmap.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_fmap.cpp b/src/d/menu/d_menu_fmap.cpp
index 86a506e0bb..87bd3ccac6 100644
--- a/src/d/menu/d_menu_fmap.cpp
+++ b/src/d/menu/d_menu_fmap.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_fmap.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_insect.cpp b/src/d/menu/d_menu_insect.cpp
index d2eae18a4a..f54dbafc1f 100644
--- a/src/d/menu/d_menu_insect.cpp
+++ b/src/d/menu/d_menu_insect.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_insect.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_letter.cpp b/src/d/menu/d_menu_letter.cpp
index eb1c4af279..56c6f57215 100644
--- a/src/d/menu/d_menu_letter.cpp
+++ b/src/d/menu/d_menu_letter.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_letter.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_option.cpp b/src/d/menu/d_menu_option.cpp
index 4aaf5028dc..97bd179e30 100644
--- a/src/d/menu/d_menu_option.cpp
+++ b/src/d/menu/d_menu_option.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_option.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_ring.cpp b/src/d/menu/d_menu_ring.cpp
index fdab7a3d83..e31c1a152f 100644
--- a/src/d/menu/d_menu_ring.cpp
+++ b/src/d/menu/d_menu_ring.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_ring.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/menu/d_menu_skill.cpp b/src/d/menu/d_menu_skill.cpp
index 4eb93188d5..9ba5bb7c10 100644
--- a/src/d/menu/d_menu_skill.cpp
+++ b/src/d/menu/d_menu_skill.cpp
@@ -4,6 +4,7 @@
//
#include "d/menu/d_menu_skill.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
diff --git a/src/d/s/d_s_room.cpp b/src/d/s/d_s_room.cpp
index a0c978719b..5ea2c86a5a 100644
--- a/src/d/s/d_s_room.cpp
+++ b/src/d/s/d_s_room.cpp
@@ -5,6 +5,7 @@
#include "d/s/d_s_room.h"
#include "MSL_C/stdio.h"
+#include "MSL_C/string.h"
#include "d/com/d_com_inf_game.h"
#include "d/d_procname.h"
#include "d/s/d_s_play.h"
@@ -104,7 +105,6 @@ extern "C" void _restgpr_25();
extern "C" void _restgpr_27();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
-extern "C" void strnicmp();
// extern "C" extern void* g_fopScn_Method[5 + 1 /* padding */];
// extern "C" extern void* g_fpcNd_Method[5 + 1 /* padding */];
extern "C" u8 mStatus__20dStage_roomControl_c[65792];
diff --git a/src/init.c b/src/init.c
index f7e09b8a94..5faa950a12 100644
--- a/src/init.c
+++ b/src/init.c
@@ -4,6 +4,8 @@
//
#include "init.h"
+#include "MSL_C/stdlib.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
@@ -39,7 +41,6 @@ void __OSCacheInit();
void OSResetSystem(s32, s32, s32);
void __init_user();
void DBInit();
-void exit();
void TRK_fill_mem(void* dst, int val, size_t n);
void InitMetroTRK();
void InitMetroTRK_BBA();
diff --git a/src/m_Do/m_Do_MemCard.cpp b/src/m_Do/m_Do_MemCard.cpp
index aaa62569b5..5f39fed768 100644
--- a/src/m_Do/m_Do_MemCard.cpp
+++ b/src/m_Do/m_Do_MemCard.cpp
@@ -6,7 +6,7 @@
#include "m_Do/m_Do_MemCard.h"
#include "JSystem/JKernel/JKRThread.h"
#include "JSystem/JGadget/binary.h"
-#include "MSL_C/MSL_Common/Src/string.h"
+#include "MSL_C/string.h"
#include "dol2asm.h"
#include "dolphin/types.h"
#include "m_Do/m_Do_ext.h"