Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting: RFL #58

Open
ghost opened this issue Jul 24, 2021 · 3 comments
Open

Splitting: RFL #58

ghost opened this issue Jul 24, 2021 · 3 comments
Labels
p-low splitting PRs that split assembly

Comments

@ghost
Copy link

ghost commented Jul 24, 2021

The RFL (presumably "Revolution Face Library") implements Mii functionality.
Miis are playable characters in MKW.

Let's lift the RFL ASM out of binary blobs into inline-ASM C files to prepare decompilation.

@ghost ghost added p-low decomp PRs that add decompiled code labels Jul 24, 2021
@ghost ghost added splitting PRs that split assembly and removed decomp PRs that add decompiled code labels Jul 24, 2021
@ghost ghost changed the title Inline ASM: RFL Splitting: RFL Jul 24, 2021
@ghost
Copy link
Author

ghost commented Jul 24, 2021

@riidefi You mentioned you have some symbols for RFL. Would you mind attaching them?

@riidefi
Copy link
Owner

riidefi commented Jul 24, 2021

Working on getting a comprehensive list right now.

@riidefi
Copy link
Owner

riidefi commented Jul 24, 2021

Progress so far (about 50%). A bit difficult to match against a different version, but possible:

Source Text Begin Text End
RFL_System 800BBB80 800BC6F0
RFL_NANDLoader 800BC6F0 800BD790
RFL_NANDAccess 800BD790 800C05B0
RFL_Model 800C05B0 800C2550
RFL_MakeTex 800C2550 800C4E00
RFL_Icon 800C4E00 800C53A0
Symbol Addr
RFLGetWorkSize 800BBB80
RFLInitResAsync 800BBBA0
RFLInitRes 800BBF10
RFLExit 800BBFB0
bootloadDB2Res_ 800BC140
RFLAvailable 800BC370
RFLiAlloc 800BC390
RFLiAlloc32 800BC3B0
RFLiFree 800BC3D0
RFLiGetDBManager 800BC3E0
RFLiGetHDBManager 800BC400
RFLiGetLoader 800BC420
RFLiGetWorking 800BC440
RFLiSetWorking 800BC460
RFLiGetManager 800BC470
RFLGetAsyncStatus 800BC480
RFLGetLastReason 800BC510
RFLWaitAsync 800BC540
RFLiGetAccInfo 800BC5E0
RFLiGetCtrlBufManager 800BC610
RFLiGetUseDeluxTex 800BC630
RFLiGetLastReason 800BC650
RFLiSetFileBroken 800BC670
RFLiNotFoundError 800BC6A0
RFLiNeedRepairError 800BC6C0
RFLGetArcFilePath 800BC6E0
RFLiInitLoader 800BC6F0
parseOnmemoryRes_ 800BC810
loadResRead2ndcallback_ 800BC990
errclosecallback_ 800BCAB0
loadResRead1stcallback_ 800BCAC0
loadResGetlengthcallback_ 800BCBB0
loadResOpencallback_ 800BCC50
RFLiLoadResourceHeaderAsync 800BCCC0
getNANDFile_ 800BCD60
RFLiGetTexSize 800BCEF0
RFLiLoadTexture 800BD060
RFLiGetShpTexSize 800BD190
RFLiLoadShpTexture 800BD300
RFLiGetShapeSize 800BD430
RFLiLoadShape 800BD5A0
RFLFreeCachedResource 800BD6D0
RFLIsResourceCached 800BD740
RFLiInitAccessInfo 800BD790
RFLiExitAccessInfo 800BD810
RFLiIsWorking 800BD860
RFLiStartWorking 800BD870
RFLiEndWorkingReason 800BD8C0
RFLiEndWorking 800BD940
alarmCallback_ 800BD9C0
opencallback_ 800BDA10
createcallback_ 800BDC90
close2opencallback_ 800BDEF0
RFLiOpenAsync 800BE150
readcallback_ 800BE4A0
readseekcallback_ 800BE6C0
RFLiReadAsync 800BE940
retryWrite_ 800BEAE0
writecallback_ 800BED40
retryWriteSeek_ 800BEFC0
writeseekcallback_ 800BF1E0
RFLiWriteAsync 800BF570
closecallback_ 800BF780
RFLiCloseAsync 800BF8E0
getlengthcallback_ 800BFA70
RFLiGetLengthAsync 800BFBC0
deletecallback_ 800BFD40
RFLiDeleteAsync 800BFEB0
createdircallback2_ 800C0060
createdircallback1_ 800C01D0
RFLiCreateSaveDirAsync 800C0420
RFLiGetExpressionNum 800C05B0
RFLInitCharModel 800C0690
RFLiInitCharModel 800C0700
RFLSetMtx 800C0A70
RFLSetExpression 800C0AC0
RFLGetFavoriteColor 800C0AD0
RFLiGetFacelineColor 800C0AF0
RFLLoadDrawSetting 800C0B20
RFLDrawOpa 800C0E10
RFLDrawXlu 800C0E20
RFLLoadVertexSetting 800C0E30
RFLLoadMaterialSetting 800C0ED0
RFLDrawOpaCore 800C0F90
RFLDrawXluCore 800C14A0
RFLiInitCharModelRes 800C1730
RFLiInitShapeRes 800C1E40
RFLiInitTexRes 800C2430
RFLiSetupCopyTex 800C2550
RFLiMakeTexture 800C2680
RFLiSetup2DCameraAndParam 800C3700
RFLiSetTev4Mouth 800C38E0
RFLiSetTev4Eye 800C3B30
RFLiSetFaceParts 800C3DE0
RFLiCapture 800C4300
RFLiDrawQuad 800C4B70
RFLiGetMaxMaskRsl 800C4D60
RFLiGetMaskBufSize 800C4DC0
RFLMakeIcon 800C4E00
RFLiMakeIcon 800C4E80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-low splitting PRs that split assembly
Projects
None yet
Development

No branches or pull requests

1 participant