mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-11-23 21:39:44 +00:00
Link JASResArcLoader.cpp
This commit is contained in:
parent
c4e9293219
commit
2433bd44fb
@ -1,148 +0,0 @@
|
||||
.include "macros.inc"
|
||||
|
||||
.section .text, "ax" # 0x800056C0 - 0x80472F00
|
||||
.fn getResSize__15JASResArcLoaderFP10JKRArchiveUs, global
|
||||
/* 800A7670 000A45B0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 800A7674 000A45B4 7C 08 02 A6 */ mflr r0
|
||||
/* 800A7678 000A45B8 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 800A767C 000A45BC 4B F7 38 39 */ bl findIdResource__10JKRArchiveCFUs
|
||||
/* 800A7680 000A45C0 28 03 00 00 */ cmplwi r3, 0
|
||||
/* 800A7684 000A45C4 40 82 00 0C */ bne .L_800A7690
|
||||
/* 800A7688 000A45C8 38 60 00 00 */ li r3, 0
|
||||
/* 800A768C 000A45CC 48 00 00 08 */ b .L_800A7694
|
||||
.L_800A7690:
|
||||
/* 800A7690 000A45D0 80 63 00 0C */ lwz r3, 0xc(r3)
|
||||
.L_800A7694:
|
||||
/* 800A7694 000A45D4 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 800A7698 000A45D8 7C 08 03 A6 */ mtlr r0
|
||||
/* 800A769C 000A45DC 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 800A76A0 000A45E0 4E 80 00 20 */ blr
|
||||
.endfn getResSize__15JASResArcLoaderFP10JKRArchiveUs
|
||||
|
||||
.fn loadResourceCallback__15JASResArcLoaderFPv, local
|
||||
/* 800A76A4 000A45E4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 800A76A8 000A45E8 7C 08 02 A6 */ mflr r0
|
||||
/* 800A76AC 000A45EC 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 800A76B0 000A45F0 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 800A76B4 000A45F4 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 800A76B8 000A45F8 7C 7E 1B 78 */ mr r30, r3
|
||||
/* 800A76BC 000A45FC 80 63 00 00 */ lwz r3, 0(r3)
|
||||
/* 800A76C0 000A4600 80 9E 00 08 */ lwz r4, 8(r30)
|
||||
/* 800A76C4 000A4604 80 BE 00 0C */ lwz r5, 0xc(r30)
|
||||
/* 800A76C8 000A4608 A0 DE 00 04 */ lhz r6, 4(r30)
|
||||
/* 800A76CC 000A460C 4B F7 41 D1 */ bl readResource__10JKRArchiveFPvUlUs
|
||||
/* 800A76D0 000A4610 81 9E 00 10 */ lwz r12, 0x10(r30)
|
||||
/* 800A76D4 000A4614 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 800A76D8 000A4618 28 0C 00 00 */ cmplwi r12, 0
|
||||
/* 800A76DC 000A461C 41 82 00 10 */ beq .L_800A76EC
|
||||
/* 800A76E0 000A4620 80 9E 00 14 */ lwz r4, 0x14(r30)
|
||||
/* 800A76E4 000A4624 7D 89 03 A6 */ mtctr r12
|
||||
/* 800A76E8 000A4628 4E 80 04 21 */ bctrl
|
||||
.L_800A76EC:
|
||||
/* 800A76EC 000A462C 28 1F 00 00 */ cmplwi r31, 0
|
||||
/* 800A76F0 000A4630 40 82 00 20 */ bne .L_800A7710
|
||||
/* 800A76F4 000A4634 80 7E 00 18 */ lwz r3, 0x18(r30)
|
||||
/* 800A76F8 000A4638 28 03 00 00 */ cmplwi r3, 0
|
||||
/* 800A76FC 000A463C 41 82 00 2C */ beq .L_800A7728
|
||||
/* 800A7700 000A4640 38 80 FF FF */ li r4, -1
|
||||
/* 800A7704 000A4644 38 A0 00 01 */ li r5, 1
|
||||
/* 800A7708 000A4648 48 04 7E 15 */ bl OSSendMessage
|
||||
/* 800A770C 000A464C 48 00 00 1C */ b .L_800A7728
|
||||
.L_800A7710:
|
||||
/* 800A7710 000A4650 80 7E 00 18 */ lwz r3, 0x18(r30)
|
||||
/* 800A7714 000A4654 28 03 00 00 */ cmplwi r3, 0
|
||||
/* 800A7718 000A4658 41 82 00 10 */ beq .L_800A7728
|
||||
/* 800A771C 000A465C 38 80 00 00 */ li r4, 0
|
||||
/* 800A7720 000A4660 38 A0 00 01 */ li r5, 1
|
||||
/* 800A7724 000A4664 48 04 7D F9 */ bl OSSendMessage
|
||||
.L_800A7728:
|
||||
/* 800A7728 000A4668 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 800A772C 000A466C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 800A7730 000A4670 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 800A7734 000A4674 7C 08 03 A6 */ mtlr r0
|
||||
/* 800A7738 000A4678 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 800A773C 000A467C 4E 80 00 20 */ blr
|
||||
.endfn loadResourceCallback__15JASResArcLoaderFPv
|
||||
|
||||
.fn loadResource__15JASResArcLoaderFP10JKRArchiveUsPUcUl, global
|
||||
/* 800A7740 000A4680 94 21 FF A0 */ stwu r1, -0x60(r1)
|
||||
/* 800A7744 000A4684 7C 08 02 A6 */ mflr r0
|
||||
/* 800A7748 000A4688 90 01 00 64 */ stw r0, 0x64(r1)
|
||||
/* 800A774C 000A468C 93 E1 00 5C */ stw r31, 0x5c(r1)
|
||||
/* 800A7750 000A4690 7C DF 33 78 */ mr r31, r6
|
||||
/* 800A7754 000A4694 93 C1 00 58 */ stw r30, 0x58(r1)
|
||||
/* 800A7758 000A4698 7C BE 2B 78 */ mr r30, r5
|
||||
/* 800A775C 000A469C 38 A0 00 01 */ li r5, 1
|
||||
/* 800A7760 000A46A0 93 A1 00 54 */ stw r29, 0x54(r1)
|
||||
/* 800A7764 000A46A4 7C 9D 23 78 */ mr r29, r4
|
||||
/* 800A7768 000A46A8 38 81 00 0C */ addi r4, r1, 0xc
|
||||
/* 800A776C 000A46AC 93 81 00 50 */ stw r28, 0x50(r1)
|
||||
/* 800A7770 000A46B0 7C 7C 1B 78 */ mr r28, r3
|
||||
/* 800A7774 000A46B4 38 61 00 2C */ addi r3, r1, 0x2c
|
||||
/* 800A7778 000A46B8 48 04 7D 45 */ bl OSInitMessageQueue
|
||||
/* 800A777C 000A46BC 38 60 00 00 */ li r3, 0
|
||||
/* 800A7780 000A46C0 38 01 00 2C */ addi r0, r1, 0x2c
|
||||
/* 800A7784 000A46C4 90 61 00 28 */ stw r3, 0x28(r1)
|
||||
/* 800A7788 000A46C8 93 81 00 10 */ stw r28, 0x10(r1)
|
||||
/* 800A778C 000A46CC B3 A1 00 14 */ sth r29, 0x14(r1)
|
||||
/* 800A7790 000A46D0 93 C1 00 18 */ stw r30, 0x18(r1)
|
||||
/* 800A7794 000A46D4 93 E1 00 1C */ stw r31, 0x1c(r1)
|
||||
/* 800A7798 000A46D8 90 61 00 20 */ stw r3, 0x20(r1)
|
||||
/* 800A779C 000A46DC 90 61 00 24 */ stw r3, 0x24(r1)
|
||||
/* 800A77A0 000A46E0 90 01 00 28 */ stw r0, 0x28(r1)
|
||||
/* 800A77A4 000A46E4 4B FF F1 E9 */ bl getThreadPointer__6JASDvdFv
|
||||
/* 800A77A8 000A46E8 3C 80 80 0A */ lis r4, loadResourceCallback__15JASResArcLoaderFPv@ha
|
||||
/* 800A77AC 000A46EC 38 A1 00 10 */ addi r5, r1, 0x10
|
||||
/* 800A77B0 000A46F0 38 84 76 A4 */ addi r4, r4, loadResourceCallback__15JASResArcLoaderFPv@l
|
||||
/* 800A77B4 000A46F4 38 C0 00 1C */ li r6, 0x1c
|
||||
/* 800A77B8 000A46F8 48 00 12 11 */ bl sendCmdMsg__13JASTaskThreadFPFPv_vPCvUl
|
||||
/* 800A77BC 000A46FC 2C 03 00 00 */ cmpwi r3, 0
|
||||
/* 800A77C0 000A4700 40 82 00 0C */ bne .L_800A77CC
|
||||
/* 800A77C4 000A4704 38 60 00 00 */ li r3, 0
|
||||
/* 800A77C8 000A4708 48 00 00 28 */ b .L_800A77F0
|
||||
.L_800A77CC:
|
||||
/* 800A77CC 000A470C 38 61 00 2C */ addi r3, r1, 0x2c
|
||||
/* 800A77D0 000A4710 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 800A77D4 000A4714 38 A0 00 01 */ li r5, 1
|
||||
/* 800A77D8 000A4718 48 04 7E 0D */ bl OSReceiveMessage
|
||||
/* 800A77DC 000A471C 80 61 00 08 */ lwz r3, 8(r1)
|
||||
/* 800A77E0 000A4720 7C 03 00 D0 */ neg r0, r3
|
||||
/* 800A77E4 000A4724 7C 00 1B 78 */ or r0, r0, r3
|
||||
/* 800A77E8 000A4728 7C 00 FE 70 */ srawi r0, r0, 0x1f
|
||||
/* 800A77EC 000A472C 7F E3 00 78 */ andc r3, r31, r0
|
||||
.L_800A77F0:
|
||||
/* 800A77F0 000A4730 80 01 00 64 */ lwz r0, 0x64(r1)
|
||||
/* 800A77F4 000A4734 83 E1 00 5C */ lwz r31, 0x5c(r1)
|
||||
/* 800A77F8 000A4738 83 C1 00 58 */ lwz r30, 0x58(r1)
|
||||
/* 800A77FC 000A473C 83 A1 00 54 */ lwz r29, 0x54(r1)
|
||||
/* 800A7800 000A4740 83 81 00 50 */ lwz r28, 0x50(r1)
|
||||
/* 800A7804 000A4744 7C 08 03 A6 */ mtlr r0
|
||||
/* 800A7808 000A4748 38 21 00 60 */ addi r1, r1, 0x60
|
||||
/* 800A780C 000A474C 4E 80 00 20 */ blr
|
||||
.endfn loadResource__15JASResArcLoaderFP10JKRArchiveUsPUcUl
|
||||
|
||||
.fn loadResourceAsync__15JASResArcLoaderFP10JKRArchiveUsPUcUlPFUlUl_vUl, global
|
||||
/* 800A7810 000A4750 94 21 FF D0 */ stwu r1, -0x30(r1)
|
||||
/* 800A7814 000A4754 7C 08 02 A6 */ mflr r0
|
||||
/* 800A7818 000A4758 90 01 00 34 */ stw r0, 0x34(r1)
|
||||
/* 800A781C 000A475C 38 00 00 00 */ li r0, 0
|
||||
/* 800A7820 000A4760 90 01 00 18 */ stw r0, 0x18(r1)
|
||||
/* 800A7824 000A4764 90 01 00 1C */ stw r0, 0x1c(r1)
|
||||
/* 800A7828 000A4768 90 61 00 08 */ stw r3, 8(r1)
|
||||
/* 800A782C 000A476C B0 81 00 0C */ sth r4, 0xc(r1)
|
||||
/* 800A7830 000A4770 90 A1 00 10 */ stw r5, 0x10(r1)
|
||||
/* 800A7834 000A4774 90 C1 00 14 */ stw r6, 0x14(r1)
|
||||
/* 800A7838 000A4778 90 01 00 20 */ stw r0, 0x20(r1)
|
||||
/* 800A783C 000A477C 90 E1 00 18 */ stw r7, 0x18(r1)
|
||||
/* 800A7840 000A4780 91 01 00 1C */ stw r8, 0x1c(r1)
|
||||
/* 800A7844 000A4784 4B FF F1 49 */ bl getThreadPointer__6JASDvdFv
|
||||
/* 800A7848 000A4788 3C 80 80 0A */ lis r4, loadResourceCallback__15JASResArcLoaderFPv@ha
|
||||
/* 800A784C 000A478C 38 A1 00 08 */ addi r5, r1, 8
|
||||
/* 800A7850 000A4790 38 84 76 A4 */ addi r4, r4, loadResourceCallback__15JASResArcLoaderFPv@l
|
||||
/* 800A7854 000A4794 38 C0 00 1C */ li r6, 0x1c
|
||||
/* 800A7858 000A4798 48 00 11 71 */ bl sendCmdMsg__13JASTaskThreadFPFPv_vPCvUl
|
||||
/* 800A785C 000A479C 80 01 00 34 */ lwz r0, 0x34(r1)
|
||||
/* 800A7860 000A47A0 7C 08 03 A6 */ mtlr r0
|
||||
/* 800A7864 000A47A4 38 21 00 30 */ addi r1, r1, 0x30
|
||||
/* 800A7868 000A47A8 4E 80 00 20 */ blr
|
||||
.endfn loadResourceAsync__15JASResArcLoaderFP10JKRArchiveUsPUcUlPFUlUl_vUl
|
@ -340,7 +340,7 @@ LIBS = [
|
||||
["JSystem/JAudio/JAS/JASDvdThread", True],
|
||||
"JSystem/JAudio/JAS/JASHeapCtrl",
|
||||
["JSystem/JAudio/JAS/JASProbe", True],
|
||||
"JSystem/JAudio/JAS/JASResArcLoader",
|
||||
["JSystem/JAudio/JAS/JASResArcLoader", True],
|
||||
["JSystem/JAudio/JAS/JASReport", True],
|
||||
"JSystem/JAudio/JAS/JASAiCtrl",
|
||||
["JSystem/JAudio/JAS/JASChannelUpdater", True],
|
||||
|
@ -43,36 +43,36 @@
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/binary.cpp">JGadget/binary.cpp</a> | 3595 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASInstSense.cpp">JAudio/JAS/JASInstSense.cpp</a> | 3632 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JAudio/control.cpp">JStudio_JAudio/control.cpp</a> | 3648 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASCmdStack.cpp">JAudio/JAS/JASCmdStack.cpp</a> | 3709 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/dsp/dspproc.c">JAudio/dsp/dspproc.c</a> | 3983 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JParticle/control.cpp">JStudio_JParticle/control.cpp</a> | 4098 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3DU/J3DUMtxCache.cpp">J3DU/J3DUMtxCache.cpp</a> | 4160 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASResArcLoader.cpp">JAudio/JAS/JASResArcLoader.cpp</a> | 4210 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JStage/object.cpp">JStudio_JStage/object.cpp</a> | 4322 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASSeqCtrl.cpp">JAudio/JAS/JASSeqCtrl.cpp</a> | 4524 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAResourceManager.cpp">JParticle/JPAResourceManager.cpp</a> | 4857 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/linklist.cpp">JGadget/linklist.cpp</a> | 5250 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISoundTable.cpp">JAudio/JAI/JAISoundTable.cpp</a> | 5690 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/dsp/dsptask.c">JAudio/dsp/dsptask.c</a> | 5819 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMath/JMath.cpp">JMath/JMath.cpp</a> | 5890 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/std-list.cpp">JGadget/std-list.cpp</a> | 5990 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIFx.cpp">JAudio/JAI/JAIFx.cpp</a> | 6646 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/dsp/osdsp_task.c">JAudio/dsp/osdsp_task.c</a> | 6692 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J2D/J2DBloSaver.cpp">J2D/J2DBloSaver.cpp</a> | 7230 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIDummyObject.cpp">JAudio/JAI/JAIDummyObject.cpp</a> | 7337 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DModelData.cpp">J3D/J3DModelData.cpp</a> | 7479 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASAudioThread.cpp">JAudio/JAS/JASAudioThread.cpp</a> | 7524 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRSolidHeap.cpp">JKernel/JKRSolidHeap.cpp</a> | 7690 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio/jstudio-math.cpp">JStudio/jstudio-math.cpp</a> | 8174 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMessage/control.cpp">JMessage/control.cpp</a> | 8567 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAU/JAUData.cpp">JAudio/JAU/JAUData.cpp</a> | 9034 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRThread.cpp">JKernel/JKRThread.cpp</a> | 9057 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAL/JALCalc.cpp">JAudio/JAL/JALCalc.cpp</a> | 9063 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DMaterialAnm.cpp">J3D/J3DMaterialAnm.cpp</a> | 9184 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASDriverIF.cpp">JAudio/JAS/JASDriverIF.cpp</a> | 9496 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASBasicWaveBank.cpp">JAudio/JAS/JASBasicWaveBank.cpp</a> | 9651 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAExtraShape.cpp">JParticle/JPAExtraShape.cpp</a> | 9736 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DJointTree.cpp">J3D/J3DJointTree.cpp</a> | 9807 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAResourceLoader.cpp">JParticle/JPAResourceLoader.cpp</a> | 9814 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAMath.cpp">JParticle/JPAMath.cpp</a> | 10028 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JUtility/JUTTexture.cpp">JUtility/JUTTexture.cpp</a> | 10070 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J2D/J2DTevs.cpp">J2D/J2DTevs.cpp</a> | 10255 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio/jstudio-control.cpp">JStudio/jstudio-control.cpp</a> | 10278 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIBankWave.cpp">JAudio/JAI/JAIBankWave.cpp</a> | 10594 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JStage/control.cpp">JStudio_JStage/control.cpp</a> | 11936 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASCalc.cpp">JAudio/JAS/JASCalc.cpp</a> | 11963 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIInitData.cpp">JAudio/JAI/JAIInitData.cpp</a> | 12781 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASDSPChannel.cpp">JAudio/JAS/JASDSPChannel.cpp</a> | 13029 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASOscillator.cpp">JAudio/JAS/JASOscillator.cpp</a> | 13039 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASTaskThread.cpp">JAudio/JAS/JASTaskThread.cpp</a> | 13151 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMath/JMATrigonometric.cpp">JMath/JMATrigonometric.cpp</a> | 13423 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASWSParser.cpp">JAudio/JAS/JASWSParser.cpp</a> | 13469 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASPlayer_impl.cpp">JAudio/JAS/JASPlayer_impl.cpp</a> | 14292 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISequenceHeap.cpp">JAudio/JAI/JAISequenceHeap.cpp</a> | 14788 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAEmitter.cpp">JParticle/JPAEmitter.cpp</a> | 15245 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DShapeFactory.cpp">J3D/J3DShapeFactory.cpp</a> | 16154 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/std-vector.cpp">JGadget/std-vector.cpp</a> | 16407 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASBankMgr.cpp">JAudio/JAS/JASBankMgr.cpp</a> | 16414 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRMemArchive.cpp">JKernel/JKRMemArchive.cpp</a> | 17053 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DDrawBuffer.cpp">J3D/J3DDrawBuffer.cpp</a> | 18255 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DTransform.cpp">J3D/J3DTransform.cpp</a> | 19101 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIObject.cpp">JAudio/JAI/JAIObject.cpp</a> | 19418 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAEmitterManager.cpp">JParticle/JPAEmitterManager.cpp</a> | 19473 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISystemInterface.cpp">JAudio/JAI/JAISystemInterface.cpp</a> | 19726 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMessage/resource.cpp">JMessage/resource.cpp</a> | 20389 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DModelLoaderCalcSize.cpp">J3D/J3DModelLoaderCalcSize.cpp</a> | 21399 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DPacket.cpp">J3D/J3DPacket.cpp</a> | 21546 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JParticle/object-particle.cpp">JStudio_JParticle/object-particle.cpp</a> | 21745 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JUtility/JUTDirectPrint.cpp">JUtility/JUTDirectPrint.cpp</a> | 22588 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASHeapCtrl.cpp">JAudio/JAS/JASHeapCtrl.cpp</a> | 22633 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3DU/J3DUMtxCache.cpp">J3DU/J3DUMtxCache.cpp</a> | 4160 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JStage/object.cpp">JStudio_JStage/object.cpp</a> | 4322 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASSeqCtrl.cpp">JAudio/JAS/JASSeqCtrl.cpp</a> | 4524 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAResourceManager.cpp">JParticle/JPAResourceManager.cpp</a> | 4857 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/linklist.cpp">JGadget/linklist.cpp</a> | 5250 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISoundTable.cpp">JAudio/JAI/JAISoundTable.cpp</a> | 5690 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/dsp/dsptask.c">JAudio/dsp/dsptask.c</a> | 5819 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMath/JMath.cpp">JMath/JMath.cpp</a> | 5890 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/std-list.cpp">JGadget/std-list.cpp</a> | 5990 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIFx.cpp">JAudio/JAI/JAIFx.cpp</a> | 6646 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/dsp/osdsp_task.c">JAudio/dsp/osdsp_task.c</a> | 6692 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J2D/J2DBloSaver.cpp">J2D/J2DBloSaver.cpp</a> | 7230 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIDummyObject.cpp">JAudio/JAI/JAIDummyObject.cpp</a> | 7337 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DModelData.cpp">J3D/J3DModelData.cpp</a> | 7479 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASAudioThread.cpp">JAudio/JAS/JASAudioThread.cpp</a> | 7524 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRSolidHeap.cpp">JKernel/JKRSolidHeap.cpp</a> | 7690 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio/jstudio-math.cpp">JStudio/jstudio-math.cpp</a> | 8174 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMessage/control.cpp">JMessage/control.cpp</a> | 8567 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAU/JAUData.cpp">JAudio/JAU/JAUData.cpp</a> | 9034 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRThread.cpp">JKernel/JKRThread.cpp</a> | 9057 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAL/JALCalc.cpp">JAudio/JAL/JALCalc.cpp</a> | 9063 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DMaterialAnm.cpp">J3D/J3DMaterialAnm.cpp</a> | 9184 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASDriverIF.cpp">JAudio/JAS/JASDriverIF.cpp</a> | 9496 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASBasicWaveBank.cpp">JAudio/JAS/JASBasicWaveBank.cpp</a> | 9651 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAExtraShape.cpp">JParticle/JPAExtraShape.cpp</a> | 9736 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DJointTree.cpp">J3D/J3DJointTree.cpp</a> | 9807 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAResourceLoader.cpp">JParticle/JPAResourceLoader.cpp</a> | 9814 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAMath.cpp">JParticle/JPAMath.cpp</a> | 10028 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JUtility/JUTTexture.cpp">JUtility/JUTTexture.cpp</a> | 10070 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J2D/J2DTevs.cpp">J2D/J2DTevs.cpp</a> | 10255 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio/jstudio-control.cpp">JStudio/jstudio-control.cpp</a> | 10278 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIBankWave.cpp">JAudio/JAI/JAIBankWave.cpp</a> | 10594 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JStage/control.cpp">JStudio_JStage/control.cpp</a> | 11936 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASCalc.cpp">JAudio/JAS/JASCalc.cpp</a> | 11963 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIInitData.cpp">JAudio/JAI/JAIInitData.cpp</a> | 12781 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASDSPChannel.cpp">JAudio/JAS/JASDSPChannel.cpp</a> | 13029 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASOscillator.cpp">JAudio/JAS/JASOscillator.cpp</a> | 13039 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASTaskThread.cpp">JAudio/JAS/JASTaskThread.cpp</a> | 13151 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMath/JMATrigonometric.cpp">JMath/JMATrigonometric.cpp</a> | 13423 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASWSParser.cpp">JAudio/JAS/JASWSParser.cpp</a> | 13469 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASPlayer_impl.cpp">JAudio/JAS/JASPlayer_impl.cpp</a> | 14292 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISequenceHeap.cpp">JAudio/JAI/JAISequenceHeap.cpp</a> | 14788 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAEmitter.cpp">JParticle/JPAEmitter.cpp</a> | 15245 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DShapeFactory.cpp">J3D/J3DShapeFactory.cpp</a> | 16154 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JGadget/std-vector.cpp">JGadget/std-vector.cpp</a> | 16407 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASBankMgr.cpp">JAudio/JAS/JASBankMgr.cpp</a> | 16414 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JKernel/JKRMemArchive.cpp">JKernel/JKRMemArchive.cpp</a> | 17053 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DDrawBuffer.cpp">J3D/J3DDrawBuffer.cpp</a> | 18255 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DTransform.cpp">J3D/J3DTransform.cpp</a> | 19101 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAIObject.cpp">JAudio/JAI/JAIObject.cpp</a> | 19418 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JParticle/JPAEmitterManager.cpp">JParticle/JPAEmitterManager.cpp</a> | 19473 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAI/JAISystemInterface.cpp">JAudio/JAI/JAISystemInterface.cpp</a> | 19726 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JMessage/resource.cpp">JMessage/resource.cpp</a> | 20389 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DModelLoaderCalcSize.cpp">J3D/J3DModelLoaderCalcSize.cpp</a> | 21399 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DPacket.cpp">J3D/J3DPacket.cpp</a> | 21546 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JStudio_JParticle/object-particle.cpp">JStudio_JParticle/object-particle.cpp</a> | 21745 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JUtility/JUTDirectPrint.cpp">JUtility/JUTDirectPrint.cpp</a> | 22588 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/JAudio/JAS/JASHeapCtrl.cpp">JAudio/JAS/JASHeapCtrl.cpp</a> | 22633 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/JSystem/J3D/J3DCluster.cpp">J3D/J3DCluster.cpp</a> | 22642 |
|
||||
|
||||
### <section id="plugProjectEbisawaU">plugProjectEbisawaU</section>
|
||||
| File | Size (bytes) | File | Size (bytes) |
|
||||
|
@ -10,6 +10,17 @@ typedef void (*LoadCallback)(u32, u32);
|
||||
|
||||
/** @fabricated */
|
||||
struct CallbackArgs {
|
||||
inline CallbackArgs(u16 arg4, u8* arg8, u32 argC, JKRArchive* archive)
|
||||
: mArchive(archive)
|
||||
, _04(arg4)
|
||||
, _08(arg8)
|
||||
, _0C(argC)
|
||||
, mCallback(nullptr)
|
||||
, _14(0)
|
||||
, mQueue(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
JKRArchive* mArchive; // _00
|
||||
u16 _04; // _04
|
||||
u8* _08; // _08
|
||||
@ -20,9 +31,9 @@ struct CallbackArgs {
|
||||
};
|
||||
|
||||
size_t getResSize(JKRArchive*, u16);
|
||||
void loadResourceCallback(void*);
|
||||
static void loadResourceCallback(void*);
|
||||
int loadResource(JKRArchive*, u16, u8*, u32);
|
||||
bool loadResourceAsync(JKRArchive*, u16, u8*, u32, LoadCallback, u32);
|
||||
int loadResourceAsync(JKRArchive*, u16, u8*, u32, LoadCallback, u32);
|
||||
} // namespace JASResArcLoader
|
||||
|
||||
#endif
|
||||
|
@ -5,44 +5,6 @@
|
||||
#include "JSystem/JAudio/JAS/JASOscillator.h"
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.global __vt__10JASDrumSet
|
||||
__vt__10JASDrumSet:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte __dt__10JASDrumSetFv
|
||||
.4byte getParam__10JASDrumSetCFiiP12JASInstParam
|
||||
.4byte getType__10JASDrumSetCFv
|
||||
.4byte 0
|
||||
|
||||
.section .sbss # 0x80514D80 - 0x80516360
|
||||
.global oscp$640
|
||||
oscp$640:
|
||||
.skip 0x4
|
||||
.global init$641
|
||||
init$641:
|
||||
.skip 0x4
|
||||
|
||||
.section .sdata2, "a" # 0x80516360 - 0x80520E40
|
||||
.global lbl_80516CD8
|
||||
lbl_80516CD8:
|
||||
.float 1.0
|
||||
.global lbl_80516CDC
|
||||
lbl_80516CDC:
|
||||
.4byte 0x00000000
|
||||
.global lbl_80516CE0
|
||||
lbl_80516CE0:
|
||||
.4byte 0x3FE00000
|
||||
.4byte 0x00000000
|
||||
.global lbl_80516CE8
|
||||
lbl_80516CE8:
|
||||
.float 0.5
|
||||
.4byte 0x00000000
|
||||
*/
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B0B8
|
||||
@ -60,9 +22,8 @@ bool JASDrumSet::getParam(int percIndex, int p2, JASInstParam* instParam) const
|
||||
instParam->_14 = perc->_04;
|
||||
instParam->_18 = perc->_08;
|
||||
instParam->_26 = perc->mRelease;
|
||||
// static const float osc[6] = { 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f };
|
||||
|
||||
static JASOscillator::Data osc;
|
||||
// osc = { 0, 1.0f, nullptr, nullptr, 1.0f, 0.0f };
|
||||
osc._00 = 0;
|
||||
osc._04 = 1.0f;
|
||||
osc._08 = nullptr;
|
||||
@ -115,18 +76,6 @@ bool JASDrumSet::getParam(int percIndex, int p2, JASInstParam* instParam) const
|
||||
*/
|
||||
JASDrumSet::TPerc* JASDrumSet::getPerc(int index) { return mPercs + index; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: ........
|
||||
* Size: 000014
|
||||
* getPerc__10JASDrumSetCFi
|
||||
*/
|
||||
// const JASDrumSet::TPerc* JASDrumSet::getPerc(int index) const
|
||||
// {
|
||||
// // UNUSED FUNCTION
|
||||
// return mPercs + index;
|
||||
// }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B2C8
|
||||
@ -194,18 +143,6 @@ void JASDrumSet::TPerc::setVeloRegionCount(u32 count)
|
||||
*/
|
||||
JASInst::TVeloRegion* JASDrumSet::TPerc::getVeloRegion(int index) { return mVeloRegions + index; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: ........
|
||||
* Size: 000010
|
||||
* getVeloRegion__Q210JASDrumSet5TPercCFi
|
||||
*/
|
||||
// const JASInst::TVeloRegion* JASDrumSet::TPerc::getVeloRegion(int index) const
|
||||
// {
|
||||
// // UNUSED FUNCTION
|
||||
// return mVeloRegions + index;
|
||||
// }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B438
|
||||
@ -214,40 +151,9 @@ JASInst::TVeloRegion* JASDrumSet::TPerc::getVeloRegion(int index) { return mVelo
|
||||
*/
|
||||
void JASDrumSet::TPerc::setEffect(int index, JASInstEffect* effect) { mEffects[index] = effect; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: ........
|
||||
* Size: 000024
|
||||
* getEffect__Q210JASDrumSet5TPercFi
|
||||
*/
|
||||
// JASInstEffect* JASDrumSet::TPerc::getEffect(int index)
|
||||
// {
|
||||
// // UNUSED FUNCTION
|
||||
// return mEffects[index];
|
||||
// }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B448
|
||||
* Size: 000008
|
||||
*/
|
||||
void JASDrumSet::TPerc::setRelease(u32 release)
|
||||
{
|
||||
// Generated from sth r4, 0xC(r3)
|
||||
mRelease = release;
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B450
|
||||
* Size: 000084
|
||||
* __dt__10JASDrumSetFv
|
||||
*/
|
||||
// JASDrumSet::~JASDrumSet() { }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8009B4D4
|
||||
* Size: 00000C
|
||||
*/
|
||||
// u32 JASDrumSet::getType() const { }
|
||||
void JASDrumSet::TPerc::setRelease(u32 release) { mRelease = release; }
|
||||
|
@ -5,16 +5,12 @@
|
||||
#include "JSystem/JKernel/JKRArchive.h"
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
*/
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 800A7670
|
||||
* Size: 000034
|
||||
*/
|
||||
size_t JASResArcLoader::getResSize(JKRArchive* archive, unsigned short resourceID)
|
||||
size_t JASResArcLoader::getResSize(JKRArchive* archive, u16 resourceID)
|
||||
{
|
||||
JKRArchive::SDIFileEntry* file = archive->findIdResource(resourceID);
|
||||
if (file == nullptr) {
|
||||
@ -28,20 +24,20 @@ size_t JASResArcLoader::getResSize(JKRArchive* archive, unsigned short resourceI
|
||||
* Address: 800A76A4
|
||||
* Size: 00009C
|
||||
*/
|
||||
void JASResArcLoader::loadResourceCallback(void* args)
|
||||
static void JASResArcLoader::loadResourceCallback(void* args)
|
||||
{
|
||||
CallbackArgs* castedArgs = static_cast<CallbackArgs*>(args);
|
||||
u32 readResult = castedArgs->mArchive->readResource(castedArgs->_08, castedArgs->_0C, castedArgs->_04);
|
||||
if (castedArgs->mCallback != nullptr) {
|
||||
if (castedArgs->mCallback) {
|
||||
castedArgs->mCallback(readResult, castedArgs->_14);
|
||||
}
|
||||
if (readResult == 0) {
|
||||
if (castedArgs->mQueue != nullptr) {
|
||||
OSSendMessage(castedArgs->mQueue, (void*)-1, OS_MESSAGE_BLOCKING);
|
||||
if (castedArgs->mQueue) {
|
||||
OSSendMessage(castedArgs->mQueue, (void*)-1, OS_MESSAGE_BLOCK);
|
||||
}
|
||||
} else {
|
||||
if (castedArgs->mQueue != nullptr) {
|
||||
OSSendMessage(castedArgs->mQueue, (void*)0, OS_MESSAGE_BLOCKING);
|
||||
if (castedArgs->mQueue) {
|
||||
OSSendMessage(castedArgs->mQueue, (void*)0, OS_MESSAGE_BLOCK);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -52,88 +48,21 @@ void JASResArcLoader::loadResourceCallback(void* args)
|
||||
* Size: 0000D0
|
||||
* loadResource__15JASResArcLoaderFP10JKRArchiveUsPUcUl
|
||||
*/
|
||||
int JASResArcLoader::loadResource(JKRArchive* archive, unsigned short p2, unsigned char* p3, unsigned long p4)
|
||||
int JASResArcLoader::loadResource(JKRArchive* archive, u16 p2, u8* p3, u32 p4)
|
||||
{
|
||||
OSMessageQueue queue;
|
||||
void* queueBuffer[1];
|
||||
void* receiveBuffer[1];
|
||||
OSInitMessageQueue(&queue, queueBuffer, OS_MESSAGE_BLOCKING);
|
||||
CallbackArgs args;
|
||||
OSMessage queueBuffer;
|
||||
OSMessage receiveBuffer;
|
||||
OSInitMessageQueue(&queue, &queueBuffer, OS_MESSAGE_BLOCK);
|
||||
CallbackArgs args(p2, p3, p4, archive);
|
||||
args.mQueue = &queue;
|
||||
|
||||
// TODO: Next line smells like inlining of some sort.
|
||||
args.mQueue = nullptr;
|
||||
|
||||
args.mArchive = archive;
|
||||
args._04 = p2;
|
||||
args._08 = p3;
|
||||
args._0C = p4;
|
||||
args.mCallback = nullptr;
|
||||
args._14 = 0;
|
||||
args.mQueue = &queue;
|
||||
if (JASDvd::getThreadPointer()->sendCmdMsg(loadResourceCallback, &args, sizeof(CallbackArgs)) == false) {
|
||||
return 0;
|
||||
}
|
||||
OSReceiveMessage(&queue, receiveBuffer, OS_MESSAGE_BLOCKING);
|
||||
return p4 & ~(((u32)*receiveBuffer) != 0);
|
||||
/*
|
||||
.loc_0x0:
|
||||
stwu r1, -0x60(r1)
|
||||
mflr r0
|
||||
stw r0, 0x64(r1)
|
||||
stw r31, 0x5C(r1)
|
||||
mr r31, r6
|
||||
stw r30, 0x58(r1)
|
||||
mr r30, r5
|
||||
li r5, 0x1
|
||||
stw r29, 0x54(r1)
|
||||
mr r29, r4
|
||||
addi r4, r1, 0xC
|
||||
stw r28, 0x50(r1)
|
||||
mr r28, r3
|
||||
addi r3, r1, 0x2C
|
||||
bl 0x47D44
|
||||
li r3, 0
|
||||
addi r0, r1, 0x2C
|
||||
stw r3, 0x28(r1)
|
||||
stw r28, 0x10(r1)
|
||||
sth r29, 0x14(r1)
|
||||
stw r30, 0x18(r1)
|
||||
stw r31, 0x1C(r1)
|
||||
stw r3, 0x20(r1)
|
||||
stw r3, 0x24(r1)
|
||||
stw r0, 0x28(r1)
|
||||
bl -0xE18
|
||||
lis r4, 0x800A
|
||||
addi r5, r1, 0x10
|
||||
addi r4, r4, 0x76A4
|
||||
li r6, 0x1C
|
||||
bl 0x1210
|
||||
cmpwi r3, 0
|
||||
bne- .loc_0x8C
|
||||
li r3, 0
|
||||
b .loc_0xB0
|
||||
|
||||
.loc_0x8C:
|
||||
addi r3, r1, 0x2C
|
||||
addi r4, r1, 0x8
|
||||
li r5, 0x1
|
||||
bl 0x47E0C
|
||||
lwz r3, 0x8(r1)
|
||||
neg r0, r3
|
||||
or r0, r0, r3
|
||||
srawi r0, r0, 0x1F
|
||||
andc r3, r31, r0
|
||||
|
||||
.loc_0xB0:
|
||||
lwz r0, 0x64(r1)
|
||||
lwz r31, 0x5C(r1)
|
||||
lwz r30, 0x58(r1)
|
||||
lwz r29, 0x54(r1)
|
||||
lwz r28, 0x50(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x60
|
||||
blr
|
||||
*/
|
||||
OSReceiveMessage(&queue, &receiveBuffer, OS_MESSAGE_BLOCK);
|
||||
return (receiveBuffer) ? 0 : p4;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -141,21 +70,10 @@ int JASResArcLoader::loadResource(JKRArchive* archive, unsigned short p2, unsign
|
||||
* Address: 800A7810
|
||||
* Size: 00005C
|
||||
*/
|
||||
bool JASResArcLoader::loadResourceAsync(JKRArchive* archive, unsigned short p2, unsigned char* p3, unsigned long p4,
|
||||
void (*callback)(unsigned long, unsigned long), unsigned long p6)
|
||||
int JASResArcLoader::loadResourceAsync(JKRArchive* archive, u16 p2, u8* p3, u32 p4, void (*callback)(u32, u32), u32 p6)
|
||||
{
|
||||
CallbackArgs args;
|
||||
|
||||
// TODO: Next two lines smells like inlining of some sort. Inlined ctor? Non-async version is different, though...
|
||||
args.mCallback = nullptr;
|
||||
args._14 = p6;
|
||||
|
||||
args.mArchive = archive;
|
||||
args._04 = p2;
|
||||
args._08 = p3;
|
||||
args._0C = p4;
|
||||
args.mQueue = nullptr;
|
||||
CallbackArgs args(p2, p3, p4, archive);
|
||||
args.mCallback = callback;
|
||||
args._14 = p6;
|
||||
JASDvd::getThreadPointer()->sendCmdMsg(&loadResourceCallback, &args, sizeof(CallbackArgs));
|
||||
return JASDvd::getThreadPointer()->sendCmdMsg(&loadResourceCallback, &args, sizeof(CallbackArgs));
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ JAUDIO2_JAS_FILES:=\
|
||||
$(BUILD_DIR)/src/JSystem/JAudio/JAS/JASDvdThread.o\
|
||||
$(BUILD_DIR)/asm/JSystem/JAudio/JAS/JASHeapCtrl.o\
|
||||
$(BUILD_DIR)/src/JSystem/JAudio/JAS/JASProbe.o\
|
||||
$(BUILD_DIR)/asm/JSystem/JAudio/JAS/JASResArcLoader.o\
|
||||
$(BUILD_DIR)/src/JSystem/JAudio/JAS/JASResArcLoader.o\
|
||||
$(BUILD_DIR)/src/JSystem/JAudio/JAS/JASReport.o\
|
||||
$(BUILD_DIR)/asm/JSystem/JAudio/JAS/JASAiCtrl.o\
|
||||
$(BUILD_DIR)/src/JSystem/JAudio/JAS/JASChannelUpdater.o\
|
||||
|
@ -485,3 +485,5 @@ You have 2345 out of 10000 Pokos and 68 out of 201 treasures.",2023-03-05 21:19:
|
||||
You have 2348 out of 10000 Pokos and 68 out of 201 treasures.",2023-03-05 21:30:24.274157
|
||||
2350,1093448,0.23503122721582545,68,243653,0.34179834356447863,"
|
||||
You have 2350 out of 10000 Pokos and 68 out of 201 treasures.",2023-03-08 17:26:25.457903
|
||||
2351,1093956,0.235140419297594,68,243653,0.34179834356447863,"
|
||||
You have 2351 out of 10000 Pokos and 68 out of 201 treasures.",2023-03-08 18:10:48.393833
|
||||
|
|
Loading…
Reference in New Issue
Block a user