Compare commits
1 Commits
cleanup/ti
...
agent/asm2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0bfe74e5a |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.38% | 87.96% | 62.33% | 92.07% |
|
||||
| 99.38% | 88.00% | 62.36% | 92.07% |
|
||||
|
||||
units 919/1027 complete, functions 12224/12563 matched.
|
||||
units 920/1027 complete, functions 12225/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -4685,42 +4685,42 @@ copyFrom__Q33ipl5scene22SDChannelSelectCommandFRCQ33ipl5scene22SDChannelSelectCo
|
||||
@20@__dt__Q33ipl5scene15SDChannelSelectFv = .text:0x813E2F24; // type:function size:0x8
|
||||
__ct__Q33ipl5scene12SDChannelObjFPQ23EGG4Heapii = .text:0x813E2F2C; // type:function size:0x130
|
||||
__dt__Q33ipl5scene12SDChannelObjFv = .text:0x813E305C; // type:function size:0xA8
|
||||
iplSDChannelObj_activateIfIdle = .text:0x813E3104; // type:function size:0x18
|
||||
iplSDChannelObj_setHeaps = .text:0x813E311C; // type:function size:0xC
|
||||
iplSDChannelObj_getOrAllocThumbnailData = .text:0x813E3128; // type:function size:0x50
|
||||
iplSDChannelObj_setPane = .text:0x813E3178; // type:function size:0x8
|
||||
iplSDChannelObj_setLayoutFile = .text:0x813E3180; // type:function size:0xAC
|
||||
iplSDChannelObj_calc = .text:0x813E322C; // type:function size:0x9C
|
||||
iplSDChannelObj_drawBase = .text:0x813E32C8; // type:function size:0x3C
|
||||
iplSDChannelObj_drawPage = .text:0x813E3304; // type:function size:0x8
|
||||
iplSDChannelObj_drawDialog = .text:0x813E330C; // type:function size:0x14
|
||||
iplSDChannelObj_813E3104 = .text:0x813E3104; // type:function size:0x18
|
||||
iplSDChannelObj_813E311C = .text:0x813E311C; // type:function size:0xC
|
||||
iplSDChannelObj_813E3128 = .text:0x813E3128; // type:function size:0x50
|
||||
iplSDChannelObj_813E3178 = .text:0x813E3178; // type:function size:0x8
|
||||
iplSDChannelObj_813E3180 = .text:0x813E3180; // type:function size:0xAC
|
||||
iplSDChannelObj_813E322C = .text:0x813E322C; // type:function size:0x9C
|
||||
iplSDChannelObj_813E32C8 = .text:0x813E32C8; // type:function size:0x3C
|
||||
iplSDChannelObj_813E3304 = .text:0x813E3304; // type:function size:0x8
|
||||
iplSDChannelObj_813E330C = .text:0x813E330C; // type:function size:0x14
|
||||
getTranslate__Q33ipl5scene12SDChannelObjCFv = .text:0x813E3320; // type:function size:0x10
|
||||
iplSDChannelObj_hasAppMeta = .text:0x813E3330; // type:function size:0x24
|
||||
iplSDChannelObj_startAppear = .text:0x813E3354; // type:function size:0x98
|
||||
iplSDChannelObj_startDisappear = .text:0x813E33EC; // type:function size:0x94
|
||||
iplSDChannelObj_setSelected = .text:0x813E3480; // type:function size:0x60
|
||||
iplSDChannelObj_playPageHide = .text:0x813E34E0; // type:function size:0x8
|
||||
iplSDChannelObj_resetPageAnim = .text:0x813E34E8; // type:function size:0x4C
|
||||
iplSDChannelObj_resetDialogAnim = .text:0x813E3534; // type:function size:0x4C
|
||||
iplSDChannelObj_applyLanguageGroups = .text:0x813E3580; // type:function size:0x2D8
|
||||
iplSDChannelObj_createBaseLayout = .text:0x813E3858; // type:function size:0xC8
|
||||
iplSDChannelObj_createIconLayout = .text:0x813E3920; // type:function size:0x164
|
||||
iplSDChannelObj_createMenuLayout = .text:0x813E3A84; // type:function size:0x98
|
||||
iplSDChannelObj_syncLayoutsToPane = .text:0x813E3B1C; // type:function size:0x84
|
||||
iplSDChannelObj_createPageLayout = .text:0x813E3BA0; // type:function size:0xB8
|
||||
iplSDChannelObj_setPageTranslate = .text:0x813E3C58; // type:function size:0x44
|
||||
iplSDChannelObj_setPageAnim = .text:0x813E3C9C; // type:function size:0x19C
|
||||
iplSDChannelObj_updatePageAnim = .text:0x813E3E38; // type:function size:0xF0
|
||||
iplSDChannelObj_playPageAnimator = .text:0x813E3F28; // type:function size:0x4C
|
||||
iplSDChannelObj_createDialogLayout = .text:0x813E3F74; // type:function size:0xEC
|
||||
iplSDChannelObj_getLocalizedName = .text:0x813E4060; // type:function size:0xDC
|
||||
iplSDChannelObj_setBalloonText = .text:0x813E413C; // type:function size:0x2D4
|
||||
iplSDChannelObj_positionDialog = .text:0x813E4410; // type:function size:0x148
|
||||
iplSDChannelObj_setDialogAnim = .text:0x813E4558; // type:function size:0x1AC
|
||||
iplSDChannelObj_updateDialogAnim = .text:0x813E4704; // type:function size:0x118
|
||||
iplSDChannelObj_findNewMessageGroup = .text:0x813E481C; // type:function size:0x18C
|
||||
iplSDChannelObj_updateNewMessage = .text:0x813E49A8; // type:function size:0xAC
|
||||
iplSDChannelObj_checkNewMessage = .text:0x813E4A54; // type:function size:0x168
|
||||
iplSDChannelObj_813E3330 = .text:0x813E3330; // type:function size:0x24
|
||||
iplSDChannelObj_813E3354 = .text:0x813E3354; // type:function size:0x98
|
||||
iplSDChannelObj_813E33EC = .text:0x813E33EC; // type:function size:0x94
|
||||
iplSDChannelObj_813E3480 = .text:0x813E3480; // type:function size:0x60
|
||||
iplSDChannelObj_813E34E0 = .text:0x813E34E0; // type:function size:0x8
|
||||
iplSDChannelObj_813E34E8 = .text:0x813E34E8; // type:function size:0x4C
|
||||
iplSDChannelObj_813E3534 = .text:0x813E3534; // type:function size:0x4C
|
||||
iplSDChannelObj_813E3580 = .text:0x813E3580; // type:function size:0x2D8
|
||||
iplSDChannelObj_813E3858 = .text:0x813E3858; // type:function size:0xC8
|
||||
iplSDChannelObj_813E3920 = .text:0x813E3920; // type:function size:0x164
|
||||
iplSDChannelObj_813E3A84 = .text:0x813E3A84; // type:function size:0x98
|
||||
iplSDChannelObj_813E3B1C = .text:0x813E3B1C; // type:function size:0x84
|
||||
iplSDChannelObj_813E3BA0 = .text:0x813E3BA0; // type:function size:0xB8
|
||||
iplSDChannelObj_813E3C58 = .text:0x813E3C58; // type:function size:0x44
|
||||
iplSDChannelObj_813E3C9C = .text:0x813E3C9C; // type:function size:0x19C
|
||||
iplSDChannelObj_813E3E38 = .text:0x813E3E38; // type:function size:0xF0
|
||||
iplSDChannelObj_813E3F28 = .text:0x813E3F28; // type:function size:0x4C
|
||||
iplSDChannelObj_813E3F74 = .text:0x813E3F74; // type:function size:0xEC
|
||||
iplSDChannelObj_813E4060 = .text:0x813E4060; // type:function size:0xDC
|
||||
iplSDChannelObj_813E413C = .text:0x813E413C; // type:function size:0x2D4
|
||||
iplSDChannelObj_813E4410 = .text:0x813E4410; // type:function size:0x148
|
||||
iplSDChannelObj_813E4558 = .text:0x813E4558; // type:function size:0x1AC
|
||||
iplSDChannelObj_813E4704 = .text:0x813E4704; // type:function size:0x118
|
||||
iplSDChannelObj_813E481C = .text:0x813E481C; // type:function size:0x18C
|
||||
iplSDChannelObj_813E49A8 = .text:0x813E49A8; // type:function size:0xAC
|
||||
iplSDChannelObj_813E4A54 = .text:0x813E4A54; // type:function size:0x168
|
||||
__ct__Q33ipl5scene14SDChannelTitleFPQ23EGG4HeapPQ33ipl5scene15SDChannelSelect = .text:0x813E4BBC; // type:function size:0x1F4
|
||||
__dt__Q33ipl5scene14SDChannelTitleFv = .text:0x813E4DB0; // type:function size:0x70
|
||||
prepare__Q33ipl5scene14SDChannelTitleFv = .text:0x813E4E20; // type:function size:0x4C
|
||||
@@ -4733,61 +4733,61 @@ calcFadeout__Q33ipl5scene14SDChannelTitleFv = .text:0x813E5B14; // type:function
|
||||
draw__Q33ipl5scene14SDChannelTitleFv = .text:0x813E5F54; // type:function size:0x220
|
||||
destroy__Q33ipl5scene14SDChannelTitleFv = .text:0x813E6174; // type:function size:0x17C
|
||||
isResetAcceptable__Q33ipl5scene14SDChannelTitleFv = .text:0x813E62F0; // type:function size:0x1C
|
||||
iplSDChannelTitle_rebuildBannerLayout = .text:0x813E630C; // type:function size:0x3C
|
||||
iplSDChannelTitle_createBannerLayout = .text:0x813E6348; // type:function size:0xDC
|
||||
iplSDChannelTitle_createIconLayout = .text:0x813E6424; // type:function size:0x1B0
|
||||
iplSDChannelTitle_updateIdleState = .text:0x813E65D4; // type:function size:0x18C
|
||||
iplSDChannelTitle_updateChangeState = .text:0x813E6760; // type:function size:0x20C
|
||||
iplSDChannelTitle_updateChangeWait = .text:0x813E696C; // type:function size:0x48
|
||||
iplSDChannelTitle_updateParentalResult = .text:0x813E69B4; // type:function size:0x1D4
|
||||
iplSDChannelTitle_updateDialogResult = .text:0x813E6B88; // type:function size:0x144
|
||||
iplSDChannelTitle_startCopyProgress = .text:0x813E6CCC; // type:function size:0x158
|
||||
iplSDChannelTitle_updateCopyPrepare = .text:0x813E6E24; // type:function size:0x17C
|
||||
iplSDChannelTitle_copyTitleRange = .text:0x813E6FA0; // type:function size:0x14
|
||||
iplSDChannelTitle_updateMemoryCalc = .text:0x813E6FB4; // type:function size:0xC0
|
||||
iplSDChannelTitle_updateCopyStart = .text:0x813E7074; // type:function size:0x130
|
||||
iplSDChannelTitle_updateAfterClearTmp = .text:0x813E71A4; // type:function size:0xA8
|
||||
iplSDChannelTitle_updateEnqueueNotice = .text:0x813E724C; // type:function size:0x6C
|
||||
iplSDChannelTitle_updateCopyProgress = .text:0x813E72B8; // type:function size:0x160
|
||||
iplSDChannelTitle_showCopyError = .text:0x813E7418; // type:function size:0x80
|
||||
iplSDChannelTitle_updateCopyErrorDialog = .text:0x813E7498; // type:function size:0x54
|
||||
iplSDChannelTitle_finishProgressHide = .text:0x813E74EC; // type:function size:0x12C
|
||||
iplSDChannelTitle_returnToIdle = .text:0x813E7618; // type:function size:0xB0
|
||||
iplSDChannelTitle_loadTitleBanner = .text:0x813E76C8; // type:function size:0xB8
|
||||
iplSDChannelTitle_updateBannerLoad = .text:0x813E7780; // type:function size:0x80
|
||||
iplSDChannelTitle_tryLaunchSelected = .text:0x813E7800; // type:function size:0x7C
|
||||
iplSDChannelTitle_updateTmdReady = .text:0x813E787C; // type:function size:0x134
|
||||
iplSDChannelTitle_startZoomFade = .text:0x813E79B0; // type:function size:0x68
|
||||
iplSDChannelTitle_preparePageRestart = .text:0x813E7A18; // type:function size:0x118
|
||||
iplSDChannelTitle_loadBannerScript = .text:0x813E7B30; // type:function size:0xDC
|
||||
iplSDChannelTitle_updateScript = .text:0x813E7C0C; // type:function size:0x108
|
||||
iplSDChannelTitle_updateScriptIdle = .text:0x813E7D14; // type:function size:0xBC
|
||||
iplSDChannelTitle_updateScriptLoad = .text:0x813E7DD0; // type:function size:0x1E0
|
||||
iplSDChannelTitle_destroyScript = .text:0x813E7FB0; // type:function size:0x84
|
||||
iplSDChannelTitle_playBannerIntro = .text:0x813E8034; // type:function size:0x12C
|
||||
iplSDChannelTitle_startBannerSound = .text:0x813E8160; // type:function size:0x9C
|
||||
iplSDChannelTitle_bindBannerAnimations = .text:0x813E81FC; // type:function size:0x5C
|
||||
iplSDChannelTitle_bindRsoAnimations = .text:0x813E8258; // type:function size:0x108
|
||||
iplSDChannelTitle_bindBannerAnims = .text:0x813E8360; // type:function size:0x11C
|
||||
iplSDChannelTitle_isNetworkAllowed = .text:0x813E847C; // type:function size:0x4C
|
||||
iplSDChannelTitle_isParentalEnabled = .text:0x813E84C8; // type:function size:0x44
|
||||
iplSDChannelTitle_openParentalDialog = .text:0x813E850C; // type:function size:0xB4
|
||||
iplSDChannelTitle_setPageAndIndex = .text:0x813E85C0; // type:function size:0xE0
|
||||
iplSDChannelTitle_beginLaunch = .text:0x813E86A0; // type:function size:0x38
|
||||
iplSDChannelTitle_cleanupAndLeave = .text:0x813E86D8; // type:function size:0x1F4
|
||||
iplSDChannelTitle_confirmLeaveToSettings = .text:0x813E88CC; // type:function size:0xD0
|
||||
iplSDChannelTitle_prepareSceneExit = .text:0x813E899C; // type:function size:0x84
|
||||
iplSDChannelTitle_flushSaveBeforeExit = .text:0x813E8A20; // type:function size:0x94
|
||||
iplSDChannelTitle_rebootSystem = .text:0x813E8AB4; // type:function size:0x68
|
||||
iplSDChannelTitle_isLaunchDelayDone = .text:0x813E8B1C; // type:function size:0x54
|
||||
iplSDChannelTitle_setStartButtonPressed = .text:0x813E8B70; // type:function size:0x98
|
||||
iplSDChannelTitle_drawDimOverlay = .text:0x813E8C08; // type:function size:0x10C
|
||||
iplSDChannelTitle_setPaneMessage = .text:0x813E8D14; // type:function size:0xB8
|
||||
iplSDChannelTitle_loadBannerMetaFiles = .text:0x813E8DCC; // type:function size:0xA4
|
||||
iplSDChannelTitle_fetchTmdViewTask = .text:0x813E8E70; // type:function size:0x94
|
||||
iplSDChannelTitle_passesParentalCheck = .text:0x813E8F04; // type:function size:0x100
|
||||
iplSDChannelTitle_onTitlePaneEvent = .text:0x813E9004; // type:function size:0x2E8
|
||||
iplSDChannelTitle_onTitleButtonEvent = .text:0x813E92EC; // type:function size:0x17C
|
||||
iplSDChannelTitle_813E630C = .text:0x813E630C; // type:function size:0x3C
|
||||
iplSDChannelTitle_813E6348 = .text:0x813E6348; // type:function size:0xDC
|
||||
iplSDChannelTitle_813E6424 = .text:0x813E6424; // type:function size:0x1B0
|
||||
iplSDChannelTitle_813E65D4 = .text:0x813E65D4; // type:function size:0x18C
|
||||
iplSDChannelTitle_813E6760 = .text:0x813E6760; // type:function size:0x20C
|
||||
iplSDChannelTitle_813E696C = .text:0x813E696C; // type:function size:0x48
|
||||
iplSDChannelTitle_813E69B4 = .text:0x813E69B4; // type:function size:0x1D4
|
||||
iplSDChannelTitle_813E6B88 = .text:0x813E6B88; // type:function size:0x144
|
||||
iplSDChannelTitle_813E6CCC = .text:0x813E6CCC; // type:function size:0x158
|
||||
iplSDChannelTitle_813E6E24 = .text:0x813E6E24; // type:function size:0x17C
|
||||
iplSDChannelTitle_813E6FA0 = .text:0x813E6FA0; // type:function size:0x14
|
||||
iplSDChannelTitle_813E6FB4 = .text:0x813E6FB4; // type:function size:0xC0
|
||||
iplSDChannelTitle_813E7074 = .text:0x813E7074; // type:function size:0x130
|
||||
iplSDChannelTitle_813E71A4 = .text:0x813E71A4; // type:function size:0xA8
|
||||
iplSDChannelTitle_813E724C = .text:0x813E724C; // type:function size:0x6C
|
||||
iplSDChannelTitle_813E72B8 = .text:0x813E72B8; // type:function size:0x160
|
||||
iplSDChannelTitle_813E7418 = .text:0x813E7418; // type:function size:0x80
|
||||
iplSDChannelTitle_813E7498 = .text:0x813E7498; // type:function size:0x54
|
||||
iplSDChannelTitle_813E74EC = .text:0x813E74EC; // type:function size:0x12C
|
||||
iplSDChannelTitle_813E7618 = .text:0x813E7618; // type:function size:0xB0
|
||||
iplSDChannelTitle_813E76C8 = .text:0x813E76C8; // type:function size:0xB8
|
||||
iplSDChannelTitle_813E7780 = .text:0x813E7780; // type:function size:0x80
|
||||
iplSDChannelTitle_813E7800 = .text:0x813E7800; // type:function size:0x7C
|
||||
iplSDChannelTitle_813E787C = .text:0x813E787C; // type:function size:0x134
|
||||
iplSDChannelTitle_813E79B0 = .text:0x813E79B0; // type:function size:0x68
|
||||
iplSDChannelTitle_813E7A18 = .text:0x813E7A18; // type:function size:0x118
|
||||
iplSDChannelTitle_813E7B30 = .text:0x813E7B30; // type:function size:0xDC
|
||||
iplSDChannelTitle_813E7C0C = .text:0x813E7C0C; // type:function size:0x108
|
||||
iplSDChannelTitle_813E7D14 = .text:0x813E7D14; // type:function size:0xBC
|
||||
iplSDChannelTitle_813E7DD0 = .text:0x813E7DD0; // type:function size:0x1E0
|
||||
iplSDChannelTitle_813E7FB0 = .text:0x813E7FB0; // type:function size:0x84
|
||||
iplSDChannelTitle_813E8034 = .text:0x813E8034; // type:function size:0x12C
|
||||
iplSDChannelTitle_813E8160 = .text:0x813E8160; // type:function size:0x9C
|
||||
iplSDChannelTitle_813E81FC = .text:0x813E81FC; // type:function size:0x5C
|
||||
iplSDChannelTitle_813E8258 = .text:0x813E8258; // type:function size:0x108
|
||||
iplSDChannelTitle_813E8360 = .text:0x813E8360; // type:function size:0x11C
|
||||
iplSDChannelTitle_813E847C = .text:0x813E847C; // type:function size:0x4C
|
||||
iplSDChannelTitle_813E84C8 = .text:0x813E84C8; // type:function size:0x44
|
||||
iplSDChannelTitle_813E850C = .text:0x813E850C; // type:function size:0xB4
|
||||
iplSDChannelTitle_813E85C0 = .text:0x813E85C0; // type:function size:0xE0
|
||||
iplSDChannelTitle_813E86A0 = .text:0x813E86A0; // type:function size:0x38
|
||||
iplSDChannelTitle_813E86D8 = .text:0x813E86D8; // type:function size:0x1F4
|
||||
iplSDChannelTitle_813E88CC = .text:0x813E88CC; // type:function size:0xD0
|
||||
iplSDChannelTitle_813E899C = .text:0x813E899C; // type:function size:0x84
|
||||
iplSDChannelTitle_813E8A20 = .text:0x813E8A20; // type:function size:0x94
|
||||
iplSDChannelTitle_813E8AB4 = .text:0x813E8AB4; // type:function size:0x68
|
||||
iplSDChannelTitle_813E8B1C = .text:0x813E8B1C; // type:function size:0x54
|
||||
iplSDChannelTitle_813E8B70 = .text:0x813E8B70; // type:function size:0x98
|
||||
iplSDChannelTitle_813E8C08 = .text:0x813E8C08; // type:function size:0x10C
|
||||
iplSDChannelTitle_813E8D14 = .text:0x813E8D14; // type:function size:0xB8
|
||||
iplSDChannelTitle_813E8DCC = .text:0x813E8DCC; // type:function size:0xA4
|
||||
iplSDChannelTitle_813E8E70 = .text:0x813E8E70; // type:function size:0x94
|
||||
iplSDChannelTitle_813E8F04 = .text:0x813E8F04; // type:function size:0x100
|
||||
iplSDChannelTitle_813E9004 = .text:0x813E9004; // type:function size:0x2E8
|
||||
iplSDChannelTitle_813E92EC = .text:0x813E92EC; // type:function size:0x17C
|
||||
startResetting__Q33ipl5scene14SDChannelTitleFv = .text:0x813E9468; // type:function size:0xC
|
||||
@20@__dt__Q33ipl5scene14SDChannelTitleFv = .text:0x813E9474; // type:function size:0x8
|
||||
__ct__Q33ipl5scene8SDButtonFPQ23EGG4Heap = .text:0x813E947C; // type:function size:0x9C
|
||||
@@ -7270,9 +7270,9 @@ ZiDAWGgetEOWattribute = .text:0x81481098; // type:function size:0x30
|
||||
ZiDAWGgetCHARattribute = .text:0x814810C8; // type:function size:0xF0
|
||||
ZiDAWGGetGraph = .text:0x814811B8; // type:function size:0x2C
|
||||
ZiDAWGGetGraphInfo = .text:0x814811E4; // type:function size:0x218
|
||||
Zi8LookupKoreanChar = .text:0x814813FC; // type:function size:0xC4
|
||||
Zi8_814813FC = .text:0x814813FC; // type:function size:0xC4
|
||||
Zi8GetKoreanCandidates = .text:0x814814C0; // type:function size:0x9AC
|
||||
Zi8MatchKoreanSequence = .text:0x81481E6C; // type:function size:0x9D4
|
||||
Zi8_81481E6C = .text:0x81481E6C; // type:function size:0x9D4
|
||||
Zi8IsWordW = .text:0x81482840; // type:function size:0x680
|
||||
Zi8ConvertUC2UserKey = .text:0x81482EC0; // type:function size:0x16C
|
||||
Zi8_8148302C = .text:0x8148302C; // type:function size:0xEC
|
||||
@@ -7284,7 +7284,7 @@ Zi8_814834AC = .text:0x814834AC; // type:function size:0x55C
|
||||
Zi8GetKOcandidates = .text:0x81483A08; // type:function size:0xA74
|
||||
Zi8LogError = .text:0x8148447C; // type:function size:0x4
|
||||
Zi8ReplaceLastError = .text:0x81484480; // type:function size:0x4
|
||||
Zi8MapKeyCode = .text:0x81484484; // type:function size:0x80
|
||||
Zi8_81484484 = .text:0x81484484; // type:function size:0x80
|
||||
ziNumKeysWithChars = .text:0x81484504; // type:function size:0xC4 scope:local
|
||||
Zi8getKeyLayout = .text:0x814845C8; // type:function size:0x2D8
|
||||
Zi8ChangeCharCase = .text:0x814848A0; // type:function size:0x48C
|
||||
@@ -15942,7 +15942,7 @@ lbl_8164DD80 = .data:0x8164DD80; // type:object size:0x37
|
||||
lbl_8164DDB7 = .data:0x8164DDB7; // type:object size:0xAD
|
||||
scPaneName_N_GCIcon = .data:0x8164DE64; // type:object size:0x9 data:string
|
||||
scPaneName_N_DiscUpdateIcon = .data:0x8164DE6D; // type:object size:0x11 data:string
|
||||
updateDiskState_jumptable = .data:0x8164DE80; // type:object size:0x1C scope:local
|
||||
jumptable_8164DE80 = .data:0x8164DE80; // type:object size:0x1C scope:local
|
||||
scSE_WSD_SELECT = .data:0x8164DE9C; // type:object size:0xB data:string
|
||||
lbl_8164DEA7 = .data:0x8164DEA7; // type:object size:0x10 data:string
|
||||
lbl_8164DEB7 = .data:0x8164DEB7; // type:object size:0x114
|
||||
@@ -17938,7 +17938,7 @@ __vt__Q39textinput3gui11PaneManager = .data:0x81668DD4; // type:object size:0x5C
|
||||
__vt__Q39textinput3gui10GUIManager = .data:0x81668E30; // type:object size:0x48
|
||||
__vt__Q39textinput3gui12GUIComponent = .data:0x81668E78; // type:object size:0x68
|
||||
__vt__Q49textinput5input10HKBManager14KBDListenerOwn = .data:0x81668EE0; // type:object size:0x18
|
||||
scHwKeyboardConvertWCCodeJumpTable = .data:0x81668EF8; // type:object size:0xFC scope:local
|
||||
jumptable_81668EF8 = .data:0x81668EF8; // type:object size:0xFC scope:local
|
||||
__vt__Q49textinput8keyboard5hwkey10HWKeyboard = .data:0x81668FF4; // type:object size:0x24
|
||||
__vt__Q29textinput8TiLayout = .data:0x81669018; // type:object size:0x34
|
||||
__vt__Q29textinput17AnimTransformPane = .data:0x81669050; // type:object size:0x20
|
||||
@@ -20617,31 +20617,31 @@ lbl_81694D18 = .sdata2:0x81694D18; // type:object size:0x4 data:4byte
|
||||
lbl_81694D1C = .sdata2:0x81694D1C; // type:object size:0x4 data:4byte
|
||||
lbl_81694D20 = .sdata2:0x81694D20; // type:object size:0x1 data:byte
|
||||
lbl_81694D24 = .sdata2:0x81694D24; // type:object size:0x1 data:byte
|
||||
scInputFormZeroF = .sdata2:0x81694D28; // type:object size:0x4 align:4 data:float
|
||||
scInputForm640F = .sdata2:0x81694D2C; // type:object size:0x4 align:4 data:float
|
||||
scInputFormF32ConvertMagic = .sdata2:0x81694D30; // type:object size:0x8 align:8 data:double
|
||||
scInputFormOneF = .sdata2:0x81694D38; // type:object size:0x4 align:4 data:float
|
||||
scInputFormHalfF = .sdata2:0x81694D3C; // type:object size:0x4 align:4 data:float
|
||||
scInputFormDegToFIdxF = .sdata2:0x81694D40; // type:object size:0x4 align:4 data:float
|
||||
scInputForm150F = .sdata2:0x81694D44; // type:object size:0x4 align:4 data:float
|
||||
scInputForm30F = .sdata2:0x81694D48; // type:object size:0x4 align:4 data:float
|
||||
scInputForm50F = .sdata2:0x81694D4C; // type:object size:0x4 align:4 data:float
|
||||
scInputForm10F = .sdata2:0x81694D50; // type:object size:0x4 align:4 data:float
|
||||
scInputForm52F = .sdata2:0x81694D54; // type:object size:0x4 align:4 data:float
|
||||
scInputFormTwoF = .sdata2:0x81694D58; // type:object size:0x4 align:4 data:float
|
||||
scInputForm140F = .sdata2:0x81694D5C; // type:object size:0x4 align:4 data:float
|
||||
scInputForm90F = .sdata2:0x81694D60; // type:object size:0x4 align:4 data:float
|
||||
scInputForm253F = .sdata2:0x81694D64; // type:object size:0x4 align:4 data:float
|
||||
scInputForm20F = .sdata2:0x81694D68; // type:object size:0x4 align:4 data:float
|
||||
scInputFormColorRU8 = .sdata2:0x81694D6C; // type:object size:0x1 data:byte
|
||||
scInputFormColorGU8 = .sdata2:0x81694D6D; // type:object size:0x1 data:byte
|
||||
scInputFormColorBU8 = .sdata2:0x81694D6E; // type:object size:0x1 data:byte
|
||||
scInputFormColorAU8 = .sdata2:0x81694D6F; // type:object size:0x1 data:byte
|
||||
scInputForm255F = .sdata2:0x81694D70; // type:object size:0x4 align:4 data:float
|
||||
scInputForm127F = .sdata2:0x81694D74; // type:object size:0x4 align:4 data:float
|
||||
scInputForm14592F = .sdata2:0x81694D78; // type:object size:0x4 align:4 data:float
|
||||
scInputFormF64ConvertMagic = .sdata2:0x81694D80; // type:object size:0x8 align:8 data:double
|
||||
scInputForm15F = .sdata2:0x81694D88; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D28 = .sdata2:0x81694D28; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D2C = .sdata2:0x81694D2C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D30 = .sdata2:0x81694D30; // type:object size:0x8 align:8 data:double
|
||||
lbl_81694D38 = .sdata2:0x81694D38; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D3C = .sdata2:0x81694D3C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D40 = .sdata2:0x81694D40; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D44 = .sdata2:0x81694D44; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D48 = .sdata2:0x81694D48; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D4C = .sdata2:0x81694D4C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D50 = .sdata2:0x81694D50; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D54 = .sdata2:0x81694D54; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D58 = .sdata2:0x81694D58; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D5C = .sdata2:0x81694D5C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D60 = .sdata2:0x81694D60; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D64 = .sdata2:0x81694D64; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D68 = .sdata2:0x81694D68; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D6C = .sdata2:0x81694D6C; // type:object size:0x1 data:byte
|
||||
lbl_81694D6D = .sdata2:0x81694D6D; // type:object size:0x1 data:byte
|
||||
lbl_81694D6E = .sdata2:0x81694D6E; // type:object size:0x1 data:byte
|
||||
lbl_81694D6F = .sdata2:0x81694D6F; // type:object size:0x1 data:byte
|
||||
lbl_81694D70 = .sdata2:0x81694D70; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D74 = .sdata2:0x81694D74; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D78 = .sdata2:0x81694D78; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D80 = .sdata2:0x81694D80; // type:object size:0x8 align:8 data:double
|
||||
lbl_81694D88 = .sdata2:0x81694D88; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D90 = .sdata2:0x81694D90; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D94 = .sdata2:0x81694D94; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694D98 = .sdata2:0x81694D98; // type:object size:0x4 align:4 data:float
|
||||
|
||||
@@ -247,7 +247,7 @@ config.asflags = [
|
||||
"-I include",
|
||||
f"-I build/{config.version}/include",
|
||||
f"--defsym BUILD_VERSION={version_num}",
|
||||
f"--defsym VERSION_{config.version}",
|
||||
f"--defsym VERSION_{config.version}=1",
|
||||
]
|
||||
config.ldflags = [
|
||||
"-fp hardware",
|
||||
@@ -1218,7 +1218,7 @@ config.libs = [
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGBA8.c"),
|
||||
|
||||
Object(NonMatching, "b65/iqdec_b65_frv32.c"),
|
||||
Object(Matching, "b65/iqdec_b65_frv32.c", source="b65/iqdec_b65_frv32.s"),
|
||||
]
|
||||
),
|
||||
# NW4R
|
||||
|
||||
@@ -81,22 +81,22 @@ namespace ipl {
|
||||
void* mpThumbnailData;
|
||||
NandSDWorker::SDAppMetaEntry mAppMeta;
|
||||
};
|
||||
extern "C" void iplSDChannelObj_activateIfIdle(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_setHeaps(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
extern "C" void iplSDChannelObj_813E3104(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E311C(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
EGG::ExpHeap* secondHeap);
|
||||
extern "C" void iplSDChannelObj_calc(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_drawBase(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_playPageHide(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_setPane(SDChannelObj* channel, nw4r::lyt::Pane* pane);
|
||||
extern "C" void iplSDChannelObj_setLayoutFile(SDChannelObj* channel, nand::LayoutFile* layoutFile);
|
||||
extern "C" void iplSDChannelObj_drawPage(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_drawDialog(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_startAppear(SDChannelObj* channel, int state);
|
||||
extern "C" void iplSDChannelObj_startDisappear(SDChannelObj* channel, int state);
|
||||
extern "C" void iplSDChannelObj_setSelected(SDChannelObj* channel, bool selected);
|
||||
extern "C" void iplSDChannelObj_resetPageAnim(SDChannelObj* channel, int enabled);
|
||||
extern "C" void* iplSDChannelObj_getOrAllocThumbnailData(SDChannelObj* channel);
|
||||
extern "C" bool iplSDChannelObj_hasAppMeta(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E322C(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E32C8(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E34E0(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E3178(SDChannelObj* channel, nw4r::lyt::Pane* pane);
|
||||
extern "C" void iplSDChannelObj_813E3180(SDChannelObj* channel, nand::LayoutFile* layoutFile);
|
||||
extern "C" void iplSDChannelObj_813E3304(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E330C(SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelObj_813E3354(SDChannelObj* channel, int state);
|
||||
extern "C" void iplSDChannelObj_813E33EC(SDChannelObj* channel, int state);
|
||||
extern "C" void iplSDChannelObj_813E3480(SDChannelObj* channel, bool selected);
|
||||
extern "C" void iplSDChannelObj_813E34E8(SDChannelObj* channel, int enabled);
|
||||
extern "C" void* iplSDChannelObj_813E3128(SDChannelObj* channel);
|
||||
extern "C" bool iplSDChannelObj_813E3330(SDChannelObj* channel);
|
||||
|
||||
union SDChannelSelectCommandArguments {
|
||||
u32 values[3];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Matching build uses iqdec_b65_frv32.s (retail extract); keep C for reference.
|
||||
#include <string.h>
|
||||
#include <tmc_jpeg_internal.h>
|
||||
|
||||
|
||||
315
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.s
Normal file
315
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.s
Normal file
@@ -0,0 +1,315 @@
|
||||
.include "macros.inc"
|
||||
.file "iqdec_b65_frv32.c"
|
||||
|
||||
# 0x814F6BD4..0x814F7024 | size: 0x450
|
||||
.text
|
||||
.balign 4
|
||||
|
||||
# .text:0x0 | 0x814F6BD4 | size: 0x450
|
||||
.fn TMCJPEGDEC_decode_iquant, global
|
||||
/* 814F6BD4 001C70F4 94 21 FF B0 */ stwu r1, -0x50(r1)
|
||||
/* 814F6BD8 001C70F8 7C 08 02 A6 */ mflr r0
|
||||
/* 814F6BDC 001C70FC 90 01 00 54 */ stw r0, 0x54(r1)
|
||||
/* 814F6BE0 001C7100 BE A1 00 24 */ stmw r21, 0x24(r1)
|
||||
/* 814F6BE4 001C7104 7C 75 1B 78 */ mr r21, r3
|
||||
/* 814F6BE8 001C7108 7C 96 23 78 */ mr r22, r4
|
||||
/* 814F6BEC 001C710C 7C B8 2B 78 */ mr r24, r5
|
||||
/* 814F6BF0 001C7110 7C D7 33 78 */ mr r23, r6
|
||||
/* 814F6BF4 001C7114 80 06 00 04 */ lwz r0, 0x4(r6)
|
||||
/* 814F6BF8 001C7118 83 26 04 98 */ lwz r25, 0x498(r6)
|
||||
/* 814F6BFC 001C711C 2C 00 00 08 */ cmpwi r0, 0x8
|
||||
/* 814F6C00 001C7120 41 81 00 18 */ bgt .L_814F6C18
|
||||
/* 814F6C04 001C7124 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6C08 001C7128 4B FF 42 05 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6C0C 001C712C 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6C10 001C7130 40 80 00 08 */ bge .L_814F6C18
|
||||
/* 814F6C14 001C7134 48 00 03 FC */ b .L_814F7010
|
||||
.L_814F6C18:
|
||||
/* 814F6C18 001C7138 80 97 00 04 */ lwz r4, 0x4(r23)
|
||||
/* 814F6C1C 001C713C 80 77 00 00 */ lwz r3, 0x0(r23)
|
||||
/* 814F6C20 001C7140 38 04 FF F8 */ subi r0, r4, 0x8
|
||||
/* 814F6C24 001C7144 7C 60 04 30 */ srw r0, r3, r0
|
||||
/* 814F6C28 001C7148 54 00 15 BA */ clrlslwi r0, r0, 24, 2
|
||||
/* 814F6C2C 001C714C 7C 79 02 14 */ add r3, r25, r0
|
||||
/* 814F6C30 001C7150 7C 19 02 2E */ lhzx r0, r25, r0
|
||||
/* 814F6C34 001C7154 A3 23 00 02 */ lhz r25, 0x2(r3)
|
||||
/* 814F6C38 001C7158 2C 00 00 00 */ cmpwi r0, 0x0
|
||||
/* 814F6C3C 001C715C B0 01 00 1C */ sth r0, 0x1c(r1)
|
||||
/* 814F6C40 001C7160 B3 21 00 1E */ sth r25, 0x1e(r1)
|
||||
/* 814F6C44 001C7164 41 82 00 10 */ beq .L_814F6C54
|
||||
/* 814F6C48 001C7168 7C 00 20 50 */ subf r0, r0, r4
|
||||
/* 814F6C4C 001C716C 90 17 00 04 */ stw r0, 0x4(r23)
|
||||
/* 814F6C50 001C7170 48 00 00 C8 */ b .L_814F6D18
|
||||
.L_814F6C54:
|
||||
/* 814F6C54 001C7174 2C 04 00 11 */ cmpwi r4, 0x11
|
||||
/* 814F6C58 001C7178 83 B7 04 A0 */ lwz r29, 0x4a0(r23)
|
||||
/* 814F6C5C 001C717C 83 37 04 9C */ lwz r25, 0x49c(r23)
|
||||
/* 814F6C60 001C7180 41 81 00 18 */ bgt .L_814F6C78
|
||||
/* 814F6C64 001C7184 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6C68 001C7188 4B FF 41 A5 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6C6C 001C718C 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6C70 001C7190 40 80 00 08 */ bge .L_814F6C78
|
||||
/* 814F6C74 001C7194 48 00 00 94 */ b .L_814F6D08
|
||||
.L_814F6C78:
|
||||
/* 814F6C78 001C7198 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6C7C 001C719C 38 F9 00 24 */ addi r7, r25, 0x24
|
||||
/* 814F6C80 001C71A0 80 17 00 00 */ lwz r0, 0x0(r23)
|
||||
/* 814F6C84 001C71A4 38 A0 00 09 */ li r5, 0x9
|
||||
/* 814F6C88 001C71A8 38 63 FF F7 */ subi r3, r3, 0x9
|
||||
/* 814F6C8C 001C71AC 7C 00 1C 30 */ srw r0, r0, r3
|
||||
/* 814F6C90 001C71B0 90 77 00 04 */ stw r3, 0x4(r23)
|
||||
/* 814F6C94 001C71B4 54 06 05 FE */ clrlwi r6, r0, 23
|
||||
/* 814F6C98 001C71B8 48 00 00 3C */ b .L_814F6CD4
|
||||
.L_814F6C9C:
|
||||
/* 814F6C9C 001C71BC 38 A5 00 01 */ addi r5, r5, 0x1
|
||||
/* 814F6CA0 001C71C0 38 E7 00 04 */ addi r7, r7, 0x4
|
||||
/* 814F6CA4 001C71C4 28 05 00 10 */ cmplwi r5, 0x10
|
||||
/* 814F6CA8 001C71C8 40 81 00 0C */ ble .L_814F6CB4
|
||||
/* 814F6CAC 001C71CC 38 60 FF 9C */ li r3, -0x64
|
||||
/* 814F6CB0 001C71D0 48 00 00 58 */ b .L_814F6D08
|
||||
.L_814F6CB4:
|
||||
/* 814F6CB4 001C71D4 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6CB8 001C71D8 54 C6 08 3C */ slwi r6, r6, 1
|
||||
/* 814F6CBC 001C71DC 80 17 00 00 */ lwz r0, 0x0(r23)
|
||||
/* 814F6CC0 001C71E0 38 63 FF FF */ subi r3, r3, 0x1
|
||||
/* 814F6CC4 001C71E4 7C 00 1C 30 */ srw r0, r0, r3
|
||||
/* 814F6CC8 001C71E8 90 77 00 04 */ stw r3, 0x4(r23)
|
||||
/* 814F6CCC 001C71EC 54 00 07 FE */ clrlwi r0, r0, 31
|
||||
/* 814F6CD0 001C71F0 7C C6 03 78 */ or r6, r6, r0
|
||||
.L_814F6CD4:
|
||||
/* 814F6CD4 001C71F4 A0 87 00 00 */ lhz r4, 0x0(r7)
|
||||
/* 814F6CD8 001C71F8 A0 67 00 02 */ lhz r3, 0x2(r7)
|
||||
/* 814F6CDC 001C71FC B0 81 00 14 */ sth r4, 0x14(r1)
|
||||
/* 814F6CE0 001C7200 B0 61 00 16 */ sth r3, 0x16(r1)
|
||||
/* 814F6CE4 001C7204 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 814F6CE8 001C7208 90 01 00 18 */ stw r0, 0x18(r1)
|
||||
/* 814F6CEC 001C720C A0 01 00 18 */ lhz r0, 0x18(r1)
|
||||
/* 814F6CF0 001C7210 7C 06 00 40 */ cmplw r6, r0
|
||||
/* 814F6CF4 001C7214 41 81 FF A8 */ bgt .L_814F6C9C
|
||||
/* 814F6CF8 001C7218 7C 04 30 50 */ subf r0, r4, r6
|
||||
/* 814F6CFC 001C721C 7C 00 1A 14 */ add r0, r0, r3
|
||||
/* 814F6D00 001C7220 54 00 06 3E */ clrlwi r0, r0, 24
|
||||
/* 814F6D04 001C7224 7C 7D 00 AE */ lbzx r3, r29, r0
|
||||
.L_814F6D08:
|
||||
/* 814F6D08 001C7228 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6D0C 001C722C 7C 79 1B 78 */ mr r25, r3
|
||||
/* 814F6D10 001C7230 40 80 00 08 */ bge .L_814F6D18
|
||||
/* 814F6D14 001C7234 48 00 02 FC */ b .L_814F7010
|
||||
.L_814F6D18:
|
||||
/* 814F6D18 001C7238 2C 19 00 00 */ cmpwi r25, 0x0
|
||||
/* 814F6D1C 001C723C 83 76 00 00 */ lwz r27, 0x0(r22)
|
||||
/* 814F6D20 001C7240 41 82 00 64 */ beq .L_814F6D84
|
||||
/* 814F6D24 001C7244 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6D28 001C7248 7C 00 C8 00 */ cmpw r0, r25
|
||||
/* 814F6D2C 001C724C 41 81 00 18 */ bgt .L_814F6D44
|
||||
/* 814F6D30 001C7250 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6D34 001C7254 4B FF 40 D9 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6D38 001C7258 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6D3C 001C725C 40 80 00 08 */ bge .L_814F6D44
|
||||
/* 814F6D40 001C7260 48 00 02 D0 */ b .L_814F7010
|
||||
.L_814F6D44:
|
||||
/* 814F6D44 001C7264 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6D48 001C7268 38 80 00 01 */ li r4, 0x1
|
||||
/* 814F6D4C 001C726C 80 77 00 00 */ lwz r3, 0x0(r23)
|
||||
/* 814F6D50 001C7270 7C 86 C8 30 */ slw r6, r4, r25
|
||||
/* 814F6D54 001C7274 7C 99 00 50 */ subf r4, r25, r0
|
||||
/* 814F6D58 001C7278 38 A6 FF FF */ subi r5, r6, 0x1
|
||||
/* 814F6D5C 001C727C 7C C0 0E 70 */ srawi r0, r6, 1
|
||||
/* 814F6D60 001C7280 7C 63 24 30 */ srw r3, r3, r4
|
||||
/* 814F6D64 001C7284 90 97 00 04 */ stw r4, 0x4(r23)
|
||||
/* 814F6D68 001C7288 7C A3 18 38 */ and r3, r5, r3
|
||||
/* 814F6D6C 001C728C 7C 00 18 00 */ cmpw r0, r3
|
||||
/* 814F6D70 001C7290 40 81 00 08 */ ble .L_814F6D78
|
||||
/* 814F6D74 001C7294 7C 65 18 50 */ subf r3, r5, r3
|
||||
.L_814F6D78:
|
||||
/* 814F6D78 001C7298 80 18 00 00 */ lwz r0, 0x0(r24)
|
||||
/* 814F6D7C 001C729C 7C 00 1A 14 */ add r0, r0, r3
|
||||
/* 814F6D80 001C72A0 90 18 00 00 */ stw r0, 0x0(r24)
|
||||
.L_814F6D84:
|
||||
/* 814F6D84 001C72A4 80 18 00 00 */ lwz r0, 0x0(r24)
|
||||
/* 814F6D88 001C72A8 38 75 00 04 */ addi r3, r21, 0x4
|
||||
/* 814F6D8C 001C72AC 38 80 00 00 */ li r4, 0x0
|
||||
/* 814F6D90 001C72B0 38 A0 00 FC */ li r5, 0xfc
|
||||
/* 814F6D94 001C72B4 7C 00 D9 D6 */ mullw r0, r0, r27
|
||||
/* 814F6D98 001C72B8 90 15 00 00 */ stw r0, 0x0(r21)
|
||||
/* 814F6D9C 001C72BC 83 97 04 A8 */ lwz r28, 0x4a8(r23)
|
||||
/* 814F6DA0 001C72C0 83 37 04 AC */ lwz r25, 0x4ac(r23)
|
||||
/* 814F6DA4 001C72C4 83 17 04 B0 */ lwz r24, 0x4b0(r23)
|
||||
/* 814F6DA8 001C72C8 4B E3 95 8D */ bl memset
|
||||
/* 814F6DAC 001C72CC 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6DB0 001C72D0 3B 60 00 01 */ li r27, 0x1
|
||||
/* 814F6DB4 001C72D4 2C 00 00 08 */ cmpwi r0, 0x8
|
||||
/* 814F6DB8 001C72D8 41 81 00 18 */ bgt .L_814F6DD0
|
||||
/* 814F6DBC 001C72DC 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6DC0 001C72E0 4B FF 40 4D */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6DC4 001C72E4 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6DC8 001C72E8 40 80 00 08 */ bge .L_814F6DD0
|
||||
/* 814F6DCC 001C72EC 48 00 02 44 */ b .L_814F7010
|
||||
.L_814F6DD0:
|
||||
/* 814F6DD0 001C72F0 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6DD4 001C72F4 3F A0 81 62 */ lis r29, TMCJPEGDEC_Zigzag_data@ha
|
||||
/* 814F6DD8 001C72F8 80 97 00 00 */ lwz r4, 0x0(r23)
|
||||
/* 814F6DDC 001C72FC 3B BD E1 B0 */ addi r29, r29, TMCJPEGDEC_Zigzag_data@l
|
||||
/* 814F6DE0 001C7300 38 03 FF F8 */ subi r0, r3, 0x8
|
||||
/* 814F6DE4 001C7304 3B E0 00 01 */ li r31, 0x1
|
||||
/* 814F6DE8 001C7308 7C 80 04 30 */ srw r0, r4, r0
|
||||
/* 814F6DEC 001C730C 54 00 15 BA */ clrlslwi r0, r0, 24, 2
|
||||
/* 814F6DF0 001C7310 7C 9C 02 14 */ add r4, r28, r0
|
||||
/* 814F6DF4 001C7314 7C 7C 02 2E */ lhzx r3, r28, r0
|
||||
/* 814F6DF8 001C7318 A0 04 00 02 */ lhz r0, 0x2(r4)
|
||||
/* 814F6DFC 001C731C B0 61 00 08 */ sth r3, 0x8(r1)
|
||||
/* 814F6E00 001C7320 B0 01 00 0A */ sth r0, 0xa(r1)
|
||||
.L_814F6E04:
|
||||
/* 814F6E04 001C7324 A0 81 00 08 */ lhz r4, 0x8(r1)
|
||||
/* 814F6E08 001C7328 2C 04 00 00 */ cmpwi r4, 0x0
|
||||
/* 814F6E0C 001C732C 41 82 00 18 */ beq .L_814F6E24
|
||||
/* 814F6E10 001C7330 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6E14 001C7334 A0 61 00 0A */ lhz r3, 0xa(r1)
|
||||
/* 814F6E18 001C7338 7C 04 00 50 */ subf r0, r4, r0
|
||||
/* 814F6E1C 001C733C 90 17 00 04 */ stw r0, 0x4(r23)
|
||||
/* 814F6E20 001C7340 48 00 00 C0 */ b .L_814F6EE0
|
||||
.L_814F6E24:
|
||||
/* 814F6E24 001C7344 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6E28 001C7348 2C 00 00 11 */ cmpwi r0, 0x11
|
||||
/* 814F6E2C 001C734C 41 81 00 18 */ bgt .L_814F6E44
|
||||
/* 814F6E30 001C7350 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6E34 001C7354 4B FF 3F D9 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6E38 001C7358 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6E3C 001C735C 40 80 00 08 */ bge .L_814F6E44
|
||||
/* 814F6E40 001C7360 48 00 00 94 */ b .L_814F6ED4
|
||||
.L_814F6E44:
|
||||
/* 814F6E44 001C7364 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6E48 001C7368 38 F9 00 24 */ addi r7, r25, 0x24
|
||||
/* 814F6E4C 001C736C 80 17 00 00 */ lwz r0, 0x0(r23)
|
||||
/* 814F6E50 001C7370 38 A0 00 09 */ li r5, 0x9
|
||||
/* 814F6E54 001C7374 38 63 FF F7 */ subi r3, r3, 0x9
|
||||
/* 814F6E58 001C7378 7C 00 1C 30 */ srw r0, r0, r3
|
||||
/* 814F6E5C 001C737C 90 77 00 04 */ stw r3, 0x4(r23)
|
||||
/* 814F6E60 001C7380 54 06 05 FE */ clrlwi r6, r0, 23
|
||||
/* 814F6E64 001C7384 48 00 00 3C */ b .L_814F6EA0
|
||||
.L_814F6E68:
|
||||
/* 814F6E68 001C7388 38 A5 00 01 */ addi r5, r5, 0x1
|
||||
/* 814F6E6C 001C738C 38 E7 00 04 */ addi r7, r7, 0x4
|
||||
/* 814F6E70 001C7390 28 05 00 10 */ cmplwi r5, 0x10
|
||||
/* 814F6E74 001C7394 40 81 00 0C */ ble .L_814F6E80
|
||||
/* 814F6E78 001C7398 38 60 FF 9C */ li r3, -0x64
|
||||
/* 814F6E7C 001C739C 48 00 00 58 */ b .L_814F6ED4
|
||||
.L_814F6E80:
|
||||
/* 814F6E80 001C73A0 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6E84 001C73A4 54 C6 08 3C */ slwi r6, r6, 1
|
||||
/* 814F6E88 001C73A8 80 17 00 00 */ lwz r0, 0x0(r23)
|
||||
/* 814F6E8C 001C73AC 38 63 FF FF */ subi r3, r3, 0x1
|
||||
/* 814F6E90 001C73B0 7C 00 1C 30 */ srw r0, r0, r3
|
||||
/* 814F6E94 001C73B4 90 77 00 04 */ stw r3, 0x4(r23)
|
||||
/* 814F6E98 001C73B8 54 00 07 FE */ clrlwi r0, r0, 31
|
||||
/* 814F6E9C 001C73BC 7C C6 03 78 */ or r6, r6, r0
|
||||
.L_814F6EA0:
|
||||
/* 814F6EA0 001C73C0 A0 87 00 00 */ lhz r4, 0x0(r7)
|
||||
/* 814F6EA4 001C73C4 A0 67 00 02 */ lhz r3, 0x2(r7)
|
||||
/* 814F6EA8 001C73C8 B0 81 00 0C */ sth r4, 0xc(r1)
|
||||
/* 814F6EAC 001C73CC B0 61 00 0E */ sth r3, 0xe(r1)
|
||||
/* 814F6EB0 001C73D0 80 01 00 0C */ lwz r0, 0xc(r1)
|
||||
/* 814F6EB4 001C73D4 90 01 00 10 */ stw r0, 0x10(r1)
|
||||
/* 814F6EB8 001C73D8 A0 01 00 10 */ lhz r0, 0x10(r1)
|
||||
/* 814F6EBC 001C73DC 7C 06 00 40 */ cmplw r6, r0
|
||||
/* 814F6EC0 001C73E0 41 81 FF A8 */ bgt .L_814F6E68
|
||||
/* 814F6EC4 001C73E4 7C 04 30 50 */ subf r0, r4, r6
|
||||
/* 814F6EC8 001C73E8 7C 00 1A 14 */ add r0, r0, r3
|
||||
/* 814F6ECC 001C73EC 54 00 06 3E */ clrlwi r0, r0, 24
|
||||
/* 814F6ED0 001C73F0 7C 78 00 AE */ lbzx r3, r24, r0
|
||||
.L_814F6ED4:
|
||||
/* 814F6ED4 001C73F4 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6ED8 001C73F8 40 80 00 08 */ bge .L_814F6EE0
|
||||
/* 814F6EDC 001C73FC 48 00 01 34 */ b .L_814F7010
|
||||
.L_814F6EE0:
|
||||
/* 814F6EE0 001C7400 54 7A 07 3F */ clrlwi. r26, r3, 28
|
||||
/* 814F6EE4 001C7404 41 82 00 AC */ beq .L_814F6F90
|
||||
/* 814F6EE8 001C7408 7C 60 26 70 */ srawi r0, r3, 4
|
||||
/* 814F6EEC 001C740C 7F 7B 02 14 */ add r27, r27, r0
|
||||
/* 814F6EF0 001C7410 2C 1B 00 40 */ cmpwi r27, 0x40
|
||||
/* 814F6EF4 001C7414 41 80 00 0C */ blt .L_814F6F00
|
||||
/* 814F6EF8 001C7418 38 60 FF 9C */ li r3, -0x64
|
||||
/* 814F6EFC 001C741C 48 00 01 14 */ b .L_814F7010
|
||||
.L_814F6F00:
|
||||
/* 814F6F00 001C7420 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6F04 001C7424 38 1A 00 08 */ addi r0, r26, 0x8
|
||||
/* 814F6F08 001C7428 7F DD D8 AE */ lbzx r30, r29, r27
|
||||
/* 814F6F0C 001C742C 7C 03 00 00 */ cmpw r3, r0
|
||||
/* 814F6F10 001C7430 41 81 00 18 */ bgt .L_814F6F28
|
||||
/* 814F6F14 001C7434 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6F18 001C7438 4B FF 3E F5 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6F1C 001C743C 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6F20 001C7440 40 80 00 08 */ bge .L_814F6F28
|
||||
/* 814F6F24 001C7444 48 00 00 EC */ b .L_814F7010
|
||||
.L_814F6F28:
|
||||
/* 814F6F28 001C7448 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6F2C 001C744C 7F E3 D0 30 */ slw r3, r31, r26
|
||||
/* 814F6F30 001C7450 80 B7 00 00 */ lwz r5, 0x0(r23)
|
||||
/* 814F6F34 001C7454 38 C3 FF FF */ subi r6, r3, 0x1
|
||||
/* 814F6F38 001C7458 7C 9A 00 50 */ subf r4, r26, r0
|
||||
/* 814F6F3C 001C745C 7C 60 0E 70 */ srawi r0, r3, 1
|
||||
/* 814F6F40 001C7460 38 64 FF F8 */ subi r3, r4, 0x8
|
||||
/* 814F6F44 001C7464 90 97 00 04 */ stw r4, 0x4(r23)
|
||||
/* 814F6F48 001C7468 7C A3 1C 30 */ srw r3, r5, r3
|
||||
/* 814F6F4C 001C746C 7C A5 24 30 */ srw r5, r5, r4
|
||||
/* 814F6F50 001C7470 54 63 15 BA */ clrlslwi r3, r3, 24, 2
|
||||
/* 814F6F54 001C7474 57 C7 15 BA */ clrlslwi r7, r30, 24, 2
|
||||
/* 814F6F58 001C7478 7C 9C 1A 14 */ add r4, r28, r3
|
||||
/* 814F6F5C 001C747C 7C C5 28 38 */ and r5, r6, r5
|
||||
/* 814F6F60 001C7480 7C 7C 1A 2E */ lhzx r3, r28, r3
|
||||
/* 814F6F64 001C7484 7C 00 28 00 */ cmpw r0, r5
|
||||
/* 814F6F68 001C7488 A0 04 00 02 */ lhz r0, 0x2(r4)
|
||||
/* 814F6F6C 001C748C B0 61 00 08 */ sth r3, 0x8(r1)
|
||||
/* 814F6F70 001C7490 7C 76 38 2E */ lwzx r3, r22, r7
|
||||
/* 814F6F74 001C7494 B0 01 00 0A */ sth r0, 0xa(r1)
|
||||
/* 814F6F78 001C7498 40 81 00 08 */ ble .L_814F6F80
|
||||
/* 814F6F7C 001C749C 7C A6 28 50 */ subf r5, r6, r5
|
||||
.L_814F6F80:
|
||||
/* 814F6F80 001C74A0 7C 05 19 D6 */ mullw r0, r5, r3
|
||||
/* 814F6F84 001C74A4 3B 7B 00 01 */ addi r27, r27, 0x1
|
||||
/* 814F6F88 001C74A8 7C 15 39 2E */ stwx r0, r21, r7
|
||||
/* 814F6F8C 001C74AC 48 00 00 58 */ b .L_814F6FE4
|
||||
.L_814F6F90:
|
||||
/* 814F6F90 001C74B0 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6F94 001C74B4 41 82 00 58 */ beq .L_814F6FEC
|
||||
/* 814F6F98 001C74B8 80 17 00 04 */ lwz r0, 0x4(r23)
|
||||
/* 814F6F9C 001C74BC 2C 00 00 08 */ cmpwi r0, 0x8
|
||||
/* 814F6FA0 001C74C0 41 81 00 18 */ bgt .L_814F6FB8
|
||||
/* 814F6FA4 001C74C4 7E E3 BB 78 */ mr r3, r23
|
||||
/* 814F6FA8 001C74C8 4B FF 3E 65 */ bl TMCJPEGDEC_load_buff
|
||||
/* 814F6FAC 001C74CC 2C 03 00 00 */ cmpwi r3, 0x0
|
||||
/* 814F6FB0 001C74D0 40 80 00 08 */ bge .L_814F6FB8
|
||||
/* 814F6FB4 001C74D4 48 00 00 5C */ b .L_814F7010
|
||||
.L_814F6FB8:
|
||||
/* 814F6FB8 001C74D8 80 77 00 04 */ lwz r3, 0x4(r23)
|
||||
/* 814F6FBC 001C74DC 3B 7B 00 10 */ addi r27, r27, 0x10
|
||||
/* 814F6FC0 001C74E0 80 97 00 00 */ lwz r4, 0x0(r23)
|
||||
/* 814F6FC4 001C74E4 38 03 FF F8 */ subi r0, r3, 0x8
|
||||
/* 814F6FC8 001C74E8 7C 80 04 30 */ srw r0, r4, r0
|
||||
/* 814F6FCC 001C74EC 54 00 15 BA */ clrlslwi r0, r0, 24, 2
|
||||
/* 814F6FD0 001C74F0 7C 9C 02 14 */ add r4, r28, r0
|
||||
/* 814F6FD4 001C74F4 7C 7C 02 2E */ lhzx r3, r28, r0
|
||||
/* 814F6FD8 001C74F8 A0 04 00 02 */ lhz r0, 0x2(r4)
|
||||
/* 814F6FDC 001C74FC B0 61 00 08 */ sth r3, 0x8(r1)
|
||||
/* 814F6FE0 001C7500 B0 01 00 0A */ sth r0, 0xa(r1)
|
||||
.L_814F6FE4:
|
||||
/* 814F6FE4 001C7504 2C 1B 00 40 */ cmpwi r27, 0x40
|
||||
/* 814F6FE8 001C7508 41 80 FE 1C */ blt .L_814F6E04
|
||||
.L_814F6FEC:
|
||||
/* 814F6FEC 001C750C 2C 1B 00 40 */ cmpwi r27, 0x40
|
||||
/* 814F6FF0 001C7510 40 81 00 0C */ ble .L_814F6FFC
|
||||
/* 814F6FF4 001C7514 38 60 FF 9C */ li r3, -0x64
|
||||
/* 814F6FF8 001C7518 48 00 00 18 */ b .L_814F7010
|
||||
.L_814F6FFC:
|
||||
/* 814F6FFC 001C751C 38 1B FF FF */ subi r0, r27, 0x1
|
||||
/* 814F7000 001C7520 3C 60 81 62 */ lis r3, TMCJPEGDEC_Zigzag_loop@ha
|
||||
/* 814F7004 001C7524 54 00 10 3A */ slwi r0, r0, 2
|
||||
/* 814F7008 001C7528 38 63 E1 F0 */ addi r3, r3, TMCJPEGDEC_Zigzag_loop@l
|
||||
/* 814F700C 001C752C 7C 63 00 2E */ lwzx r3, r3, r0
|
||||
.L_814F7010:
|
||||
/* 814F7010 001C7530 BA A1 00 24 */ lmw r21, 0x24(r1)
|
||||
/* 814F7014 001C7534 80 01 00 54 */ lwz r0, 0x54(r1)
|
||||
/* 814F7018 001C7538 7C 08 03 A6 */ mtlr r0
|
||||
/* 814F701C 001C753C 38 21 00 50 */ addi r1, r1, 0x50
|
||||
/* 814F7020 001C7540 4E 80 00 20 */ blr
|
||||
.endfn TMCJPEGDEC_decode_iquant
|
||||
@@ -4,7 +4,7 @@
|
||||
ziU32 Zi8GetTableAddress(ziU8 lang, ziU8 tableIdx, ziPtr workData);
|
||||
ziU16 Zi8GetTableCount(ziU8 lang, ziU8 tableIdx, ziPtr workData);
|
||||
|
||||
ziU8 Zi8LookupKoreanChar(ziWChar character, ziU8* result, ziU16* index, ziPtr workData) {
|
||||
ziU8 Zi8_814813FC(ziWChar character, ziU8* result, ziU16* index, ziPtr workData) {
|
||||
ziU16 i;
|
||||
ziU8* table;
|
||||
|
||||
@@ -23,7 +23,7 @@ ziU8 Zi8LookupKoreanChar(ziWChar character, ziU8* result, ziU16* index, ziPtr wo
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziPtr workData) {
|
||||
@@ -97,9 +97,9 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
|
||||
result = 0;
|
||||
for (currentCharacter = 0; currentCharacter < state.elementIndex; currentCharacter++) {
|
||||
if (Zi8LookupKoreanChar(buffer[currentCharacter], &state.characterIndex,
|
||||
if (Zi8_814813FC(buffer[currentCharacter], &state.characterIndex,
|
||||
&state.inputIndex, workData) != 0) {
|
||||
state.matched = Zi8MatchKoreanSequence(&state.nextIndex,
|
||||
state.matched = Zi8_81481E6C(&state.nextIndex,
|
||||
buffer + currentCharacter + 1,
|
||||
state.characterIndex,
|
||||
(state.elementIndex - currentCharacter) - 1,
|
||||
@@ -235,7 +235,7 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
return result;
|
||||
}
|
||||
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData) {
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData) {
|
||||
ziU16 nestedScratch;
|
||||
ziU16 nestedIndexStorage;
|
||||
ziU16 index1;
|
||||
@@ -375,8 +375,8 @@ ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 c
|
||||
}
|
||||
if ((index3 >= tableCount) || (firstCharacter != (table + index3 * 4)[2]) ||
|
||||
(input[1] != (table + index3 * 4)[1]) || (input[0] != table[index3 * 4])) {
|
||||
if ((Zi8LookupKoreanChar(input[1], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 2, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8_814813FC(input[1], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 2, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index1;
|
||||
return 1;
|
||||
}
|
||||
@@ -397,8 +397,8 @@ ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 c
|
||||
if ((index4 >= tableCount) || (firstCharacter != (table + index4 * 4)[3]) ||
|
||||
(input[2] != (table + index4 * 4)[2]) || (input[1] != (table + index4 * 4)[1]) ||
|
||||
(input[0] != table[index4 * 4])) {
|
||||
if ((Zi8LookupKoreanChar(input[2], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 3, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8_814813FC(input[2], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 3, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index2;
|
||||
return 2;
|
||||
}
|
||||
@@ -409,8 +409,8 @@ ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 c
|
||||
*resultIndex = index4;
|
||||
return 4;
|
||||
}
|
||||
if ((Zi8LookupKoreanChar(input[3], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 4, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8_814813FC(input[3], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 4, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index3;
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ ziU16 Zi8GetTableCount(ziU8 language, ziU8 tableIndex, ziPtr __zi8_work_data);
|
||||
ziU32 Zi8GetTableAddress(ziU8 language, ziU8 tableIndex, ziPtr __zi8_work_data);
|
||||
ziU8 Zi8getKeyLayout(ziU8 language, ziWChar key, ziWChar* chars, ziU8 mode, ziPtr __zi8_work_data);
|
||||
|
||||
ziBool Zi8MapKeyCode(ziWChar character, ziWChar* output, ziPtr __zi8_work_data) {
|
||||
ziBool Zi8_81484484(ziWChar character, ziWChar* output, ziPtr __zi8_work_data) {
|
||||
if (character == 0xeffa) {
|
||||
*output = 0;
|
||||
} else if ((character >= 0xeff1) && (character <= 0xeff9)) {
|
||||
@@ -58,7 +58,7 @@ ziBool Zi8getKeyLayout(ziU8 language, ziWChar key, ziWChar* chars, ziU8 mode, zi
|
||||
*chars = 0;
|
||||
if (ZI_WORK->userKeys[language] != 0) {
|
||||
customTable = ZI_WORK->userKeys[language];
|
||||
if (!Zi8MapKeyCode(key, &key, __zi8_work_data)) {
|
||||
if (!Zi8_81484484(key, &key, __zi8_work_data)) {
|
||||
return 0;
|
||||
}
|
||||
keyChars = customTable->lower[key];
|
||||
@@ -87,7 +87,7 @@ tables_ready:
|
||||
Zi8ReplaceLastError(0x962, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (!Zi8MapKeyCode(key, &key, __zi8_work_data) || (key >= numKeys)) {
|
||||
if (!Zi8_81484484(key, &key, __zi8_work_data) || (key >= numKeys)) {
|
||||
Zi8ReplaceLastError(300, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -313,18 +313,18 @@ asm void __div2u() {
|
||||
cmpwi r3, 0x0
|
||||
cntlzw r0, r3
|
||||
cntlzw r9, r4
|
||||
bne __div2u_L_815F9538
|
||||
bne L_815F9538
|
||||
addi r0, r9, 0x20
|
||||
__div2u_L_815F9538:
|
||||
L_815F9538:
|
||||
cmpwi r5, 0x0
|
||||
cntlzw r9, r5
|
||||
cntlzw r10, r6
|
||||
bne __div2u_L_815F954C
|
||||
bne L_815F954C
|
||||
addi r9, r10, 0x20
|
||||
__div2u_L_815F954C:
|
||||
L_815F954C:
|
||||
cmpw r0, r9
|
||||
subfic r10, r0, 0x40
|
||||
bgt __div2u_L_815F9604
|
||||
bgt L_815F9604
|
||||
addi r9, r9, 0x1
|
||||
subfic r9, r9, 0x40
|
||||
add r0, r0, r9
|
||||
@@ -332,49 +332,49 @@ __div2u_L_815F954C:
|
||||
mtctr r9
|
||||
cmpwi r9, 0x20
|
||||
subi r7, r9, 0x20
|
||||
blt __div2u_L_815F9584
|
||||
blt L_815F9584
|
||||
srw r8, r3, r7
|
||||
li r7, 0x0
|
||||
b __div2u_L_815F9598
|
||||
__div2u_L_815F9584:
|
||||
b L_815F9598
|
||||
L_815F9584:
|
||||
srw r8, r4, r9
|
||||
subfic r7, r9, 0x20
|
||||
slw r7, r3, r7
|
||||
or r8, r8, r7
|
||||
srw r7, r3, r9
|
||||
__div2u_L_815F9598:
|
||||
L_815F9598:
|
||||
cmpwi r0, 0x20
|
||||
subic r9, r0, 0x20
|
||||
blt __div2u_L_815F95B0
|
||||
blt L_815F95B0
|
||||
slw r3, r4, r9
|
||||
li r4, 0x0
|
||||
b __div2u_L_815F95C4
|
||||
__div2u_L_815F95B0:
|
||||
b L_815F95C4
|
||||
L_815F95B0:
|
||||
slw r3, r3, r0
|
||||
subfic r9, r0, 0x20
|
||||
srw r9, r4, r9
|
||||
or r3, r3, r9
|
||||
slw r4, r4, r0
|
||||
__div2u_L_815F95C4:
|
||||
L_815F95C4:
|
||||
li r10, -0x1
|
||||
addic r7, r7, 0x0
|
||||
__div2u_L_815F95CC:
|
||||
L_815F95CC:
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
adde r8, r8, r8
|
||||
adde r7, r7, r7
|
||||
subfc r0, r6, r8
|
||||
subfe. r9, r5, r7
|
||||
blt __div2u_L_815F95F4
|
||||
blt L_815F95F4
|
||||
mr r8, r0
|
||||
mr r7, r9
|
||||
addic r0, r10, 0x1
|
||||
__div2u_L_815F95F4:
|
||||
bdnz __div2u_L_815F95CC
|
||||
L_815F95F4:
|
||||
bdnz L_815F95CC
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
blr
|
||||
__div2u_L_815F9604:
|
||||
L_815F9604:
|
||||
li r4, 0x0
|
||||
li r3, 0x0
|
||||
blr
|
||||
@@ -385,32 +385,32 @@ asm void __div2i() {
|
||||
#ifdef __MWERKS__
|
||||
stwu r1, -0x10(r1)
|
||||
clrrwi. r9, r3, 31
|
||||
beq __div2i_L_815F9624
|
||||
beq L_815F9624
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__div2i_L_815F9624:
|
||||
L_815F9624:
|
||||
stw r9, 0x8(r1)
|
||||
clrrwi. r10, r5, 31
|
||||
beq __div2i_L_815F9638
|
||||
beq L_815F9638
|
||||
subfic r6, r6, 0x0
|
||||
subfze r5, r5
|
||||
__div2i_L_815F9638:
|
||||
L_815F9638:
|
||||
stw r10, 0xc(r1)
|
||||
cmpwi r3, 0x0
|
||||
cntlzw r0, r3
|
||||
cntlzw r9, r4
|
||||
bne __div2i_L_815F9650
|
||||
bne L_815F9650
|
||||
addi r0, r9, 0x20
|
||||
__div2i_L_815F9650:
|
||||
L_815F9650:
|
||||
cmpwi r5, 0x0
|
||||
cntlzw r9, r5
|
||||
cntlzw r10, r6
|
||||
bne __div2i_L_815F9664
|
||||
bne L_815F9664
|
||||
addi r9, r10, 0x20
|
||||
__div2i_L_815F9664:
|
||||
L_815F9664:
|
||||
cmpw r0, r9
|
||||
subfic r10, r0, 0x40
|
||||
bgt __div2i_L_815F9738
|
||||
bgt L_815F9738
|
||||
addi r9, r9, 0x1
|
||||
subfic r9, r9, 0x40
|
||||
add r0, r0, r9
|
||||
@@ -418,60 +418,60 @@ __div2i_L_815F9664:
|
||||
mtctr r9
|
||||
cmpwi r9, 0x20
|
||||
subi r7, r9, 0x20
|
||||
blt __div2i_L_815F969C
|
||||
blt L_815F969C
|
||||
srw r8, r3, r7
|
||||
li r7, 0x0
|
||||
b __div2i_L_815F96B0
|
||||
__div2i_L_815F969C:
|
||||
b L_815F96B0
|
||||
L_815F969C:
|
||||
srw r8, r4, r9
|
||||
subfic r7, r9, 0x20
|
||||
slw r7, r3, r7
|
||||
or r8, r8, r7
|
||||
srw r7, r3, r9
|
||||
__div2i_L_815F96B0:
|
||||
L_815F96B0:
|
||||
cmpwi r0, 0x20
|
||||
subic r9, r0, 0x20
|
||||
blt __div2i_L_815F96C8
|
||||
blt L_815F96C8
|
||||
slw r3, r4, r9
|
||||
li r4, 0x0
|
||||
b __div2i_L_815F96DC
|
||||
__div2i_L_815F96C8:
|
||||
b L_815F96DC
|
||||
L_815F96C8:
|
||||
slw r3, r3, r0
|
||||
subfic r9, r0, 0x20
|
||||
srw r9, r4, r9
|
||||
or r3, r3, r9
|
||||
slw r4, r4, r0
|
||||
__div2i_L_815F96DC:
|
||||
L_815F96DC:
|
||||
li r10, -0x1
|
||||
addic r7, r7, 0x0
|
||||
__div2i_L_815F96E4:
|
||||
L_815F96E4:
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
adde r8, r8, r8
|
||||
adde r7, r7, r7
|
||||
subfc r0, r6, r8
|
||||
subfe. r9, r5, r7
|
||||
blt __div2i_L_815F970C
|
||||
blt L_815F970C
|
||||
mr r8, r0
|
||||
mr r7, r9
|
||||
addic r0, r10, 0x1
|
||||
__div2i_L_815F970C:
|
||||
bdnz __div2i_L_815F96E4
|
||||
L_815F970C:
|
||||
bdnz L_815F96E4
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
lwz r9, 0x8(r1)
|
||||
lwz r10, 0xc(r1)
|
||||
xor. r7, r9, r10
|
||||
beq __div2i_L_815F9734
|
||||
beq L_815F9734
|
||||
cmpwi r9, 0x0
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__div2i_L_815F9734:
|
||||
b __div2i_L_815F9740
|
||||
__div2i_L_815F9738:
|
||||
L_815F9734:
|
||||
b L_815F9740
|
||||
L_815F9738:
|
||||
li r4, 0x0
|
||||
li r3, 0x0
|
||||
__div2i_L_815F9740:
|
||||
L_815F9740:
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
#endif
|
||||
@@ -482,18 +482,18 @@ asm void __mod2u() {
|
||||
cmpwi r3, 0x0
|
||||
cntlzw r0, r3
|
||||
cntlzw r9, r4
|
||||
bne __mod2u_L_815F975C
|
||||
bne L_815F975C
|
||||
addi r0, r9, 0x20
|
||||
__mod2u_L_815F975C:
|
||||
L_815F975C:
|
||||
cmpwi r5, 0x0
|
||||
cntlzw r9, r5
|
||||
cntlzw r10, r6
|
||||
bne __mod2u_L_815F9770
|
||||
bne L_815F9770
|
||||
addi r9, r10, 0x20
|
||||
__mod2u_L_815F9770:
|
||||
L_815F9770:
|
||||
cmpw r0, r9
|
||||
subfic r10, r0, 0x40
|
||||
bgt __mod2u_L_815F9828
|
||||
bgt L_815F9828
|
||||
addi r9, r9, 0x1
|
||||
subfic r9, r9, 0x40
|
||||
add r0, r0, r9
|
||||
@@ -501,49 +501,49 @@ __mod2u_L_815F9770:
|
||||
mtctr r9
|
||||
cmpwi r9, 0x20
|
||||
subi r7, r9, 0x20
|
||||
blt __mod2u_L_815F97A8
|
||||
blt L_815F97A8
|
||||
srw r8, r3, r7
|
||||
li r7, 0x0
|
||||
b __mod2u_L_815F97BC
|
||||
__mod2u_L_815F97A8:
|
||||
b L_815F97BC
|
||||
L_815F97A8:
|
||||
srw r8, r4, r9
|
||||
subfic r7, r9, 0x20
|
||||
slw r7, r3, r7
|
||||
or r8, r8, r7
|
||||
srw r7, r3, r9
|
||||
__mod2u_L_815F97BC:
|
||||
L_815F97BC:
|
||||
cmpwi r0, 0x20
|
||||
subic r9, r0, 0x20
|
||||
blt __mod2u_L_815F97D4
|
||||
blt L_815F97D4
|
||||
slw r3, r4, r9
|
||||
li r4, 0x0
|
||||
b __mod2u_L_815F97E8
|
||||
__mod2u_L_815F97D4:
|
||||
b L_815F97E8
|
||||
L_815F97D4:
|
||||
slw r3, r3, r0
|
||||
subfic r9, r0, 0x20
|
||||
srw r9, r4, r9
|
||||
or r3, r3, r9
|
||||
slw r4, r4, r0
|
||||
__mod2u_L_815F97E8:
|
||||
L_815F97E8:
|
||||
li r10, -0x1
|
||||
addic r7, r7, 0x0
|
||||
__mod2u_L_815F97F0:
|
||||
L_815F97F0:
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
adde r8, r8, r8
|
||||
adde r7, r7, r7
|
||||
subfc r0, r6, r8
|
||||
subfe. r9, r5, r7
|
||||
blt __mod2u_L_815F9818
|
||||
blt L_815F9818
|
||||
mr r8, r0
|
||||
mr r7, r9
|
||||
addic r0, r10, 0x1
|
||||
__mod2u_L_815F9818:
|
||||
bdnz __mod2u_L_815F97F0
|
||||
L_815F9818:
|
||||
bdnz L_815F97F0
|
||||
mr r4, r8
|
||||
mr r3, r7
|
||||
blr
|
||||
__mod2u_L_815F9828:
|
||||
L_815F9828:
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
@@ -551,30 +551,30 @@ __mod2u_L_815F9828:
|
||||
asm void __mod2i() {
|
||||
#ifdef __MWERKS__
|
||||
cmpwi cr7, r3, 0x0
|
||||
bge cr7, __mod2i_L_815F983C
|
||||
bge cr7, L_815F983C
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__mod2i_L_815F983C:
|
||||
L_815F983C:
|
||||
cmpwi r5, 0x0
|
||||
bge __mod2i_L_815F984C
|
||||
bge L_815F984C
|
||||
subfic r6, r6, 0x0
|
||||
subfze r5, r5
|
||||
__mod2i_L_815F984C:
|
||||
L_815F984C:
|
||||
cmpwi r3, 0x0
|
||||
cntlzw r0, r3
|
||||
cntlzw r9, r4
|
||||
bne __mod2i_L_815F9860
|
||||
bne L_815F9860
|
||||
addi r0, r9, 0x20
|
||||
__mod2i_L_815F9860:
|
||||
L_815F9860:
|
||||
cmpwi r5, 0x0
|
||||
cntlzw r9, r5
|
||||
cntlzw r10, r6
|
||||
bne __mod2i_L_815F9874
|
||||
bne L_815F9874
|
||||
addi r9, r10, 0x20
|
||||
__mod2i_L_815F9874:
|
||||
L_815F9874:
|
||||
cmpw r0, r9
|
||||
subfic r10, r0, 0x40
|
||||
bgt __mod2i_L_815F9928
|
||||
bgt L_815F9928
|
||||
addi r9, r9, 0x1
|
||||
subfic r9, r9, 0x40
|
||||
add r0, r0, r9
|
||||
@@ -582,52 +582,52 @@ __mod2i_L_815F9874:
|
||||
mtctr r9
|
||||
cmpwi r9, 0x20
|
||||
subi r7, r9, 0x20
|
||||
blt __mod2i_L_815F98AC
|
||||
blt L_815F98AC
|
||||
srw r8, r3, r7
|
||||
li r7, 0x0
|
||||
b __mod2i_L_815F98C0
|
||||
__mod2i_L_815F98AC:
|
||||
b L_815F98C0
|
||||
L_815F98AC:
|
||||
srw r8, r4, r9
|
||||
subfic r7, r9, 0x20
|
||||
slw r7, r3, r7
|
||||
or r8, r8, r7
|
||||
srw r7, r3, r9
|
||||
__mod2i_L_815F98C0:
|
||||
L_815F98C0:
|
||||
cmpwi r0, 0x20
|
||||
subic r9, r0, 0x20
|
||||
blt __mod2i_L_815F98D8
|
||||
blt L_815F98D8
|
||||
slw r3, r4, r9
|
||||
li r4, 0x0
|
||||
b __mod2i_L_815F98EC
|
||||
__mod2i_L_815F98D8:
|
||||
b L_815F98EC
|
||||
L_815F98D8:
|
||||
slw r3, r3, r0
|
||||
subfic r9, r0, 0x20
|
||||
srw r9, r4, r9
|
||||
or r3, r3, r9
|
||||
slw r4, r4, r0
|
||||
__mod2i_L_815F98EC:
|
||||
L_815F98EC:
|
||||
li r10, -0x1
|
||||
addic r7, r7, 0x0
|
||||
__mod2i_L_815F98F4:
|
||||
L_815F98F4:
|
||||
adde r4, r4, r4
|
||||
adde r3, r3, r3
|
||||
adde r8, r8, r8
|
||||
adde r7, r7, r7
|
||||
subfc r0, r6, r8
|
||||
subfe. r9, r5, r7
|
||||
blt __mod2i_L_815F991C
|
||||
blt L_815F991C
|
||||
mr r8, r0
|
||||
mr r7, r9
|
||||
addic r0, r10, 0x1
|
||||
__mod2i_L_815F991C:
|
||||
bdnz __mod2i_L_815F98F4
|
||||
L_815F991C:
|
||||
bdnz L_815F98F4
|
||||
mr r4, r8
|
||||
mr r3, r7
|
||||
__mod2i_L_815F9928:
|
||||
bge cr7, __mod2i_L_815F9934
|
||||
L_815F9928:
|
||||
bge cr7, L_815F9934
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__mod2i_L_815F9934:
|
||||
L_815F9934:
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
@@ -668,9 +668,9 @@ asm void __shr2i() {
|
||||
slw r10, r3, r8
|
||||
or r4, r4, r10
|
||||
sraw r10, r3, r9
|
||||
ble __shr2i_L_815F99A0
|
||||
ble L_815F99A0
|
||||
or r4, r4, r10
|
||||
__shr2i_L_815F99A0:
|
||||
L_815F99A0:
|
||||
sraw r3, r3, r5
|
||||
blr
|
||||
#endif
|
||||
@@ -680,13 +680,13 @@ asm void __cvt_sll_dbl() {
|
||||
#ifdef __MWERKS__
|
||||
stwu r1, -0x10(r1)
|
||||
clrrwi. r5, r3, 31
|
||||
beq __cvt_sll_dbl_L_815F99BC
|
||||
beq L_815F99BC
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__cvt_sll_dbl_L_815F99BC:
|
||||
L_815F99BC:
|
||||
or. r7, r3, r4
|
||||
li r6, 0x0
|
||||
beq __cvt_sll_dbl_L_815F9A44
|
||||
beq L_815F9A44
|
||||
cntlzw r7, r3
|
||||
cntlzw r8, r4
|
||||
extlwi r9, r7, 5, 26
|
||||
@@ -705,22 +705,22 @@ __cvt_sll_dbl_L_815F99BC:
|
||||
clrlwi r7, r4, 21
|
||||
cmpwi r7, 0x400
|
||||
addi r6, r6, 0x43e
|
||||
blt __cvt_sll_dbl_L_815F9A2C
|
||||
bgt __cvt_sll_dbl_L_815F9A20
|
||||
blt L_815F9A2C
|
||||
bgt L_815F9A20
|
||||
rlwinm. r7, r4, 0, 20, 20
|
||||
beq __cvt_sll_dbl_L_815F9A2C
|
||||
__cvt_sll_dbl_L_815F9A20:
|
||||
beq L_815F9A2C
|
||||
L_815F9A20:
|
||||
addic r4, r4, 0x800
|
||||
addze r3, r3
|
||||
addze r6, r6
|
||||
__cvt_sll_dbl_L_815F9A2C:
|
||||
L_815F9A2C:
|
||||
rotrwi r4, r4, 11
|
||||
rlwimi r4, r3, 21, 0, 10
|
||||
extrwi r3, r3, 20, 1
|
||||
slwi r6, r6, 20
|
||||
or r3, r6, r3
|
||||
or r3, r5, r3
|
||||
__cvt_sll_dbl_L_815F9A44:
|
||||
L_815F9A44:
|
||||
stw r3, 0x8(r1)
|
||||
stw r4, 0xc(r1)
|
||||
lfd f1, 0x8(r1)
|
||||
@@ -734,7 +734,7 @@ asm void __cvt_ull_dbl() {
|
||||
stwu r1, -0x10(r1)
|
||||
or. r7, r3, r4
|
||||
li r6, 0x0
|
||||
beq __cvt_ull_dbl_L_815F9AE0
|
||||
beq L_815F9AE0
|
||||
cntlzw r7, r3
|
||||
cntlzw r8, r4
|
||||
extlwi r9, r7, 5, 26
|
||||
@@ -753,21 +753,21 @@ asm void __cvt_ull_dbl() {
|
||||
clrlwi r7, r4, 21
|
||||
cmpwi r7, 0x400
|
||||
addi r6, r6, 0x43e
|
||||
blt __cvt_ull_dbl_L_815F9ACC
|
||||
bgt __cvt_ull_dbl_L_815F9AC0
|
||||
blt L_815F9ACC
|
||||
bgt L_815F9AC0
|
||||
rlwinm. r7, r4, 0, 20, 20
|
||||
beq __cvt_ull_dbl_L_815F9ACC
|
||||
__cvt_ull_dbl_L_815F9AC0:
|
||||
beq L_815F9ACC
|
||||
L_815F9AC0:
|
||||
addic r4, r4, 0x800
|
||||
addze r3, r3
|
||||
addze r6, r6
|
||||
__cvt_ull_dbl_L_815F9ACC:
|
||||
L_815F9ACC:
|
||||
rotrwi r4, r4, 11
|
||||
rlwimi r4, r3, 21, 0, 10
|
||||
extrwi r3, r3, 20, 1
|
||||
slwi r6, r6, 20
|
||||
or r3, r6, r3
|
||||
__cvt_ull_dbl_L_815F9AE0:
|
||||
L_815F9AE0:
|
||||
stw r3, 0x8(r1)
|
||||
stw r4, 0xc(r1)
|
||||
lfd f1, 0x8(r1)
|
||||
@@ -781,7 +781,7 @@ asm void __cvt_ull_flt() {
|
||||
stwu r1, -0x10(r1)
|
||||
or. r7, r3, r4
|
||||
li r6, 0x0
|
||||
beq __cvt_ull_flt_L_815F9B7C
|
||||
beq L_815F9B7C
|
||||
cntlzw r7, r3
|
||||
cntlzw r8, r4
|
||||
extlwi r9, r7, 5, 26
|
||||
@@ -800,21 +800,21 @@ asm void __cvt_ull_flt() {
|
||||
clrlwi r7, r4, 21
|
||||
cmpwi r7, 0x400
|
||||
addi r6, r6, 0x43e
|
||||
blt __cvt_ull_flt_L_815F9B68
|
||||
bgt __cvt_ull_flt_L_815F9B5C
|
||||
blt L_815F9B68
|
||||
bgt L_815F9B5C
|
||||
rlwinm. r7, r4, 0, 20, 20
|
||||
beq __cvt_ull_flt_L_815F9B68
|
||||
__cvt_ull_flt_L_815F9B5C:
|
||||
beq L_815F9B68
|
||||
L_815F9B5C:
|
||||
addic r4, r4, 0x800
|
||||
addze r3, r3
|
||||
addze r6, r6
|
||||
__cvt_ull_flt_L_815F9B68:
|
||||
L_815F9B68:
|
||||
rotrwi r4, r4, 11
|
||||
rlwimi r4, r3, 21, 0, 10
|
||||
extrwi r3, r3, 20, 1
|
||||
slwi r6, r6, 20
|
||||
or r3, r6, r3
|
||||
__cvt_ull_flt_L_815F9B7C:
|
||||
L_815F9B7C:
|
||||
stw r3, 0x8(r1)
|
||||
stw r4, 0xc(r1)
|
||||
lfd f1, 0x8(r1)
|
||||
@@ -832,17 +832,17 @@ asm void __cvt_dbl_usll() {
|
||||
lwz r4, 0xc(r1)
|
||||
extrwi r5, r3, 11, 1
|
||||
cmplwi r5, 0x3ff
|
||||
bge __cvt_dbl_usll_L_815F9BBC
|
||||
bge L_815F9BBC
|
||||
li r3, 0x0
|
||||
li r4, 0x0
|
||||
b __cvt_dbl_usll_L_815F9C58
|
||||
__cvt_dbl_usll_L_815F9BBC:
|
||||
b L_815F9C58
|
||||
L_815F9BBC:
|
||||
mr r6, r3
|
||||
clrlwi r3, r3, 12
|
||||
oris r3, r3, 0x10
|
||||
subi r5, r5, 0x433
|
||||
cmpwi r5, 0x0
|
||||
bge __cvt_dbl_usll_L_815F9BFC
|
||||
bge L_815F9BFC
|
||||
neg r5, r5
|
||||
subfic r8, r5, 0x20
|
||||
subic r9, r5, 0x20
|
||||
@@ -852,21 +852,21 @@ __cvt_dbl_usll_L_815F9BBC:
|
||||
srw r10, r3, r9
|
||||
or r4, r4, r10
|
||||
srw r3, r3, r5
|
||||
b __cvt_dbl_usll_L_815F9C48
|
||||
__cvt_dbl_usll_L_815F9BFC:
|
||||
b L_815F9C48
|
||||
L_815F9BFC:
|
||||
cmpwi r5, 0xa
|
||||
ble+ __cvt_dbl_usll_L_815F9C28
|
||||
ble+ L_815F9C28
|
||||
clrrwi. r6, r6, 31
|
||||
beq __cvt_dbl_usll_L_815F9C18
|
||||
beq L_815F9C18
|
||||
lis r3, 0x8000
|
||||
li r4, 0x0
|
||||
b __cvt_dbl_usll_L_815F9C58
|
||||
__cvt_dbl_usll_L_815F9C18:
|
||||
b L_815F9C58
|
||||
L_815F9C18:
|
||||
lis r3, 0x7fff
|
||||
ori r3, r3, 0xffff
|
||||
li r4, -0x1
|
||||
b __cvt_dbl_usll_L_815F9C58
|
||||
__cvt_dbl_usll_L_815F9C28:
|
||||
b L_815F9C58
|
||||
L_815F9C28:
|
||||
subfic r8, r5, 0x20
|
||||
subic r9, r5, 0x20
|
||||
slw r3, r3, r5
|
||||
@@ -875,12 +875,12 @@ __cvt_dbl_usll_L_815F9C28:
|
||||
slw r10, r4, r9
|
||||
or r3, r3, r10
|
||||
slw r4, r4, r5
|
||||
__cvt_dbl_usll_L_815F9C48:
|
||||
L_815F9C48:
|
||||
clrrwi. r6, r6, 31
|
||||
beq __cvt_dbl_usll_L_815F9C58
|
||||
beq L_815F9C58
|
||||
subfic r4, r4, 0x0
|
||||
subfze r3, r3
|
||||
__cvt_dbl_usll_L_815F9C58:
|
||||
L_815F9C58:
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
#endif
|
||||
@@ -894,19 +894,19 @@ asm void __cvt_dbl_ull() {
|
||||
lwz r4, 0xc(r1)
|
||||
extrwi r5, r3, 11, 1
|
||||
cmplwi r5, 0x3ff
|
||||
bge __cvt_dbl_ull_L_815F9C88
|
||||
__cvt_dbl_ull_L_815F9C7C:
|
||||
bge L_815F9C88
|
||||
L_815F9C7C:
|
||||
li r3, 0x0
|
||||
li r4, 0x0
|
||||
b __cvt_dbl_ull_L_815F9D00
|
||||
__cvt_dbl_ull_L_815F9C88:
|
||||
b L_815F9D00
|
||||
L_815F9C88:
|
||||
clrrwi. r6, r3, 31
|
||||
bne __cvt_dbl_ull_L_815F9C7C
|
||||
bne L_815F9C7C
|
||||
clrlwi r3, r3, 12
|
||||
oris r3, r3, 0x10
|
||||
subi r5, r5, 0x433
|
||||
cmpwi r5, 0x0
|
||||
bge __cvt_dbl_ull_L_815F9CCC
|
||||
bge L_815F9CCC
|
||||
neg r5, r5
|
||||
subfic r8, r5, 0x20
|
||||
subic r9, r5, 0x20
|
||||
@@ -916,14 +916,14 @@ __cvt_dbl_ull_L_815F9C88:
|
||||
srw r10, r3, r9
|
||||
or r4, r4, r10
|
||||
srw r3, r3, r5
|
||||
b __cvt_dbl_ull_L_815F9D00
|
||||
__cvt_dbl_ull_L_815F9CCC:
|
||||
b L_815F9D00
|
||||
L_815F9CCC:
|
||||
cmpwi r5, 0xb
|
||||
ble+ __cvt_dbl_ull_L_815F9CE0
|
||||
ble+ L_815F9CE0
|
||||
li r3, -0x1
|
||||
li r4, -0x1
|
||||
b __cvt_dbl_ull_L_815F9D00
|
||||
__cvt_dbl_ull_L_815F9CE0:
|
||||
b L_815F9D00
|
||||
L_815F9CE0:
|
||||
subfic r8, r5, 0x20
|
||||
subic r9, r5, 0x20
|
||||
slw r3, r3, r5
|
||||
@@ -932,7 +932,7 @@ __cvt_dbl_ull_L_815F9CE0:
|
||||
slw r10, r4, r9
|
||||
or r3, r3, r10
|
||||
slw r4, r4, r5
|
||||
__cvt_dbl_ull_L_815F9D00:
|
||||
L_815F9D00:
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C" void updateFromReceiver__Q29textinput13CommandSenderFUlPv();
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
typedef void (*KeyboardDataFunction)();
|
||||
extern "C" KeyboardDataFunction const scHwKeyboardConvertWCCodeJumpTable[0x3f] = {
|
||||
extern "C" KeyboardDataFunction const jumptable_81668EF8[0x3f] = {
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000158),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001d8),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
@@ -737,9 +737,9 @@ const u8 controlKeys[] = {
|
||||
addi r0, r31, -0x21
|
||||
cmplwi r0, 0x3e
|
||||
bgt convertWCCode_HWKeyboard_L1
|
||||
lis r3, scHwKeyboardConvertWCCodeJumpTable@ha
|
||||
lis r3, jumptable_81668EF8@ha
|
||||
slwi r0, r0, 2
|
||||
addi r3, r3, scHwKeyboardConvertWCCodeJumpTable@l
|
||||
addi r3, r3, jumptable_81668EF8@l
|
||||
lwzx r3, r3, r0
|
||||
mtctr r3
|
||||
bctr
|
||||
|
||||
@@ -154,7 +154,7 @@ extern "C" const char scT_title_textCHN[];
|
||||
extern "C" const char lbl_816973A4[];
|
||||
extern "C" const char lbl_816973AC[];
|
||||
#pragma pop
|
||||
extern "C" const f32 scInputFormZeroF;
|
||||
extern "C" const f32 lbl_81694D28;
|
||||
extern "C" void _savegpr_20();
|
||||
extern "C" void _restgpr_20();
|
||||
extern "C" void _savegpr_27();
|
||||
@@ -386,31 +386,31 @@ extern "C" const wchar_t pppURLCheck[2][10] = {L"http://", L"https://"};
|
||||
|
||||
#pragma pop
|
||||
|
||||
extern "C" const f32 scInputFormZeroF = 0.0f;
|
||||
extern "C" const f32 scInputForm640F = 640.0f;
|
||||
extern "C" const f64 scInputFormF32ConvertMagic = 4503601774854144.0;
|
||||
extern "C" const f32 scInputFormOneF = 1.0f;
|
||||
extern "C" const f32 scInputFormHalfF = 0.5f;
|
||||
extern "C" const f32 scInputFormDegToFIdxF = 0.7111111f;
|
||||
extern "C" const f32 scInputForm150F = 150.0f;
|
||||
extern "C" const f32 scInputForm30F = 30.0f;
|
||||
extern "C" const f32 scInputForm50F = 50.0f;
|
||||
extern "C" const f32 scInputForm10F = 10.0f;
|
||||
extern "C" const f32 scInputForm52F = 52.0f;
|
||||
extern "C" const f32 scInputFormTwoF = 2.0f;
|
||||
extern "C" const f32 scInputForm140F = 140.0f;
|
||||
extern "C" const f32 scInputForm90F = 90.0f;
|
||||
extern "C" const f32 scInputForm253F = 253.0f;
|
||||
extern "C" const f32 scInputForm20F = 20.0f;
|
||||
extern "C" const u8 scInputFormColorRU8 = 0xff;
|
||||
extern "C" const u8 scInputFormColorGU8 = 0x32;
|
||||
extern "C" const u8 scInputFormColorBU8 = 0x32;
|
||||
extern "C" const u8 scInputFormColorAU8 = 0;
|
||||
extern "C" const f32 scInputForm255F = 255.0f;
|
||||
extern "C" const f32 scInputForm127F = 127.0f;
|
||||
extern "C" const f32 scInputForm14592F = 14592.0f;
|
||||
extern "C" const f64 scInputFormF64ConvertMagic = 4503599627370496.0;
|
||||
extern "C" const f32 scInputForm15F = 15.0f;
|
||||
extern "C" const f32 lbl_81694D28 = 0.0f;
|
||||
extern "C" const f32 lbl_81694D2C = 640.0f;
|
||||
extern "C" const f64 lbl_81694D30 = 4503601774854144.0;
|
||||
extern "C" const f32 lbl_81694D38 = 1.0f;
|
||||
extern "C" const f32 lbl_81694D3C = 0.5f;
|
||||
extern "C" const f32 lbl_81694D40 = 0.7111111f;
|
||||
extern "C" const f32 lbl_81694D44 = 150.0f;
|
||||
extern "C" const f32 lbl_81694D48 = 30.0f;
|
||||
extern "C" const f32 lbl_81694D4C = 50.0f;
|
||||
extern "C" const f32 lbl_81694D50 = 10.0f;
|
||||
extern "C" const f32 lbl_81694D54 = 52.0f;
|
||||
extern "C" const f32 lbl_81694D58 = 2.0f;
|
||||
extern "C" const f32 lbl_81694D5C = 140.0f;
|
||||
extern "C" const f32 lbl_81694D60 = 90.0f;
|
||||
extern "C" const f32 lbl_81694D64 = 253.0f;
|
||||
extern "C" const f32 lbl_81694D68 = 20.0f;
|
||||
extern "C" const u8 lbl_81694D6C = 0xff;
|
||||
extern "C" const u8 lbl_81694D6D = 0x32;
|
||||
extern "C" const u8 lbl_81694D6E = 0x32;
|
||||
extern "C" const u8 lbl_81694D6F = 0;
|
||||
extern "C" const f32 lbl_81694D70 = 255.0f;
|
||||
extern "C" const f32 lbl_81694D74 = 127.0f;
|
||||
extern "C" const f32 lbl_81694D78 = 14592.0f;
|
||||
extern "C" const f64 lbl_81694D80 = 4503599627370496.0;
|
||||
extern "C" const f32 lbl_81694D88 = 15.0f;
|
||||
f32 sfColorPhase;
|
||||
|
||||
bool mbHyphen = true;
|
||||
@@ -509,13 +509,13 @@ void Base::setLanguage(Language language) {
|
||||
case UK:
|
||||
setPredictMode(PM_En);
|
||||
break;
|
||||
case DE:
|
||||
case FR:
|
||||
setPredictMode(PM_De);
|
||||
break;
|
||||
case IT:
|
||||
case DE:
|
||||
setPredictMode(PM_It);
|
||||
break;
|
||||
case NL:
|
||||
case IT:
|
||||
setPredictMode(PM_Nl);
|
||||
break;
|
||||
case SP:
|
||||
@@ -525,7 +525,7 @@ void Base::setLanguage(Language language) {
|
||||
setPredictMode(PM_USSp);
|
||||
}
|
||||
break;
|
||||
case FR:
|
||||
case NL:
|
||||
if (meDestination == DST_EU) {
|
||||
setPredictMode(PM_Fr);
|
||||
} else {
|
||||
@@ -3386,7 +3386,7 @@ void Base::drawCursor(f32 x, f32 y) {
|
||||
f32 opacity = static_cast<u32>(muGlobalAlpha) / 255.0f;
|
||||
mfCursorX = x;
|
||||
mfCursorY = y;
|
||||
GXColor color = {scInputFormColorRU8, scInputFormColorGU8, scInputFormColorBU8, scInputFormColorAU8};
|
||||
GXColor color = {lbl_81694D6C, lbl_81694D6D, lbl_81694D6E, lbl_81694D6F};
|
||||
f32 pulse = nw4r::math::SinFIdx(0.7111111f * muCursorTimer);
|
||||
color.a = static_cast<s32>(opacity * (127.0f + 127.0f * pulse));
|
||||
f32 width = mfViewWidth - mfViewX;
|
||||
@@ -3470,7 +3470,7 @@ void NormalButtonAnmPane::onAnmEvent(AnmPaneEvent event) {
|
||||
changeAnimation(ANM_Pushed);
|
||||
}
|
||||
switch (meState) {
|
||||
case ANM_FadeIn:
|
||||
case ANM_FocusOut:
|
||||
if (event == PE_4) changeAnimation(ANM_Normal);
|
||||
if (event == PE_1) changeAnimation(ANM_FocusIn);
|
||||
break;
|
||||
@@ -3484,7 +3484,7 @@ void NormalButtonAnmPane::onAnmEvent(AnmPaneEvent event) {
|
||||
case ANM_RollOver:
|
||||
if (event == PE_2) changeAnimation(ANM_FocusOut);
|
||||
break;
|
||||
case ANM_FocusOut:
|
||||
case ANM_FadeIn:
|
||||
if (event == PE_4) changeAnimation(ANM_Normal);
|
||||
if (event == PE_1) changeAnimation(ANM_FocusIn);
|
||||
break;
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace ipl {
|
||||
extern "C" void List_GetNth__Q24nw4r2utFPCQ34nw4r2ut4ListUs();
|
||||
extern "C" void getChannelBasePane__Q33ipl5scene13ChannelSelectFi();
|
||||
extern "C" void initPane__Q33ipl3gui11PaneManagerFPQ34nw4r3lyt4Pane();
|
||||
extern "C" void* updateDiskState_jumptable[];
|
||||
extern "C" void* jumptable_8164DE80[];
|
||||
extern "C" void getCurrentChannel__Q33ipl7channel7ManagerFPiPi();
|
||||
extern "C" void calcNormalRestart__Q33ipl5scene13ChannelSelectFv();
|
||||
extern "C" void _savegpr_28();
|
||||
@@ -857,7 +857,7 @@ namespace ipl {
|
||||
|
||||
extern "C" char scPaneName_N_GCIcon[] = "N_GCIcon";
|
||||
extern "C" char scPaneName_N_DiscUpdateIcon[] = "N_DiscUpdateIcon";
|
||||
extern "C" void* updateDiskState_jumptable[7] = {
|
||||
extern "C" void* jumptable_8164DE80[7] = {
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x4C),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x21C),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x284),
|
||||
@@ -1346,18 +1346,18 @@ namespace ipl {
|
||||
lwz r4, 0xa8(r28)
|
||||
cmplwi r0, 0x6
|
||||
lwz r27, 0x4(r4)
|
||||
bgt updateDiskState_done
|
||||
lis r4, updateDiskState_jumptable@ha
|
||||
bgt updateDiskState_813AD2C8
|
||||
lis r4, jumptable_8164DE80@ha
|
||||
slwi r0, r0, 2
|
||||
addi r4, r4, updateDiskState_jumptable@l
|
||||
addi r4, r4, jumptable_8164DE80@l
|
||||
lwzx r4, r4, r0
|
||||
mtctr r4
|
||||
bctr
|
||||
updateDiskState_case0:
|
||||
updateDiskState_813ACF94:
|
||||
lwz r4, 0xa4(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
lwz r3, 0x94(r3)
|
||||
lis r29, scPaneName_N_GCIcon@ha
|
||||
addi r4, r29, scPaneName_N_GCIcon@l
|
||||
@@ -1381,7 +1381,7 @@ namespace ipl {
|
||||
li r4, 0x0
|
||||
bl SetVisible__Q34nw4r3lyt4PaneFb
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case0_diskState3
|
||||
bne updateDiskState_813AD078
|
||||
lwz r4, 0xc0(r31)
|
||||
lwz r3, 0x84(r28)
|
||||
subi r4, r4, 0xf
|
||||
@@ -1391,32 +1391,32 @@ namespace ipl {
|
||||
lwz r0, 0xc0(r31)
|
||||
mr r27, r3
|
||||
cmpwi r0, 0xf
|
||||
bne updateDiskState_case0_afterThumb
|
||||
bne updateDiskState_813AD03C
|
||||
lwz r3, 0xa8(r28)
|
||||
addi r4, r31, 0xf8
|
||||
addi r5, r31, 0xfc
|
||||
bl getDiskInfo__Q33ipl3bs27ManagerFPPcPPc
|
||||
updateDiskState_case0_afterThumb:
|
||||
updateDiskState_813AD03C:
|
||||
cmpwi r27, 0x0
|
||||
beq updateDiskState_case0_afterLayout
|
||||
beq updateDiskState_813AD050
|
||||
lwz r3, 0x90(r31)
|
||||
mr r4, r27
|
||||
bl createDiskLayout__Q33ipl5scene10ChannelObjFPv
|
||||
updateDiskState_case0_afterLayout:
|
||||
updateDiskState_813AD050:
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_afterDiskIn
|
||||
bne updateDiskState_813AD064
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_afterDiskIn:
|
||||
updateDiskState_813AD064:
|
||||
li r3, 0x0
|
||||
li r0, 0x1
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case0_diskState3:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD078:
|
||||
cmpwi r27, 0x3
|
||||
bne updateDiskState_case0_diskState6
|
||||
bne updateDiskState_813AD134
|
||||
lwz r3, 0x84(r28)
|
||||
li r0, 0x0
|
||||
addi r4, r29, scPaneName_N_GCIcon@l
|
||||
@@ -1444,7 +1444,7 @@ namespace ipl {
|
||||
bl setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object
|
||||
lwz r3, 0x98(r31)
|
||||
cmpwi r3, 0x0
|
||||
beq updateDiskState_case0_state3_afterAnim
|
||||
beq updateDiskState_813AD10C
|
||||
li r0, 0x2
|
||||
stw r0, 0x18(r3)
|
||||
lwz r28, 0x98(r31)
|
||||
@@ -1452,45 +1452,45 @@ namespace ipl {
|
||||
bl initFrame__Q33ipl7utility15FrameControllerFv
|
||||
li r0, 0x1
|
||||
stw r0, 0x14(r28)
|
||||
updateDiskState_case0_state3_afterAnim:
|
||||
updateDiskState_813AD10C:
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_state3_afterDiskIn
|
||||
bne updateDiskState_813AD120
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_state3_afterDiskIn:
|
||||
updateDiskState_813AD120:
|
||||
li r3, 0x0
|
||||
li r0, 0x1
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case0_diskState6:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD134:
|
||||
cmpwi r27, 0x6
|
||||
bne updateDiskState_done
|
||||
bne updateDiskState_813AD2C8
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_state6_afterDiskIn
|
||||
bne updateDiskState_813AD150
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_state6_afterDiskIn:
|
||||
updateDiskState_813AD150:
|
||||
li r3, 0x0
|
||||
li r0, 0x4
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case1:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD164:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
lwz r3, 0x90(r3)
|
||||
bl resetDiskTitleName__Q33ipl5scene10ChannelObjFv
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case1_setState3
|
||||
bne updateDiskState_813AD1C0
|
||||
lwz r3, 0x90(r31)
|
||||
lwz r3, 0x34(r3)
|
||||
cmpwi r3, 0x0
|
||||
beq updateDiskState_case1_setState2
|
||||
beq updateDiskState_813AD1B4
|
||||
li r0, 0x2
|
||||
stw r0, 0x18(r3)
|
||||
lwz r3, 0x90(r31)
|
||||
@@ -1499,85 +1499,85 @@ namespace ipl {
|
||||
bl initFrame__Q33ipl7utility15FrameControllerFv
|
||||
li r0, 0x1
|
||||
stw r0, 0x14(r27)
|
||||
updateDiskState_case1_setState2:
|
||||
updateDiskState_813AD1B4:
|
||||
li r0, 0x2
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case1_setState3:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD1C0:
|
||||
li r0, 0x3
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case2:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD1CC:
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case2_doOut
|
||||
bne updateDiskState_813AD1E4
|
||||
lwz r4, 0x84(r28)
|
||||
lbz r0, 0x1b81(r4)
|
||||
cmpwi r0, 0x0
|
||||
beq updateDiskState_done
|
||||
updateDiskState_case2_doOut:
|
||||
beq updateDiskState_813AD2C8
|
||||
updateDiskState_813AD1E4:
|
||||
lwz r3, 0xa0(r3)
|
||||
lwz r0, 0x14(r3)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
mr r3, r31
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case3:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD210:
|
||||
cmpwi r27, 0x3
|
||||
bne updateDiskState_case3_doOut
|
||||
bne updateDiskState_813AD228
|
||||
lwz r4, 0x84(r28)
|
||||
lbz r0, 0x1b81(r4)
|
||||
cmpwi r0, 0x0
|
||||
beq updateDiskState_done
|
||||
updateDiskState_case3_doOut:
|
||||
beq updateDiskState_813AD2C8
|
||||
updateDiskState_813AD228:
|
||||
lwz r3, 0xa0(r3)
|
||||
lwz r0, 0x14(r3)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
mr r3, r31
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case4:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD254:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
li r0, 0x5
|
||||
stw r0, 0xf0(r3)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case5:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD270:
|
||||
cmpwi r27, 0x6
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
lwz r4, 0xa0(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case6:
|
||||
b updateDiskState_813AD2C8
|
||||
updateDiskState_813AD2A0:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
beq updateDiskState_813AD2C8
|
||||
lwz r3, 0x90(r3)
|
||||
bl destroyDiskLayout__Q33ipl5scene10ChannelObjFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl resetDiskTitleName__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x0
|
||||
stw r0, 0xf0(r31)
|
||||
updateDiskState_done:
|
||||
updateDiskState_813AD2C8:
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_27
|
||||
lwz r0, 0x24(r1)
|
||||
|
||||
@@ -749,7 +749,7 @@ void GCWindow::onMemEvent(long event, u8 cardState) {
|
||||
break;
|
||||
}
|
||||
goto process_complete;
|
||||
default:
|
||||
case 0x15:
|
||||
return;
|
||||
|
||||
process_complete:
|
||||
@@ -758,18 +758,6 @@ void GCWindow::onMemEvent(long event, u8 cardState) {
|
||||
show_button_ok();
|
||||
mState = 0xe;
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 0xB:
|
||||
case 0xD:
|
||||
case 0x10:
|
||||
case 0x15:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -512,25 +512,25 @@ namespace ipl {
|
||||
case 12:
|
||||
onDialogState12();
|
||||
break;
|
||||
case 19:
|
||||
case 13:
|
||||
onDialogState13();
|
||||
break;
|
||||
case 13:
|
||||
case 14:
|
||||
onDialogState14();
|
||||
break;
|
||||
case 14:
|
||||
case 15:
|
||||
onDialogState15();
|
||||
break;
|
||||
case 15:
|
||||
case 16:
|
||||
onDialogState16();
|
||||
break;
|
||||
case 16:
|
||||
case 17:
|
||||
onDialogState17();
|
||||
break;
|
||||
case 17:
|
||||
case 18:
|
||||
onDialogState18();
|
||||
break;
|
||||
case 18:
|
||||
case 19:
|
||||
onDialogState19();
|
||||
break;
|
||||
case 20:
|
||||
|
||||
@@ -49,42 +49,42 @@ namespace ipl {
|
||||
};
|
||||
|
||||
static const f32 scThumbnailOffsets[][2] = {{64.0f, 48.0f}, {85.0f, 48.0f}};
|
||||
extern "C" void iplSDChannelObj_activateIfIdle(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setHeaps(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
extern "C" void iplSDChannelObj_813E3104(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E311C(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
EGG::ExpHeap* secondHeap) NO_INLINE;
|
||||
extern "C" void* iplSDChannelObj_getOrAllocThumbnailData(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setPane(SDChannelObj* channel, nw4r::lyt::Pane* pane) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setLayoutFile(SDChannelObj* channel, nand::LayoutFile* layoutFile) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_calc(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_drawBase(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_drawPage(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_drawDialog(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" bool iplSDChannelObj_hasAppMeta(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_startAppear(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_startDisappear(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setSelected(SDChannelObj* channel, bool request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_playPageHide(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_resetPageAnim(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_resetDialogAnim(SDChannelObj* channel, bool request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_applyLanguageGroups(const layout::Object* layout) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_createBaseLayout(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" f32 iplSDChannelObj_createIconLayout(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" f32 iplSDChannelObj_createMenuLayout(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_syncLayoutsToPane(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_createPageLayout(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setPageTranslate(SDChannelObj* channel, const nw4r::math::VEC3& vec) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setPageAnim(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_updatePageAnim(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_playPageAnimator(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_createDialogLayout(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" const wchar_t* iplSDChannelObj_getLocalizedName(SDChannelObj* channel, int index) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setBalloonText(SDChannelObj* channel, const wchar_t* text) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_positionDialog(SDChannelObj* channel, const nw4r::math::VEC3& vec) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_setDialogAnim(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_updateDialogAnim(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_findNewMessageGroup(SDChannelObj* channel, layout::Object* layout) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_updateNewMessage(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" BOOL iplSDChannelObj_checkNewMessage(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void* iplSDChannelObj_813E3128(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3178(SDChannelObj* channel, nw4r::lyt::Pane* pane) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3180(SDChannelObj* channel, nand::LayoutFile* layoutFile) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E322C(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E32C8(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3304(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E330C(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" bool iplSDChannelObj_813E3330(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3354(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E33EC(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3480(SDChannelObj* channel, bool request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E34E0(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E34E8(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3534(SDChannelObj* channel, bool request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3580(const layout::Object* layout) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3858(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" f32 iplSDChannelObj_813E3920(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" f32 iplSDChannelObj_813E3A84(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3B1C(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3BA0(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3C58(SDChannelObj* channel, const nw4r::math::VEC3& vec) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3C9C(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3E38(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3F28(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E3F74(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" const wchar_t* iplSDChannelObj_813E4060(SDChannelObj* channel, int index) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E413C(SDChannelObj* channel, const wchar_t* text) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E4410(SDChannelObj* channel, const nw4r::math::VEC3& vec) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E4558(SDChannelObj* channel, int request) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E4704(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E481C(SDChannelObj* channel, layout::Object* layout) NO_INLINE;
|
||||
extern "C" void iplSDChannelObj_813E49A8(SDChannelObj* channel) NO_INLINE;
|
||||
extern "C" BOOL iplSDChannelObj_813E4A54(SDChannelObj* channel) NO_INLINE;
|
||||
|
||||
SDChannelObj::SDChannelObj(EGG::Heap* heap, int page, int index)
|
||||
: mpHeap(heap), mpDialogHeap(NULL), mpChannelHeap(NULL), mState(0), mPage(page), mIndex(index),
|
||||
@@ -112,42 +112,42 @@ namespace ipl {
|
||||
if (mpDialogLayout != NULL)
|
||||
delete mpDialogLayout;
|
||||
}
|
||||
extern "C" void iplSDChannelObj_activateIfIdle(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E3104(SDChannelObj* channel) {
|
||||
if (channel->mState == 0)
|
||||
channel->mState = 2;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setHeaps(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
extern "C" void iplSDChannelObj_813E311C(SDChannelObj* channel, EGG::ExpHeap* firstHeap,
|
||||
EGG::ExpHeap* secondHeap) {
|
||||
channel->mpDialogHeap = firstHeap;
|
||||
channel->mpChannelHeap = secondHeap;
|
||||
}
|
||||
|
||||
extern "C" void* iplSDChannelObj_getOrAllocThumbnailData(SDChannelObj* channel) {
|
||||
extern "C" void* iplSDChannelObj_813E3128(SDChannelObj* channel) {
|
||||
if (channel->mpThumbnailData == NULL)
|
||||
channel->mpThumbnailData = new (channel->mpHeap, 32) u8[0x19000];
|
||||
return channel->mpThumbnailData;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setPane(SDChannelObj* channel, nw4r::lyt::Pane* pane) {
|
||||
extern "C" void iplSDChannelObj_813E3178(SDChannelObj* channel, nw4r::lyt::Pane* pane) {
|
||||
channel->mpPane = pane;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setLayoutFile(SDChannelObj* channel, nand::LayoutFile* layoutFile) {
|
||||
extern "C" void iplSDChannelObj_813E3180(SDChannelObj* channel, nand::LayoutFile* layoutFile) {
|
||||
if (!SDChannelSelect::isChannelReady(channel)) {
|
||||
channel->mpLayoutFile = layoutFile;
|
||||
if (channel->mpPageLayout == NULL)
|
||||
iplSDChannelObj_createPageLayout(channel);
|
||||
iplSDChannelObj_813E3BA0(channel);
|
||||
if (channel->mpDialogLayout == NULL)
|
||||
iplSDChannelObj_createDialogLayout(channel);
|
||||
iplSDChannelObj_813E3F74(channel);
|
||||
if (channel->mState == 2 || channel->mState == 1 && channel->mpPaneAnimator->isFinished()) {
|
||||
iplSDChannelObj_createBaseLayout(channel);
|
||||
iplSDChannelObj_813E3858(channel);
|
||||
channel->mState = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_calc(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E322C(SDChannelObj* channel) {
|
||||
switch (channel->mState) {
|
||||
case 0:
|
||||
channel->mState = 2;
|
||||
@@ -157,25 +157,25 @@ namespace ipl {
|
||||
break;
|
||||
channel->mState = 2;
|
||||
case 2:
|
||||
iplSDChannelObj_createBaseLayout(channel);
|
||||
iplSDChannelObj_813E3858(channel);
|
||||
channel->mState = 3;
|
||||
break;
|
||||
case 3:
|
||||
iplSDChannelObj_syncLayoutsToPane(channel);
|
||||
iplSDChannelObj_813E3B1C(channel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_drawBase(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E32C8(SDChannelObj* channel) {
|
||||
if (SDChannelSelect::isChannelReady(channel))
|
||||
channel->mpBaseLayout->draw();
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_drawPage(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E3304(SDChannelObj* channel) {
|
||||
channel->mpPageLayout->draw();
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_drawDialog(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E330C(SDChannelObj* channel) {
|
||||
if (channel->mpDialogLayout != NULL)
|
||||
channel->mpDialogLayout->draw();
|
||||
}
|
||||
@@ -184,14 +184,14 @@ namespace ipl {
|
||||
return (nw4r::math::VEC3&)mpBaseLayout->GetRootPane()->GetTranslate();
|
||||
}
|
||||
|
||||
extern "C" bool iplSDChannelObj_hasAppMeta(SDChannelObj* channel) {
|
||||
extern "C" bool iplSDChannelObj_813E3330(SDChannelObj* channel) {
|
||||
if (channel->mStateFlags == 0 || channel->mStateFlags == 3)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_startAppear(SDChannelObj* channel, int request) {
|
||||
extern "C" void iplSDChannelObj_813E3354(SDChannelObj* channel, int request) {
|
||||
if (request & 0x10000U) {
|
||||
channel->mAnimationState = 0;
|
||||
} else if (request & 0x20000U) {
|
||||
@@ -201,14 +201,14 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (!(request & 1)) {
|
||||
iplSDChannelObj_setPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E3C9C(channel, 1);
|
||||
}
|
||||
if (!(request & 2)) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 1);
|
||||
iplSDChannelObj_813E4558(channel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_startDisappear(SDChannelObj* channel, int request) {
|
||||
extern "C" void iplSDChannelObj_813E33EC(SDChannelObj* channel, int request) {
|
||||
if (request & 0x10000U) {
|
||||
channel->mAnimationState = 0;
|
||||
} else if (request & 0x20000U) {
|
||||
@@ -218,44 +218,44 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (!(request & 1)) {
|
||||
iplSDChannelObj_setPageAnim(channel, 3);
|
||||
iplSDChannelObj_813E3C9C(channel, 3);
|
||||
}
|
||||
if (!(request & 2)) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 4);
|
||||
iplSDChannelObj_813E4558(channel, 4);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setSelected(SDChannelObj* channel, bool request) {
|
||||
extern "C" void iplSDChannelObj_813E3480(SDChannelObj* channel, bool request) {
|
||||
if (request) {
|
||||
iplSDChannelObj_setPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E3C9C(channel, 1);
|
||||
channel->mAnimationState = 1;
|
||||
} else {
|
||||
iplSDChannelObj_setPageAnim(channel, 0);
|
||||
iplSDChannelObj_813E3C9C(channel, 0);
|
||||
channel->mAnimationState = 0;
|
||||
}
|
||||
|
||||
iplSDChannelObj_setDialogAnim(channel, 0);
|
||||
iplSDChannelObj_813E4558(channel, 0);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_playPageHide(SDChannelObj* channel) {
|
||||
iplSDChannelObj_setPageAnim(channel, 4);
|
||||
extern "C" void iplSDChannelObj_813E34E0(SDChannelObj* channel) {
|
||||
iplSDChannelObj_813E3C9C(channel, 4);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_resetPageAnim(SDChannelObj* channel, int request) {
|
||||
iplSDChannelObj_setPageAnim(channel, 0);
|
||||
extern "C" void iplSDChannelObj_813E34E8(SDChannelObj* channel, int request) {
|
||||
iplSDChannelObj_813E3C9C(channel, 0);
|
||||
if (request) {
|
||||
channel->mAnimationState = 0;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_resetDialogAnim(SDChannelObj* channel, bool request) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 0);
|
||||
extern "C" void iplSDChannelObj_813E3534(SDChannelObj* channel, bool request) {
|
||||
iplSDChannelObj_813E4558(channel, 0);
|
||||
if (request) {
|
||||
channel->mAnimationState = 0;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_applyLanguageGroups(const layout::Object* layout) {
|
||||
extern "C" void iplSDChannelObj_813E3580(const layout::Object* layout) {
|
||||
int lang = System::getLanguage();
|
||||
const char* langGroup = scLangGroups[lang];
|
||||
char availableLanguages[10][4] = {};
|
||||
@@ -319,18 +319,18 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_createBaseLayout(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E3858(SDChannelObj* channel) {
|
||||
bool adjust = false;
|
||||
if (channel->mpDialogLayout == NULL)
|
||||
iplSDChannelObj_createDialogLayout(channel);
|
||||
iplSDChannelObj_813E3F74(channel);
|
||||
f32 frame;
|
||||
if (iplSDChannelObj_hasAppMeta(channel))
|
||||
frame = iplSDChannelObj_createIconLayout(channel);
|
||||
if (iplSDChannelObj_813E3330(channel))
|
||||
frame = iplSDChannelObj_813E3920(channel);
|
||||
else {
|
||||
frame = iplSDChannelObj_createMenuLayout(channel);
|
||||
frame = iplSDChannelObj_813E3A84(channel);
|
||||
adjust = true;
|
||||
}
|
||||
iplSDChannelObj_syncLayoutsToPane(channel);
|
||||
iplSDChannelObj_813E3B1C(channel);
|
||||
if (channel->mpBaseAnimator != NULL)
|
||||
channel->mpBaseAnimator->play();
|
||||
channel->mpBaseLayout->finishBinding();
|
||||
@@ -340,11 +340,11 @@ namespace ipl {
|
||||
channel->mpBaseLayout->adjustHeap();
|
||||
}
|
||||
|
||||
extern "C" f32 iplSDChannelObj_createIconLayout(SDChannelObj* channel) {
|
||||
extern "C" f32 iplSDChannelObj_813E3920(SDChannelObj* channel) {
|
||||
f32 frame = 0.0f;
|
||||
channel->mpBaseLayout =
|
||||
layout::Object::create(channel->mpHeap, 0x8000, channel->mpThumbnailData, "arc", "icon.brlyt");
|
||||
iplSDChannelObj_applyLanguageGroups(channel->mpBaseLayout);
|
||||
iplSDChannelObj_813E3580(channel->mpBaseLayout);
|
||||
if (channel->mpBaseLayout->searchFile("icon.brlan"))
|
||||
channel->mpBaseAnimator = channel->mpBaseLayout->bind("icon.brlan");
|
||||
else if (channel->mpBaseLayout->searchFile("icon_Whole.brlan"))
|
||||
@@ -357,30 +357,30 @@ namespace ipl {
|
||||
frame = minimum + (System::getRndm()->get_u16() % (u16)(maximum - minimum));
|
||||
}
|
||||
if (channel->mStateFlags == 0) {
|
||||
iplSDChannelObj_findNewMessageGroup(channel, channel->mpBaseLayout);
|
||||
iplSDChannelObj_813E481C(channel, channel->mpBaseLayout);
|
||||
channel->mNewMessageState = 1;
|
||||
}
|
||||
return frame;
|
||||
}
|
||||
|
||||
extern "C" f32 iplSDChannelObj_createMenuLayout(SDChannelObj* channel) {
|
||||
extern "C" f32 iplSDChannelObj_813E3A84(SDChannelObj* channel) {
|
||||
channel->mpBaseLayout =
|
||||
layout::Object::create(channel->mpHeap, 0x8000, channel->mpLayoutFile, "arc", "mn_SdcardMenu_d.brlyt");
|
||||
channel->mpBaseAnimator = channel->mpBaseLayout->bind("mn_SdcardMenu_d.brlan");
|
||||
return System::getRndm()->get_u16() % 2000;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_syncLayoutsToPane(SDChannelObj* channel) {
|
||||
iplSDChannelObj_updateNewMessage(channel);
|
||||
extern "C" void iplSDChannelObj_813E3B1C(SDChannelObj* channel) {
|
||||
iplSDChannelObj_813E49A8(channel);
|
||||
nw4r::math::VEC3 position(0, 0, 0);
|
||||
MTXMultVec(channel->mpPane->GetGlobalMtx(), position, position);
|
||||
channel->mpBaseLayout->GetRootPane()->SetTranslate(position);
|
||||
channel->mpBaseLayout->calc();
|
||||
iplSDChannelObj_setPageTranslate(channel, position);
|
||||
iplSDChannelObj_positionDialog(channel, position);
|
||||
iplSDChannelObj_813E3C58(channel, position);
|
||||
iplSDChannelObj_813E4410(channel, position);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_createPageLayout(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E3BA0(SDChannelObj* channel) {
|
||||
channel->mpPageLayout = new (channel->mpDialogHeap, 4)
|
||||
layout::Object(channel->mpDialogHeap, channel->mpLayoutFile, "arc", "my_IplTop_d.brlyt");
|
||||
|
||||
@@ -388,17 +388,17 @@ namespace ipl {
|
||||
channel->mpPageAnimators[i] = channel->mpPageLayout->bind(scCursorAnims[i], scCursur, false);
|
||||
}
|
||||
|
||||
iplSDChannelObj_setPageAnim(channel, 0);
|
||||
iplSDChannelObj_813E3C9C(channel, 0);
|
||||
channel->mpPageLayout->finishBinding();
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setPageTranslate(SDChannelObj* channel, const nw4r::math::VEC3& vec) {
|
||||
extern "C" void iplSDChannelObj_813E3C58(SDChannelObj* channel, const nw4r::math::VEC3& vec) {
|
||||
channel->mpPageLayout->GetRootPane()->SetTranslate(vec);
|
||||
iplSDChannelObj_updatePageAnim(channel);
|
||||
iplSDChannelObj_813E3E38(channel);
|
||||
channel->mpPageLayout->calc();
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setPageAnim(SDChannelObj* channel, int request) {
|
||||
extern "C" void iplSDChannelObj_813E3C9C(SDChannelObj* channel, int request) {
|
||||
if (request == 0) {
|
||||
channel->mPageAnimation = 0;
|
||||
channel->mPageAnimationFrame = 0;
|
||||
@@ -413,14 +413,14 @@ namespace ipl {
|
||||
channel->mPageAnimation = 4;
|
||||
channel->mPageAnimationFrame = 0;
|
||||
channel->mpPageLayout->GetRootPane()->SetVisible(true);
|
||||
iplSDChannelObj_playPageAnimator(channel, 2);
|
||||
iplSDChannelObj_813E3F28(channel, 2);
|
||||
} else {
|
||||
switch (channel->mPageAnimation) {
|
||||
case 0: {
|
||||
if (request == 1) {
|
||||
channel->mPageAnimation = 1;
|
||||
channel->mpPageLayout->GetRootPane()->SetVisible(true);
|
||||
iplSDChannelObj_playPageAnimator(channel, 1);
|
||||
iplSDChannelObj_813E3F28(channel, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -437,7 +437,7 @@ namespace ipl {
|
||||
case 2: {
|
||||
if (request == 3) {
|
||||
channel->mPageAnimation = 3;
|
||||
iplSDChannelObj_playPageAnimator(channel, 0);
|
||||
iplSDChannelObj_813E3F28(channel, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -453,7 +453,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_updatePageAnim(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E3E38(SDChannelObj* channel) {
|
||||
switch (channel->mPageAnimation) {
|
||||
case 1: {
|
||||
if (!channel->mpPageAnimators[1]->isPlaying()) {
|
||||
@@ -472,7 +472,7 @@ namespace ipl {
|
||||
break;
|
||||
}
|
||||
if (prev == 3) {
|
||||
iplSDChannelObj_setPageAnim(channel, 3);
|
||||
iplSDChannelObj_813E3C9C(channel, 3);
|
||||
channel->mPageAnimationFrame = 0;
|
||||
}
|
||||
}
|
||||
@@ -481,46 +481,46 @@ namespace ipl {
|
||||
case 3: {
|
||||
if (!channel->mpPageAnimators[0]->isPlaying()) {
|
||||
int prev = channel->mPageAnimationFrame;
|
||||
iplSDChannelObj_setPageAnim(channel, 0);
|
||||
iplSDChannelObj_813E3C9C(channel, 0);
|
||||
if (prev == 1) {
|
||||
iplSDChannelObj_setPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E3C9C(channel, 1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
if (!channel->mpPageAnimators[2]->isPlaying()) {
|
||||
iplSDChannelObj_setPageAnim(channel, 0);
|
||||
iplSDChannelObj_813E3C9C(channel, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_playPageAnimator(SDChannelObj* channel, int request) {
|
||||
extern "C" void iplSDChannelObj_813E3F28(SDChannelObj* channel, int request) {
|
||||
channel->mpPageAnimators[request]->setAnmType(ANIM_TYPE_FORWARD);
|
||||
channel->mpPageAnimators[request]->play();
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_createDialogLayout(SDChannelObj* channel) {
|
||||
if (!iplSDChannelObj_hasAppMeta(channel)) {
|
||||
extern "C" void iplSDChannelObj_813E3F74(SDChannelObj* channel) {
|
||||
if (!iplSDChannelObj_813E3330(channel)) {
|
||||
channel->mpDialogLayout = NULL;
|
||||
return;
|
||||
}
|
||||
channel->mpDialogLayout = new (channel->mpChannelHeap, 4)
|
||||
layout::Object(channel->mpChannelHeap, channel->mpLayoutFile, "arc", "my_IplTopBalloon_a.brlyt");
|
||||
if (channel->mStateFlags == 0)
|
||||
iplSDChannelObj_setBalloonText(channel, iplSDChannelObj_getLocalizedName(channel, 0));
|
||||
iplSDChannelObj_813E413C(channel, iplSDChannelObj_813E4060(channel, 0));
|
||||
else if (channel->mStateFlags == 3)
|
||||
iplSDChannelObj_setBalloonText(channel, scUnknownName);
|
||||
iplSDChannelObj_813E413C(channel, scUnknownName);
|
||||
else
|
||||
iplSDChannelObj_setBalloonText(channel, L"");
|
||||
iplSDChannelObj_813E413C(channel, L"");
|
||||
channel->mpDialogAnimator = channel->mpDialogLayout->bind("my_IplTopBalloon_a_BalloonInOut.brlan");
|
||||
iplSDChannelObj_setDialogAnim(channel, 0);
|
||||
iplSDChannelObj_813E4558(channel, 0);
|
||||
channel->mpDialogLayout->finishBinding();
|
||||
}
|
||||
|
||||
extern "C" const wchar_t* iplSDChannelObj_getLocalizedName(SDChannelObj* channel, int index) {
|
||||
extern "C" const wchar_t* iplSDChannelObj_813E4060(SDChannelObj* channel, int index) {
|
||||
if (channel->mAppMeta.metaHdr.names[System::getLanguage()][index][0] != 0)
|
||||
return channel->mAppMeta.metaHdr.names[System::getLanguage()][index];
|
||||
const u32* languages = scLangLookup[System::getRegion()];
|
||||
@@ -533,7 +533,7 @@ namespace ipl {
|
||||
return channel->mAppMeta.metaHdr.names[languages[0]][index];
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setBalloonText(SDChannelObj* channel, const wchar_t* text) {
|
||||
extern "C" void iplSDChannelObj_813E413C(SDChannelObj* channel, const wchar_t* text) {
|
||||
nw4r::lyt::TextBox* textPane =
|
||||
nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(channel->mpDialogLayout->FindPaneByName(scBalloon));
|
||||
|
||||
@@ -585,7 +585,7 @@ namespace ipl {
|
||||
channel->mpDialogLayout->FindPaneByName(scBase)->SetSize(newSize);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_positionDialog(SDChannelObj* channel, const nw4r::math::VEC3& vec) {
|
||||
extern "C" void iplSDChannelObj_813E4410(SDChannelObj* channel, const nw4r::math::VEC3& vec) {
|
||||
if (channel->mpDialogLayout != NULL) {
|
||||
nw4r::lyt::Size size;
|
||||
|
||||
@@ -611,12 +611,12 @@ namespace ipl {
|
||||
const nw4r::math::VEC3 pos(vec.x + horizontalOffset, vec.y + verticalOffset, 0.0f);
|
||||
channel->mpDialogLayout->GetRootPane()->SetTranslate(pos);
|
||||
|
||||
iplSDChannelObj_updateDialogAnim(channel);
|
||||
iplSDChannelObj_813E4704(channel);
|
||||
channel->mpDialogLayout->calc();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_setDialogAnim(SDChannelObj* channel, int request) {
|
||||
extern "C" void iplSDChannelObj_813E4558(SDChannelObj* channel, int request) {
|
||||
if (channel->mpDialogLayout != NULL) {
|
||||
if (request == 0) {
|
||||
channel->mDialogState = 0;
|
||||
@@ -676,11 +676,11 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_updateDialogAnim(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E4704(SDChannelObj* channel) {
|
||||
switch (channel->mDialogState) {
|
||||
case 1: {
|
||||
if ((reinterpret_cast<u32&>(channel->mDialogTimer) += 1) >= 20.0f) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 2);
|
||||
iplSDChannelObj_813E4558(channel, 2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -690,9 +690,9 @@ namespace ipl {
|
||||
case 2: {
|
||||
if (!channel->mpDialogLayout->isPlaying(0)) {
|
||||
int prev = channel->mDialogFrame;
|
||||
iplSDChannelObj_setDialogAnim(channel, 3);
|
||||
iplSDChannelObj_813E4558(channel, 3);
|
||||
if (prev == 4) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 4);
|
||||
iplSDChannelObj_813E4558(channel, 4);
|
||||
channel->mDialogFrame = 0;
|
||||
}
|
||||
}
|
||||
@@ -701,9 +701,9 @@ namespace ipl {
|
||||
case 4: {
|
||||
if (!channel->mpDialogLayout->isPlaying(0)) {
|
||||
int prev = channel->mDialogFrame;
|
||||
iplSDChannelObj_setDialogAnim(channel, 0);
|
||||
iplSDChannelObj_813E4558(channel, 0);
|
||||
if (prev == 1) {
|
||||
iplSDChannelObj_setDialogAnim(channel, 1);
|
||||
iplSDChannelObj_813E4558(channel, 1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -711,7 +711,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_findNewMessageGroup(SDChannelObj* channel, layout::Object* layout) {
|
||||
extern "C" void iplSDChannelObj_813E481C(SDChannelObj* channel, layout::Object* layout) {
|
||||
char groupName[20];
|
||||
char** lookup;
|
||||
nw4r::lyt::Group* group;
|
||||
@@ -752,11 +752,11 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelObj_updateNewMessage(SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelObj_813E49A8(SDChannelObj* channel) {
|
||||
if (System::getNwc24Manager() != NULL) {
|
||||
switch (channel->mNewMessageState) {
|
||||
case 1: {
|
||||
if (iplSDChannelObj_checkNewMessage(channel)) {
|
||||
if (iplSDChannelObj_813E4A54(channel)) {
|
||||
channel->mNewMessageState = 2;
|
||||
channel->mNewMessageFrame = 0;
|
||||
}
|
||||
@@ -772,7 +772,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelObj_checkNewMessage(SDChannelObj* channel) {
|
||||
extern "C" BOOL iplSDChannelObj_813E4A54(SDChannelObj* channel) {
|
||||
if (System::getNwc24Manager() == NULL || !System::getNwc24Manager()->getNewTitleTbl(NULL)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -107,8 +107,13 @@ namespace ipl {
|
||||
|
||||
|
||||
|
||||
extern "C" bool iplSDChannelSelect_813DD240(
|
||||
SDChannelSelect* scene, const s32* requiredBytes, const s32* requiredBlocks,
|
||||
ESTitleId* titleIds, char* titleNames, u32* titleCount);
|
||||
|
||||
extern "C" void iplSDChannelObj_resetDialogAnim(SDChannelObj* channel, int enabled);
|
||||
|
||||
|
||||
extern "C" void iplSDChannelObj_813E3534(SDChannelObj* channel, int enabled);
|
||||
|
||||
SDChannelSelect::SDChannelSelect(EGG::Heap* heap)
|
||||
: FaderSceneBase(heap),
|
||||
@@ -208,7 +213,7 @@ namespace ipl {
|
||||
SDChannelObj* channel = NULL;
|
||||
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
iplSDChannelObj_activateIfIdle(channel);
|
||||
iplSDChannelObj_813E3104(channel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -597,7 +602,7 @@ namespace ipl {
|
||||
mpCurrentLoadedChannel = loadedChannel;
|
||||
mpSDWorker->get_sd_app_meta_async(
|
||||
static_cast<ESTitleId32>(notice.titleId),
|
||||
static_cast<u8*>(iplSDChannelObj_getOrAllocThumbnailData(loadedChannel)),
|
||||
static_cast<u8*>(iplSDChannelObj_813E3128(loadedChannel)),
|
||||
&loadedChannel->mAppMeta);
|
||||
mWorkerCommand = 3;
|
||||
}
|
||||
@@ -840,9 +845,9 @@ namespace ipl {
|
||||
SDChannelObj* completed = mpCurrentLoadedChannel;
|
||||
completed->mStateFlags = 0;
|
||||
completed->mState = 2;
|
||||
DCFlushRange(iplSDChannelObj_getOrAllocThumbnailData(mpCurrentLoadedChannel), 0x19000);
|
||||
DCFlushRange(iplSDChannelObj_813E3128(mpCurrentLoadedChannel), 0x19000);
|
||||
} else {
|
||||
memcpy(iplSDChannelObj_getOrAllocThumbnailData(mpCurrentLoadedChannel),
|
||||
memcpy(iplSDChannelObj_813E3128(mpCurrentLoadedChannel),
|
||||
mpCorruptIconFile->getBuffer(), mpCorruptIconFile->getLength());
|
||||
memset(&mpCurrentLoadedChannel->mAppMeta, 0, sizeof(mpCurrentLoadedChannel->mAppMeta));
|
||||
SDChannelObj* completed = mpCurrentLoadedChannel;
|
||||
@@ -1830,9 +1835,9 @@ namespace ipl {
|
||||
int channelIndex = channel->getIndex();
|
||||
if (channelPage == mCurrentPage) {
|
||||
if (mState != 5 || channelIndex != mCurrentChannelIndex) {
|
||||
iplSDChannelObj_resetPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E34E8(channel, 1);
|
||||
}
|
||||
iplSDChannelObj_resetDialogAnim(channel, 1);
|
||||
iplSDChannelObj_813E3534(channel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2054,19 +2059,19 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void SDChannelSelect::updateChannelObject(SDChannelObj* channel) {
|
||||
iplSDChannelObj_activateIfIdle(channel);
|
||||
iplSDChannelObj_setHeaps(channel, mpDialogHeap, mpChannelHeap);
|
||||
iplSDChannelObj_setPane(channel,
|
||||
iplSDChannelObj_813E3104(channel);
|
||||
iplSDChannelObj_813E311C(channel, mpDialogHeap, mpChannelHeap);
|
||||
iplSDChannelObj_813E3178(channel,
|
||||
getChannelBasePane(channel->getPage(), channel->getIndex(),
|
||||
mCurrentPage));
|
||||
iplSDChannelObj_setLayoutFile(channel, mpLayoutFile);
|
||||
iplSDChannelObj_813E3180(channel, mpLayoutFile);
|
||||
}
|
||||
|
||||
void SDChannelSelect::calcChannelObjects() {
|
||||
SDChannelObj* channel = NULL;
|
||||
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
iplSDChannelObj_calc(channel);
|
||||
iplSDChannelObj_813E322C(channel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2081,9 +2086,9 @@ namespace ipl {
|
||||
}
|
||||
|
||||
setChannelScissor(channel);
|
||||
iplSDChannelObj_drawBase(channel);
|
||||
iplSDChannelObj_813E32C8(channel);
|
||||
|
||||
if (iplSDChannelObj_hasAppMeta(channel)) {
|
||||
if (iplSDChannelObj_813E3330(channel)) {
|
||||
switch (mState) {
|
||||
case 15:
|
||||
case 16:
|
||||
@@ -2149,7 +2154,7 @@ namespace ipl {
|
||||
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
if (hasChannelObject(channel->getPage(), channel->getIndex())) {
|
||||
iplSDChannelObj_drawPage(channel);
|
||||
iplSDChannelObj_813E3304(channel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2157,7 +2162,7 @@ namespace ipl {
|
||||
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
if (hasChannelObject(channel->getPage(), channel->getIndex())) {
|
||||
iplSDChannelObj_drawDialog(channel);
|
||||
iplSDChannelObj_813E330C(channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2291,7 +2296,7 @@ namespace ipl {
|
||||
nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
int titleIndex = channel->getPage() * MAX_CHANNEL_INDEX + channel->getIndex();
|
||||
if (!iplSDChannelObj_hasAppMeta(channel) && mpChannelTitleIds[titleIndex] != 0 &&
|
||||
if (!iplSDChannelObj_813E3330(channel) && mpChannelTitleIds[titleIndex] != 0 &&
|
||||
mbNeedsRefresh) {
|
||||
channel->mStateFlags = 2;
|
||||
}
|
||||
@@ -2386,7 +2391,7 @@ namespace ipl {
|
||||
while (channel = static_cast<SDChannelObj*>(
|
||||
nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
if (iplSDChannelObj_hasAppMeta(channel)) {
|
||||
if (iplSDChannelObj_813E3330(channel)) {
|
||||
SDChannelObj* previous = static_cast<SDChannelObj*>(
|
||||
nw4r::ut::List_GetPrev(&mChannelObjects, channel));
|
||||
nw4r::ut::List_Remove(&mChannelObjects, channel);
|
||||
@@ -2413,7 +2418,7 @@ namespace ipl {
|
||||
nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
int channelIndex = channel->mPage * 12 + channel->mIndex;
|
||||
if (!iplSDChannelObj_hasAppMeta(channel) &&
|
||||
if (!iplSDChannelObj_813E3330(channel) &&
|
||||
mpChannelTitleIds[channelIndex] != 0) {
|
||||
channel->mStateFlags = 2;
|
||||
}
|
||||
@@ -2629,7 +2634,7 @@ namespace ipl {
|
||||
initPageAnimations(
|
||||
math::VEC3((nw4r::math::VEC3&)channel->mpBaseLayout->GetRootPane()->GetTranslate()),
|
||||
0);
|
||||
iplSDChannelObj_playPageHide(channel);
|
||||
iplSDChannelObj_813E34E0(channel);
|
||||
|
||||
SDButton* button = static_cast<SDButton*>(System::getSceneManager()->getScene(0x24));
|
||||
if (mbLeftArrowVisible) {
|
||||
@@ -2977,7 +2982,7 @@ namespace ipl {
|
||||
while (channel = static_cast<SDChannelObj*>(
|
||||
nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
iplSDChannelObj_resetPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E34E8(channel, 1);
|
||||
}
|
||||
|
||||
for (int index = 0; index < MAX_CHANNEL_INDEX; ++index) {
|
||||
@@ -2999,7 +3004,7 @@ namespace ipl {
|
||||
while (channel = static_cast<SDChannelObj*>(
|
||||
nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
iplSDChannelObj_resetPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E34E8(channel, 1);
|
||||
}
|
||||
|
||||
for (int index = 0; index < MAX_CHANNEL_INDEX; ++index) {
|
||||
@@ -3061,10 +3066,10 @@ namespace ipl {
|
||||
} else {
|
||||
SDChannelObj* destination = findChannelObject(mDestinationPage, mDestinationIndex);
|
||||
|
||||
iplSDChannelObj_setPane(
|
||||
iplSDChannelObj_813E3178(
|
||||
static_cast<SDChannelObj*>(mpCurrentChannel),
|
||||
getChannelBasePane(mDestinationPage, mDestinationIndex, mCurrentPage));
|
||||
iplSDChannelObj_setPane(
|
||||
iplSDChannelObj_813E3178(
|
||||
destination, getChannelBasePane(mSourcePage, mSourceIndex, mCurrentPage));
|
||||
|
||||
SDChannelObj* current;
|
||||
@@ -3078,8 +3083,8 @@ namespace ipl {
|
||||
destination->mPage = sourcePage;
|
||||
destination->mIndex = sourceIndex;
|
||||
|
||||
iplSDChannelObj_calc(static_cast<SDChannelObj*>(mpCurrentChannel));
|
||||
iplSDChannelObj_calc(destination);
|
||||
iplSDChannelObj_813E322C(static_cast<SDChannelObj*>(mpCurrentChannel));
|
||||
iplSDChannelObj_813E322C(destination);
|
||||
|
||||
mpCurrentChannel = transitionAnimator;
|
||||
destination->mpBaseAnimator->setCurrentFrame(mpHelpLayout->getCurrentFrame());
|
||||
@@ -3203,7 +3208,7 @@ namespace ipl {
|
||||
if (isChannelMoveTarget(mCurrentPage, index) ||
|
||||
(mCurrentPage == mSourcePage && index == mSourceIndex)) {
|
||||
SDChannelObj* channel = findChannelObject(mCurrentPage, index);
|
||||
iplSDChannelObj_startAppear(channel, 2);
|
||||
iplSDChannelObj_813E3354(channel, 2);
|
||||
snd::getSystem()->startSE("WIPL_SE_CH_TARGETTING");
|
||||
controller->rumble(1);
|
||||
}
|
||||
@@ -3212,7 +3217,7 @@ namespace ipl {
|
||||
if (isChannelMoveTarget(mCurrentPage, index) ||
|
||||
(mCurrentPage == mSourcePage && index == mSourceIndex)) {
|
||||
SDChannelObj* channel = findChannelObject(mCurrentPage, index);
|
||||
iplSDChannelObj_startDisappear(channel, 2);
|
||||
iplSDChannelObj_813E33EC(channel, 2);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -3292,7 +3297,7 @@ namespace ipl {
|
||||
int channelPage = channel->getPage();
|
||||
int channelIndex = channel->getIndex();
|
||||
bool selected = channelPage == page && channelIndex == index;
|
||||
iplSDChannelObj_setSelected(channel, selected);
|
||||
iplSDChannelObj_813E3480(channel, selected);
|
||||
}
|
||||
|
||||
snd::getSystem()->startSEwithPos("WIPL_SE_CH_HOLD", mPointerPosition.x);
|
||||
@@ -3328,7 +3333,7 @@ namespace ipl {
|
||||
SDChannelObj* channel = NULL;
|
||||
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
|
||||
channel != NULL) {
|
||||
iplSDChannelObj_resetPageAnim(channel, 1);
|
||||
iplSDChannelObj_813E34E8(channel, 1);
|
||||
}
|
||||
|
||||
for (int index = 0; index < MAX_CHANNEL_INDEX; ++index) {
|
||||
@@ -3427,14 +3432,14 @@ namespace ipl {
|
||||
break;
|
||||
case ::gui::EventHandler::ON_POINT:
|
||||
if (mpScene->mState == 1 && SDChannelSelect::isChannelReady(channel)) {
|
||||
iplSDChannelObj_startAppear(channel, 0);
|
||||
iplSDChannelObj_813E3354(channel, 0);
|
||||
snd::getSystem()->startSE("WIPL_SE_CH_TARGETTING");
|
||||
controller->rumble(1);
|
||||
}
|
||||
break;
|
||||
case ::gui::EventHandler::ON_LEFT:
|
||||
if (mpScene->mState == 1 && SDChannelSelect::isChannelReady(channel)) {
|
||||
iplSDChannelObj_startDisappear(channel, 0);
|
||||
iplSDChannelObj_813E33EC(channel, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -23,63 +23,63 @@ namespace scene {
|
||||
class SDTitlePaneEventHandler;
|
||||
class SDTitleButtonEventHandler;
|
||||
|
||||
extern "C" void iplSDChannelTitle_rebootSystem(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_drawDimOverlay(SDChannelTitle* scene, const nw4r::ut::Rect& bounds, GXColor color);
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnimations(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_createBannerLayout(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_createIconLayout(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_playBannerIntro(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_startBannerSound(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnims(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_bindRsoAnimations(SDChannelTitle* scene, layout::Object* layout,
|
||||
extern "C" void iplSDChannelTitle_813E8AB4(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8C08(SDChannelTitle* scene, const nw4r::ut::Rect& bounds, GXColor color);
|
||||
extern "C" void iplSDChannelTitle_813E81FC(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6348(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6424(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8034(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8160(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8360(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8258(SDChannelTitle* scene, layout::Object* layout,
|
||||
layout::Animator** animations, const char* prefix);
|
||||
extern "C" void iplSDChannelTitle_updateScript(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateScriptIdle(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateScriptLoad(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_destroyScript(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7C0C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7D14(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7DD0(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7FB0(SDChannelTitle* scene);
|
||||
|
||||
extern "C" void iplSDChannelTitle_rebuildBannerLayout(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateChangeWait(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateMemoryCalc(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateAfterClearTmp(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateEnqueueNotice(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_showCopyError(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateCopyErrorDialog(SDChannelTitle* scene);
|
||||
extern "C" bool iplSDChannelTitle_startZoomFade(SDChannelTitle* scene);
|
||||
extern "C" BOOL iplSDChannelTitle_isNetworkAllowed(SDChannelTitle*, ESTmdView*, ESTitleId titleId);
|
||||
extern "C" BOOL iplSDChannelTitle_isParentalEnabled();
|
||||
extern "C" void iplSDChannelTitle_beginLaunch(SDChannelTitle* scene, SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelTitle_prepareSceneExit(SDChannelTitle* scene, int nextScene);
|
||||
extern "C" void iplSDChannelTitle_rebootSystem(SDChannelTitle*);
|
||||
extern "C" bool iplSDChannelTitle_isLaunchDelayDone(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_setStartButtonPressed(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_drawDimOverlay(SDChannelTitle*, const nw4r::ut::Rect& bounds, GXColor color);
|
||||
extern "C" void iplSDChannelTitle_setPaneMessage(SDChannelTitle*, nw4r::lyt::Pane* pane, u32 message, bool allocate);
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_loadBannerMetaFiles(SDChannelTitle*, ESTitleId title, nand::File** sound);
|
||||
extern "C" void iplSDChannelTitle_fetchTmdViewTask(void* argument);
|
||||
extern "C" BOOL iplSDChannelTitle_passesParentalCheck(SDChannelTitle* scene, ESTmdView* tmd);
|
||||
extern "C" void iplSDChannelTitle_updateIdleState(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateChangeState(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateParentalResult(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateDialogResult(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_startCopyProgress(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateCopyPrepare(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateCopyStart(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateCopyProgress(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_finishProgressHide(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_returnToIdle(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_loadTitleBanner(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateBannerLoad(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_tryLaunchSelected(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_updateTmdReady(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_preparePageRestart(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_loadBannerScript(SDChannelTitle* scene, ESTitleId title);
|
||||
extern "C" void iplSDChannelTitle_openParentalDialog(SDChannelTitle* scene, void* arguments);
|
||||
extern "C" void iplSDChannelTitle_setPageAndIndex(SDChannelTitle* scene, int page, int index);
|
||||
extern "C" void iplSDChannelTitle_cleanupAndLeave(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_confirmLeaveToSettings(SDChannelTitle* scene, bool settings);
|
||||
extern "C" void iplSDChannelTitle_flushSaveBeforeExit(SDChannelTitle* scene, int nextScene);
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_copyTitleRange(SDMemory::TitleRange*, const SDMemory::TitleRange*);
|
||||
extern "C" void iplSDChannelTitle_813E630C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E696C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6FB4(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E71A4(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E724C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7418(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7498(SDChannelTitle* scene);
|
||||
extern "C" bool iplSDChannelTitle_813E79B0(SDChannelTitle* scene);
|
||||
extern "C" BOOL iplSDChannelTitle_813E847C(SDChannelTitle*, ESTmdView*, ESTitleId titleId);
|
||||
extern "C" BOOL iplSDChannelTitle_813E84C8();
|
||||
extern "C" void iplSDChannelTitle_813E86A0(SDChannelTitle* scene, SDChannelObj* channel);
|
||||
extern "C" void iplSDChannelTitle_813E899C(SDChannelTitle* scene, int nextScene);
|
||||
extern "C" void iplSDChannelTitle_813E8AB4(SDChannelTitle*);
|
||||
extern "C" bool iplSDChannelTitle_813E8B1C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8B70(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8C08(SDChannelTitle*, const nw4r::ut::Rect& bounds, GXColor color);
|
||||
extern "C" void iplSDChannelTitle_813E8D14(SDChannelTitle*, nw4r::lyt::Pane* pane, u32 message, bool allocate);
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_813E8DCC(SDChannelTitle*, ESTitleId title, nand::File** sound);
|
||||
extern "C" void iplSDChannelTitle_813E8E70(void* argument);
|
||||
extern "C" BOOL iplSDChannelTitle_813E8F04(SDChannelTitle* scene, ESTmdView* tmd);
|
||||
extern "C" void iplSDChannelTitle_813E65D4(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6760(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E69B4(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6B88(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6CCC(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E6E24(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7074(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E72B8(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E74EC(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7618(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E76C8(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7780(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7800(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E787C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7A18(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E7B30(SDChannelTitle* scene, ESTitleId title);
|
||||
extern "C" void iplSDChannelTitle_813E850C(SDChannelTitle* scene, void* arguments);
|
||||
extern "C" void iplSDChannelTitle_813E85C0(SDChannelTitle* scene, int page, int index);
|
||||
extern "C" void iplSDChannelTitle_813E86D8(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E88CC(SDChannelTitle* scene, bool settings);
|
||||
extern "C" void iplSDChannelTitle_813E8A20(SDChannelTitle* scene, int nextScene);
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_813E6FA0(SDMemory::TitleRange*, const SDMemory::TitleRange*);
|
||||
|
||||
static inline void setMemoryTitleLists(SDMemory* memory, SDMemory::TitleRange sdRange,
|
||||
SDMemory::TitleRange nandRange) {
|
||||
@@ -134,11 +134,11 @@ public:
|
||||
SDChannelTitle* mpScene;
|
||||
};
|
||||
|
||||
extern "C" void iplSDChannelObj_applyLanguageGroups(layout::Object* layout);
|
||||
extern "C" const wchar_t* iplSDChannelObj_getLocalizedName(SDChannelObj* channel, int nameIndex);
|
||||
extern "C" bool iplSDChannelTitle_startZoomFade(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_rebuildBannerLayout(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_setPaneMessage(SDChannelTitle* scene, nw4r::lyt::Pane* pane, u32 message, bool allocate);
|
||||
extern "C" void iplSDChannelObj_813E3580(layout::Object* layout);
|
||||
extern "C" const wchar_t* iplSDChannelObj_813E4060(SDChannelObj* channel, int nameIndex);
|
||||
extern "C" bool iplSDChannelTitle_813E79B0(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E630C(SDChannelTitle* scene);
|
||||
extern "C" void iplSDChannelTitle_813E8D14(SDChannelTitle* scene, nw4r::lyt::Pane* pane, u32 message, bool allocate);
|
||||
|
||||
SDChannelTitle::SDChannelTitle(EGG::Heap* heap, SDChannelSelect* channelSelect)
|
||||
: FaderSceneBase(heap), mState(0), mNextScene(0), mParentalResult(0),
|
||||
@@ -194,8 +194,8 @@ void SDChannelTitle::create() {
|
||||
}
|
||||
}
|
||||
}
|
||||
iplSDChannelTitle_setPaneMessage(this, mpLayout->FindPaneByName(sTextNames[0]), 0xa2, true);
|
||||
iplSDChannelTitle_setPaneMessage(this, mpLayout->FindPaneByName(sTextNames[1]), 2, true);
|
||||
iplSDChannelTitle_813E8D14(this, mpLayout->FindPaneByName(sTextNames[0]), 0xa2, true);
|
||||
iplSDChannelTitle_813E8D14(this, mpLayout->FindPaneByName(sTextNames[1]), 2, true);
|
||||
mStartButtonState = 1;
|
||||
mpButtonAnimations[0][0] = mpLayout->bindToGroup(sButtonAnimationNames[0], sButtonGroups[0], false, false);
|
||||
mpButtonAnimations[0][1] = mpLayout->bindToGroup(sButtonAnimationNames[1], sButtonGroups[0], false, true);
|
||||
@@ -223,7 +223,7 @@ void SDChannelTitle::create() {
|
||||
mpProgressLayout->finishBinding();
|
||||
nw4r::lyt::TextBox* comment = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpProgressLayout->FindPaneByName("T_Comment_02"));
|
||||
comment->SetString(System::getMessage(0xad));
|
||||
iplSDChannelTitle_rebuildBannerLayout(this);
|
||||
iplSDChannelTitle_813E630C(this);
|
||||
mpFade = new math::HermiteIntp<f32>();
|
||||
static f32 fadeRange[2] = {0.0f, 255.0f};
|
||||
mpFade->init(fadeRange[0], fadeRange[1], 28.0f, 0.0f, 0.0f);
|
||||
@@ -241,7 +241,7 @@ void SDChannelTitle::create() {
|
||||
mScriptDuration = duration;
|
||||
mState = 2;
|
||||
mScriptFrame = duration;
|
||||
iplSDChannelTitle_startZoomFade(this);
|
||||
iplSDChannelTitle_813E79B0(this);
|
||||
mpScriptHeaps[0] = EGG::ExpHeap::create(0x80000, System::getMem2App(), 6);
|
||||
mpScriptHeaps[1] = EGG::ExpHeap::create(0x80000, System::getMem2App(), 6);
|
||||
mMemory.create(getSceneHeap(), mpLayoutFile, mpChannelSelect);
|
||||
@@ -251,7 +251,7 @@ void SDChannelTitle::calcCommon() {
|
||||
mpPaneManager->calc();
|
||||
mpLayout->calc();
|
||||
if (mScriptEnabled == 1) {
|
||||
iplSDChannelTitle_updateScript(this);
|
||||
iplSDChannelTitle_813E7C0C(this);
|
||||
}
|
||||
if ((mState == 1 || mState == 13 || static_cast<u32>(mState - 4) <= 1) &&
|
||||
!mbBannerStarting && mpBannerAnimations[1] && !mpBannerAnimations[1]->isPlaying()) {
|
||||
@@ -277,11 +277,11 @@ void SDChannelTitle::calcCommon() {
|
||||
|
||||
FaderSceneCommand SDChannelTitle::calcFadein() {
|
||||
if (mState == 2) {
|
||||
iplSDChannelTitle_startZoomFade(this);
|
||||
iplSDChannelTitle_813E79B0(this);
|
||||
return FADER_SCN_CONTINUE;
|
||||
}
|
||||
if (!mpFade->isPlaying()) {
|
||||
iplSDChannelTitle_playBannerIntro(this);
|
||||
iplSDChannelTitle_813E8034(this);
|
||||
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
|
||||
button->setEventHandler(mpButtonEventHandler, NULL);
|
||||
button->animation(13);
|
||||
@@ -296,37 +296,37 @@ FaderSceneCommand SDChannelTitle::calcFadein() {
|
||||
|
||||
FaderSceneCommand SDChannelTitle::calcNormal() {
|
||||
switch (mState) {
|
||||
case 1: iplSDChannelTitle_updateIdleState(this); break;
|
||||
case 4: iplSDChannelTitle_flushSaveBeforeExit(this, mNextScene); mState = 5; break;
|
||||
case 8: iplSDChannelTitle_updateChangeState(this); break;
|
||||
case 9: iplSDChannelTitle_updateChangeWait(this); break;
|
||||
case 10: iplSDChannelTitle_preparePageRestart(this); break;
|
||||
case 11: iplSDChannelTitle_updateParentalResult(this); break;
|
||||
case 12: iplSDChannelTitle_updateDialogResult(this); break;
|
||||
case 13: iplSDChannelTitle_updateTmdReady(this); break;
|
||||
case 1: iplSDChannelTitle_813E65D4(this); break;
|
||||
case 4: iplSDChannelTitle_813E8A20(this, mNextScene); mState = 5; break;
|
||||
case 8: iplSDChannelTitle_813E6760(this); break;
|
||||
case 9: iplSDChannelTitle_813E696C(this); break;
|
||||
case 10: iplSDChannelTitle_813E7A18(this); break;
|
||||
case 11: iplSDChannelTitle_813E69B4(this); break;
|
||||
case 12: iplSDChannelTitle_813E6B88(this); break;
|
||||
case 13: iplSDChannelTitle_813E787C(this); break;
|
||||
case 14: return FADER_SCN_CONTINUE;
|
||||
case 15: iplSDChannelTitle_updateCopyStart(this); break;
|
||||
case 16: iplSDChannelTitle_updateAfterClearTmp(this); break;
|
||||
case 15: iplSDChannelTitle_813E7074(this); break;
|
||||
case 16: iplSDChannelTitle_813E71A4(this); break;
|
||||
case 17: SCSetTmpTitleID(mTitleId); SCFlushAsync(NULL); mState = 18; break;
|
||||
case 18: if (SCCheckStatus() != 1) { mState = 21; } break;
|
||||
case 19: iplSDChannelTitle_startCopyProgress(this); break;
|
||||
case 20: iplSDChannelTitle_updateCopyPrepare(this); break;
|
||||
case 21: iplSDChannelTitle_updateEnqueueNotice(this); break;
|
||||
case 22: iplSDChannelTitle_updateCopyProgress(this); break;
|
||||
case 23: iplSDChannelTitle_updateMemoryCalc(this); break;
|
||||
case 24: iplSDChannelTitle_loadTitleBanner(this); break;
|
||||
case 25: iplSDChannelTitle_updateBannerLoad(this); break;
|
||||
case 26: iplSDChannelTitle_showCopyError(this); break;
|
||||
case 27: iplSDChannelTitle_updateCopyErrorDialog(this); break;
|
||||
case 28: iplSDChannelTitle_tryLaunchSelected(this); break;
|
||||
case 29: iplSDChannelTitle_finishProgressHide(this); break;
|
||||
case 30: iplSDChannelTitle_returnToIdle(this); break;
|
||||
case 19: iplSDChannelTitle_813E6CCC(this); break;
|
||||
case 20: iplSDChannelTitle_813E6E24(this); break;
|
||||
case 21: iplSDChannelTitle_813E724C(this); break;
|
||||
case 22: iplSDChannelTitle_813E72B8(this); break;
|
||||
case 23: iplSDChannelTitle_813E6FB4(this); break;
|
||||
case 24: iplSDChannelTitle_813E76C8(this); break;
|
||||
case 25: iplSDChannelTitle_813E7780(this); break;
|
||||
case 26: iplSDChannelTitle_813E7418(this); break;
|
||||
case 27: iplSDChannelTitle_813E7498(this); break;
|
||||
case 28: iplSDChannelTitle_813E7800(this); break;
|
||||
case 29: iplSDChannelTitle_813E74EC(this); break;
|
||||
case 30: iplSDChannelTitle_813E7618(this); break;
|
||||
}
|
||||
if (mState == 5) {
|
||||
mbStopScript = true;
|
||||
++mLaunchFrame;
|
||||
System::getPointer()->setVisible(false);
|
||||
return static_cast<FaderSceneCommand>(iplSDChannelTitle_isLaunchDelayDone(this));
|
||||
return static_cast<FaderSceneCommand>(iplSDChannelTitle_813E8B1C(this));
|
||||
}
|
||||
if (mState == 6 || mState == 7 || mState == 31) {
|
||||
mbStopScript = true;
|
||||
@@ -360,7 +360,7 @@ FaderSceneCommand SDChannelTitle::calcFadeout() {
|
||||
if (mNextScene == 17) {
|
||||
if (!nandwall::checkNandCapacityAppBootable()) {
|
||||
OSReport("Nand full! OSRebootSystem.\n");
|
||||
iplSDChannelTitle_rebootSystem(this);
|
||||
iplSDChannelTitle_813E8AB4(this);
|
||||
}
|
||||
while (WPADGetStatus() != 0 || System::getBS2Manager()->getIPLState() != bs2::IPL_STATE_8 ||
|
||||
!System::getSaveData()->isFinished(mpSaveFile) ||
|
||||
@@ -369,7 +369,7 @@ FaderSceneCommand SDChannelTitle::calcFadeout() {
|
||||
System::getBS2Manager()->update();
|
||||
VIWaitForRetrace();
|
||||
if (mScriptEnabled == 1) {
|
||||
iplSDChannelTitle_updateScript(this);
|
||||
iplSDChannelTitle_813E7C0C(this);
|
||||
}
|
||||
if (WPADGetStatus() != 0) {
|
||||
OSReport("wait for WPAD\n");
|
||||
@@ -401,8 +401,8 @@ FaderSceneCommand SDChannelTitle::calcFadeout() {
|
||||
} title;
|
||||
title.id = channel->mAppMeta.titleId;
|
||||
wchar_t names[2][21];
|
||||
memcpy(names[0], iplSDChannelObj_getLocalizedName(channel, 0), sizeof(names[0]));
|
||||
memcpy(names[1], iplSDChannelObj_getLocalizedName(channel, 1), sizeof(names[1]));
|
||||
memcpy(names[0], iplSDChannelObj_813E4060(channel, 0), sizeof(names[0]));
|
||||
memcpy(names[1], iplSDChannelObj_813E4060(channel, 1), sizeof(names[1]));
|
||||
union MakerCode {
|
||||
u16 code;
|
||||
char bytes[2];
|
||||
@@ -454,7 +454,7 @@ void SDChannelTitle::draw() {
|
||||
GXColor color = {255, 255, 255, static_cast<u8>(mpFade->get())};
|
||||
utility::Graphics::drawTexture(bounds, mpScreenCapture->getGXTex(), color, 1);
|
||||
GXColor mask = {0, 0, 0, static_cast<u8>(mpFade->get())};
|
||||
iplSDChannelTitle_drawDimOverlay(this, bounds, mask);
|
||||
iplSDChannelTitle_813E8C08(this, bounds, mask);
|
||||
} else {
|
||||
if (mpIconLayout) {
|
||||
utility::Graphics::setOrthoProjection(0);
|
||||
@@ -522,14 +522,14 @@ BOOL SDChannelTitle::isResetAcceptable() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_rebuildBannerLayout(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_createBannerLayout(scene);
|
||||
extern "C" void iplSDChannelTitle_813E630C(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_813E6348(scene);
|
||||
if (scene->mpBannerLayout) {
|
||||
scene->mpBannerLayout->finishBinding();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_createBannerLayout(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6348(SDChannelTitle* scene) {
|
||||
if (scene->mpIconLayout) {
|
||||
scene->mpIconLayout->destroyHeap();
|
||||
scene->mpIconLayout = NULL;
|
||||
@@ -537,30 +537,30 @@ extern "C" void iplSDChannelTitle_createBannerLayout(SDChannelTitle* scene) {
|
||||
if (scene->mpBannerFiles[scene->mLoadedIndex] && scene->mpBannerFiles[scene->mLoadedIndex]->checkData() == 1) {
|
||||
scene->mpBannerLayout = layout::Object::create(scene->mpBannerHeap, 0x40000,
|
||||
scene->mpBannerFiles[scene->mLoadedIndex], "arc", "banner.brlyt");
|
||||
iplSDChannelObj_applyLanguageGroups(scene->mpBannerLayout);
|
||||
iplSDChannelTitle_bindBannerAnimations(scene);
|
||||
iplSDChannelObj_813E3580(scene->mpBannerLayout);
|
||||
iplSDChannelTitle_813E81FC(scene);
|
||||
} else {
|
||||
scene->mpBannerLayout = NULL;
|
||||
for (int index = 0; index < 3; ++index) {
|
||||
scene->mpBannerAnimations[index] = NULL;
|
||||
}
|
||||
iplSDChannelTitle_createIconLayout(scene);
|
||||
iplSDChannelTitle_813E6424(scene);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_createIconLayout(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6424(SDChannelTitle* scene) {
|
||||
SDChannelObj* channel = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
if (channel) {
|
||||
scene->mpIconLayout = layout::Object::create(scene->mpIconHeap, 0x8000,
|
||||
iplSDChannelObj_getOrAllocThumbnailData(channel), "arc", "icon.brlyt");
|
||||
iplSDChannelObj_applyLanguageGroups(scene->mpIconLayout);
|
||||
iplSDChannelObj_813E3128(channel), "arc", "icon.brlyt");
|
||||
iplSDChannelObj_813E3580(scene->mpIconLayout);
|
||||
if (scene->mpIconLayout->searchFile("icon.brlan")) {
|
||||
scene->mpIconLayout->bind("icon.brlan")->play();
|
||||
} else if (scene->mpIconLayout->searchFile("icon_Whole.brlan")) {
|
||||
scene->mpIconLayout->bind("icon_Whole.brlan")->play();
|
||||
}
|
||||
if (channel->mStateFlags == 0) {
|
||||
static_cast<nw4r::lyt::TextBox*>(scene->mpProgressLayout->FindPaneByName("T_title"))->SetString(iplSDChannelObj_getLocalizedName(channel, 0));
|
||||
static_cast<nw4r::lyt::TextBox*>(scene->mpProgressLayout->FindPaneByName("T_title"))->SetString(iplSDChannelObj_813E4060(channel, 0));
|
||||
} else {
|
||||
static_cast<nw4r::lyt::TextBox*>(scene->mpProgressLayout->FindPaneByName("T_title"))->SetString(sMissingTitle);
|
||||
}
|
||||
@@ -570,7 +570,7 @@ extern "C" void iplSDChannelTitle_createIconLayout(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateIdleState(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E65D4(SDChannelTitle* scene) {
|
||||
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
|
||||
if (button && button->isActive()) {
|
||||
button->update();
|
||||
@@ -578,18 +578,18 @@ extern "C" void iplSDChannelTitle_updateIdleState(SDChannelTitle* scene) {
|
||||
if (scene->mState == 1) {
|
||||
if (static_cast<u32>(scene->mpChannelSelect->mCurrentSDState - 1) <= 1) {
|
||||
scene->mState = 10;
|
||||
iplSDChannelTitle_preparePageRestart(scene);
|
||||
iplSDChannelTitle_813E7A18(scene);
|
||||
} else {
|
||||
controller::Interface* controller = System::getMasterController();
|
||||
int page;
|
||||
int index;
|
||||
if (controller->down(0x30001000)) {
|
||||
scene->mpChannelSelect->findAdjacentChannel(1, &page, &index);
|
||||
iplSDChannelTitle_setPageAndIndex(scene, page, index);
|
||||
iplSDChannelTitle_813E85C0(scene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
} else if (controller->down(0x6000010)) {
|
||||
scene->mpChannelSelect->findAdjacentChannel(0, &page, &index);
|
||||
iplSDChannelTitle_setPageAndIndex(scene, page, index);
|
||||
iplSDChannelTitle_813E85C0(scene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
} else {
|
||||
scene->mpPaneManager->update();
|
||||
@@ -603,7 +603,7 @@ extern "C" void iplSDChannelTitle_updateIdleState(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateChangeState(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6760(SDChannelTitle* scene) {
|
||||
if (static_cast<u32>(scene->mpChannelSelect->mCurrentSDState - 1) <= 1) {
|
||||
scene->mState = 1;
|
||||
} else {
|
||||
@@ -611,7 +611,7 @@ extern "C" void iplSDChannelTitle_updateChangeState(SDChannelTitle* scene) {
|
||||
++scene->mChangeFrame;
|
||||
if ((!scene->mpBannerFiles[1 - scene->mLoadedIndex] || scene->mpBannerFiles[1 - scene->mLoadedIndex]->isFinished()) &&
|
||||
(!scene->mpSoundFiles[1 - scene->mLoadedIndex] || scene->mpSoundFiles[1 - scene->mLoadedIndex]->isFinished()) &&
|
||||
iplSDChannelObj_hasAppMeta(channel) && scene->mChangeFrame > 10 &&
|
||||
iplSDChannelObj_813E3330(channel) && scene->mChangeFrame > 10 &&
|
||||
(!scene->mScriptEnabled || scene->mScriptState == 4)) {
|
||||
if (scene->mpBannerFiles[scene->mLoadedIndex]) {
|
||||
delete scene->mpBannerFiles[scene->mLoadedIndex];
|
||||
@@ -630,21 +630,21 @@ extern "C" void iplSDChannelTitle_updateChangeState(SDChannelTitle* scene) {
|
||||
}
|
||||
scene->mpSoundFiles[scene->mLoadedIndex] = NULL;
|
||||
scene->mLoadedIndex = 1 - scene->mLoadedIndex;
|
||||
iplSDChannelTitle_rebuildBannerLayout(scene);
|
||||
iplSDChannelTitle_setStartButtonPressed(scene);
|
||||
iplSDChannelTitle_813E630C(scene);
|
||||
iplSDChannelTitle_813E8B70(scene);
|
||||
scene->mState = 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateChangeWait(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E696C(SDChannelTitle* scene) {
|
||||
if (++scene->mChangeFrame > 20) {
|
||||
iplSDChannelTitle_playBannerIntro(scene);
|
||||
iplSDChannelTitle_813E8034(scene);
|
||||
scene->mState = 1;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateParentalResult(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E69B4(SDChannelTitle* scene) {
|
||||
ParentalDialog* parental = static_cast<ParentalDialog*>(System::getScene(0x1b));
|
||||
if (!parental && !System::getReservedScene()) {
|
||||
if (scene->mParentalResult == 1) {
|
||||
@@ -674,7 +674,7 @@ extern "C" void iplSDChannelTitle_updateParentalResult(SDChannelTitle* scene) {
|
||||
switch (result) {
|
||||
case 1:
|
||||
if (!scene->mParentalResult) {
|
||||
iplSDChannelTitle_prepareSceneExit(scene, scene->mNextScene);
|
||||
iplSDChannelTitle_813E899C(scene, scene->mNextScene);
|
||||
scene->mParentalResult = 1;
|
||||
}
|
||||
break;
|
||||
@@ -688,7 +688,7 @@ extern "C" void iplSDChannelTitle_updateParentalResult(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateDialogResult(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6B88(SDChannelTitle* scene) {
|
||||
int result = System::getDialog()->getLastResult();
|
||||
switch (result) {
|
||||
case 2: {
|
||||
@@ -708,8 +708,8 @@ extern "C" void iplSDChannelTitle_updateDialogResult(SDChannelTitle* scene) {
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
if (iplSDChannelTitle_isParentalEnabled()) {
|
||||
iplSDChannelTitle_openParentalDialog(scene, reinterpret_cast<void*>(1));
|
||||
if (iplSDChannelTitle_813E84C8()) {
|
||||
iplSDChannelTitle_813E850C(scene, reinterpret_cast<void*>(1));
|
||||
} else {
|
||||
scene->reserveAllSceneDestruction(0x12, reinterpret_cast<void*>(1));
|
||||
scene->mState = 7;
|
||||
@@ -719,7 +719,7 @@ extern "C" void iplSDChannelTitle_updateDialogResult(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_startCopyProgress(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6CCC(SDChannelTitle* scene) {
|
||||
if (scene->mpChannelSelect->getWorker()->is_working() || scene->mpProgressLayout->isPlaying(0) ||
|
||||
scene->mpButtonAnimations[3][2]->isPlaying()) {
|
||||
return;
|
||||
@@ -747,7 +747,7 @@ extern "C" void iplSDChannelTitle_startCopyProgress(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateCopyPrepare(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6E24(SDChannelTitle* scene) {
|
||||
if (scene->mpChannelSelect->getWorker()->is_working() || scene->mpProgressLayout->isPlaying(1)) {
|
||||
return;
|
||||
}
|
||||
@@ -762,9 +762,9 @@ extern "C" void iplSDChannelTitle_updateCopyPrepare(SDChannelTitle* scene) {
|
||||
if (static_cast<u32>(scene->mTitleRange.mByteSize) < 0x3800000) {
|
||||
nandRange.mByteSize = 0x3800000;
|
||||
nandRange.mCount = scene->mTitleRange.mCount;
|
||||
iplSDChannelTitle_copyTitleRange(&sdRange, &scene->mTitleRange);
|
||||
iplSDChannelTitle_813E6FA0(&sdRange, &scene->mTitleRange);
|
||||
} else {
|
||||
iplSDChannelTitle_copyTitleRange(&nandRange, iplSDChannelTitle_copyTitleRange(&sdRange, &scene->mTitleRange));
|
||||
iplSDChannelTitle_813E6FA0(&nandRange, iplSDChannelTitle_813E6FA0(&sdRange, &scene->mTitleRange));
|
||||
}
|
||||
SDMemory* memory = &scene->mMemory;
|
||||
setMemoryTitleLists(memory, sdRange, nandRange);
|
||||
@@ -786,7 +786,7 @@ extern "C" void iplSDChannelTitle_updateCopyPrepare(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_copyTitleRange(
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_813E6FA0(
|
||||
SDMemory::TitleRange* target, const SDMemory::TitleRange* source) {
|
||||
s32 bytes = source->mByteSize;
|
||||
target->mCount = source->mCount;
|
||||
@@ -794,7 +794,7 @@ extern "C" SDMemory::TitleRange* iplSDChannelTitle_copyTitleRange(
|
||||
return target;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateMemoryCalc(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E6FB4(SDChannelTitle* scene) {
|
||||
if (!scene->mMemory.calc()) {
|
||||
return;
|
||||
}
|
||||
@@ -818,7 +818,7 @@ extern "C" void iplSDChannelTitle_updateMemoryCalc(SDChannelTitle* scene) {
|
||||
scene->mState = 15;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateCopyStart(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7074(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->getWorker()->is_working()) {
|
||||
if (scene->mbCopiedTitle && !scene->mpProgressLayout->isPlaying(3)) {
|
||||
scene->mpProgressLayout->getAnim(3)->play();
|
||||
@@ -843,7 +843,7 @@ extern "C" void iplSDChannelTitle_updateCopyStart(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateAfterClearTmp(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E71A4(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->getWorker()->is_working()) {
|
||||
SCSetTmpTitleID(0);
|
||||
System::getChannelManager()->clearTmpChannel();
|
||||
@@ -862,7 +862,7 @@ extern "C" void iplSDChannelTitle_updateAfterClearTmp(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateEnqueueNotice(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E724C(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->getWorker()->is_working()) {
|
||||
if (scene->mpChannelSelect->enqueueResultNotice(static_cast<u32>(scene->mTitleId))) {
|
||||
scene->mState = 22;
|
||||
@@ -873,7 +873,7 @@ extern "C" void iplSDChannelTitle_updateEnqueueNotice(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateCopyProgress(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E72B8(SDChannelTitle* scene) {
|
||||
scene->mpProgressLayout->getAnim(2)->initAnmFrame(NandSDWorker::getCompletionPct());
|
||||
if (!scene->mpChannelSelect->getWorker()->is_working()) {
|
||||
int result = scene->mpChannelSelect->getWorker()->get_async_result();
|
||||
@@ -883,7 +883,7 @@ extern "C" void iplSDChannelTitle_updateCopyProgress(SDChannelTitle* scene) {
|
||||
snd::getSystem()->stopSE(scene->mpCopySound, 0);
|
||||
scene->mpCopySound = NULL;
|
||||
snd::getSystem()->startSE("WIPL_SE_COPY_FINISH");
|
||||
System::getTask1()->request(iplSDChannelTitle_fetchTmdViewTask, scene, NULL);
|
||||
System::getTask1()->request(iplSDChannelTitle_813E8E70, scene, NULL);
|
||||
scene->mState = 24;
|
||||
} else {
|
||||
SCSetTmpTitleID(0);
|
||||
@@ -900,7 +900,7 @@ extern "C" void iplSDChannelTitle_updateCopyProgress(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_showCopyError(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7418(SDChannelTitle* scene) {
|
||||
scene->mpProgressLayout->getAnim(3)->stop();
|
||||
snd::getSystem()->stopSE(scene->mpCopySound, 0);
|
||||
scene->mpCopySound = NULL;
|
||||
@@ -908,13 +908,13 @@ extern "C" void iplSDChannelTitle_showCopyError(SDChannelTitle* scene) {
|
||||
scene->mState = 27;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateCopyErrorDialog(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7498(SDChannelTitle* scene) {
|
||||
if (SCCheckStatus() != 1 && System::getDialog()->getLastResult() != -1) {
|
||||
scene->mState = 29;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_finishProgressHide(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E74EC(SDChannelTitle* scene) {
|
||||
if (!scene->mpProgressLayout->isPlaying(1) && !scene->mpButtonAnimations[1][0]->isPlaying() &&
|
||||
!scene->mpButtonAnimations[6][5]->isPlaying()) {
|
||||
scene->mbResetAcceptable = true;
|
||||
@@ -934,7 +934,7 @@ extern "C" void iplSDChannelTitle_finishProgressHide(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_returnToIdle(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7618(SDChannelTitle* scene) {
|
||||
if (!scene->mpProgressLayout->isPlaying(1) && !scene->mpButtonAnimations[6][5]->isPlaying()) {
|
||||
for (int button = 0; button < 2; ++button) {
|
||||
scene->mHoverCounts[button] = 0;
|
||||
@@ -944,11 +944,11 @@ extern "C" void iplSDChannelTitle_returnToIdle(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_loadTitleBanner(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E76C8(SDChannelTitle* scene) {
|
||||
int page;
|
||||
int index;
|
||||
if (System::getChannelManager()->isLoadedTmp() || System::getChannelManager()->hasChannel(scene->mTitleId, &page, &index)) {
|
||||
scene->mpBannerFiles[scene->mLoadedIndex] = iplSDChannelTitle_loadBannerMetaFiles(scene, scene->mTitleId,
|
||||
scene->mpBannerFiles[scene->mLoadedIndex] = iplSDChannelTitle_813E8DCC(scene, scene->mTitleId,
|
||||
&scene->mpSoundFiles[scene->mLoadedIndex]);
|
||||
if (scene->mbCopiedTitle) {
|
||||
scene->mState = 13;
|
||||
@@ -958,44 +958,44 @@ extern "C" void iplSDChannelTitle_loadTitleBanner(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateBannerLoad(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7780(SDChannelTitle* scene) {
|
||||
if (!scene->mpBannerFiles[scene->mLoadedIndex] || scene->mpBannerFiles[scene->mLoadedIndex]->isFinished()) {
|
||||
iplSDChannelTitle_loadBannerScript(scene, scene->mTitleId);
|
||||
iplSDChannelTitle_rebuildBannerLayout(scene);
|
||||
iplSDChannelTitle_813E7B30(scene, scene->mTitleId);
|
||||
iplSDChannelTitle_813E630C(scene);
|
||||
scene->mState = 4;
|
||||
iplSDChannelTitle_playBannerIntro(scene);
|
||||
iplSDChannelTitle_813E8034(scene);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_tryLaunchSelected(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7800(SDChannelTitle* scene) {
|
||||
if (static_cast<u32>(scene->mpChannelSelect->mCurrentSDState - 1) <= 1) {
|
||||
scene->mState = 1;
|
||||
} else {
|
||||
SDChannelObj* channel = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
if (iplSDChannelObj_hasAppMeta(channel)) {
|
||||
iplSDChannelTitle_beginLaunch(scene, channel);
|
||||
if (iplSDChannelObj_813E3330(channel)) {
|
||||
iplSDChannelTitle_813E86A0(scene, channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateTmdReady(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E787C(SDChannelTitle* scene) {
|
||||
if (scene->mbTmdReady) {
|
||||
if (!System::getChannelManager()->isMissingTicket(scene->mTitleId) && !utility::ESMisc::CheckTmdCountryCode(scene->mpTmd)) {
|
||||
System::getErrorHandler()->set(ErrorHandler::DEFAULT, 3, NULL, 0, -1);
|
||||
}
|
||||
scene->mMakerCode = scene->mpTmd->head.groupId;
|
||||
if (!iplSDChannelTitle_isNetworkAllowed(scene, scene->mpTmd, scene->mTitleId)) {
|
||||
iplSDChannelTitle_confirmLeaveToSettings(scene, false);
|
||||
if (!iplSDChannelTitle_813E847C(scene, scene->mpTmd, scene->mTitleId)) {
|
||||
iplSDChannelTitle_813E88CC(scene, false);
|
||||
scene->mNextScene = 18;
|
||||
} else if (iplSDChannelTitle_passesParentalCheck(scene, scene->mpTmd)) {
|
||||
iplSDChannelTitle_prepareSceneExit(scene, scene->mNextScene);
|
||||
} else if (iplSDChannelTitle_813E8F04(scene, scene->mpTmd)) {
|
||||
iplSDChannelTitle_813E899C(scene, scene->mNextScene);
|
||||
if (scene->mbCopiedTitle) {
|
||||
scene->mState = 25;
|
||||
} else {
|
||||
scene->mState = 15;
|
||||
}
|
||||
} else {
|
||||
iplSDChannelTitle_openParentalDialog(scene, NULL);
|
||||
iplSDChannelTitle_813E850C(scene, NULL);
|
||||
}
|
||||
if (scene->mpTmd) {
|
||||
scene->mpBannerHeap->free(scene->mpTmd);
|
||||
@@ -1003,7 +1003,7 @@ extern "C" void iplSDChannelTitle_updateTmdReady(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" bool iplSDChannelTitle_startZoomFade(SDChannelTitle* scene) {
|
||||
extern "C" bool iplSDChannelTitle_813E79B0(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->tellStartingZoomAnm()) {
|
||||
return false;
|
||||
}
|
||||
@@ -1012,7 +1012,7 @@ extern "C" bool iplSDChannelTitle_startZoomFade(SDChannelTitle* scene) {
|
||||
return true;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_preparePageRestart(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7A18(SDChannelTitle* scene) {
|
||||
if (!scene->mScriptEnabled || scene->mScriptState == 4) {
|
||||
if (scene->mpChannelSelect->prepareRestarting(scene->mPage)) {
|
||||
scene->mpChannelSelect->startPageTransition(scene->mPage, scene->mIndex);
|
||||
@@ -1034,7 +1034,7 @@ extern "C" void iplSDChannelTitle_preparePageRestart(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_loadBannerScript(SDChannelTitle* scene, ESTitleId title) {
|
||||
extern "C" void iplSDChannelTitle_813E7B30(SDChannelTitle* scene, ESTitleId title) {
|
||||
if (!System::isSafeMode()) {
|
||||
if (scene->mScriptEnabled) {
|
||||
delete scene->mpScriptFile;
|
||||
@@ -1052,7 +1052,7 @@ extern "C" void iplSDChannelTitle_loadBannerScript(SDChannelTitle* scene, ESTitl
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateScript(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7C0C(SDChannelTitle* scene) {
|
||||
if (scene->mScriptEnabled != 1) {
|
||||
return;
|
||||
}
|
||||
@@ -1061,16 +1061,16 @@ extern "C" void iplSDChannelTitle_updateScript(SDChannelTitle* scene) {
|
||||
}
|
||||
switch (scene->mScriptState) {
|
||||
case 0:
|
||||
iplSDChannelTitle_updateScriptIdle(scene);
|
||||
iplSDChannelTitle_813E7D14(scene);
|
||||
break;
|
||||
case 1:
|
||||
iplSDChannelTitle_updateScriptLoad(scene);
|
||||
iplSDChannelTitle_813E7DD0(scene);
|
||||
break;
|
||||
case 2:
|
||||
System::getCSManager()->calc();
|
||||
if (scene->mpRsoThread->IsThreadTerminated()) {
|
||||
if (System::getCSManager()->getAltSoundState() == 1) {
|
||||
iplSDChannelTitle_startBannerSound(scene);
|
||||
iplSDChannelTitle_813E8160(scene);
|
||||
System::getCSManager()->setAltSoundState(0);
|
||||
}
|
||||
System::getCSManager()->finish();
|
||||
@@ -1078,12 +1078,12 @@ extern "C" void iplSDChannelTitle_updateScript(SDChannelTitle* scene) {
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
iplSDChannelTitle_destroyScript(scene);
|
||||
iplSDChannelTitle_813E7FB0(scene);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateScriptIdle(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7D14(SDChannelTitle* scene) {
|
||||
if (scene->mbStopScript) {
|
||||
scene->mbStopScript = false;
|
||||
scene->mScriptFrame = 0;
|
||||
@@ -1101,7 +1101,7 @@ extern "C" void iplSDChannelTitle_updateScriptIdle(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_updateScriptLoad(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7DD0(SDChannelTitle* scene) {
|
||||
if (!scene->mpScriptFile->isFinished()) {
|
||||
return;
|
||||
}
|
||||
@@ -1132,7 +1132,7 @@ extern "C" void iplSDChannelTitle_updateScriptLoad(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_destroyScript(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E7FB0(SDChannelTitle* scene) {
|
||||
scene->mbScriptFailed = true;
|
||||
System::getCSManager()->destroy();
|
||||
scene->mScriptFrame = 0;
|
||||
@@ -1142,7 +1142,7 @@ extern "C" void iplSDChannelTitle_destroyScript(SDChannelTitle* scene) {
|
||||
scene->mScriptState = 0;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_playBannerIntro(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E8034(SDChannelTitle* scene) {
|
||||
if (scene->mpBannerAnimations[1]) {
|
||||
scene->mpBannerAnimations[1]->play();
|
||||
scene->mbBannerStarting = false;
|
||||
@@ -1153,7 +1153,7 @@ extern "C" void iplSDChannelTitle_playBannerIntro(SDChannelTitle* scene) {
|
||||
}
|
||||
if (scene->mState != 6) {
|
||||
if (!System::getChannelManager()->usesAltSound(scene->mTitleId) || !scene->mScriptEnabled) {
|
||||
iplSDChannelTitle_startBannerSound(scene);
|
||||
iplSDChannelTitle_813E8160(scene);
|
||||
}
|
||||
if (!scene->mpBannerLayout) {
|
||||
scene->mpProgressLayout->getAnim(0)->initAnmFrame();
|
||||
@@ -1163,7 +1163,7 @@ extern "C" void iplSDChannelTitle_playBannerIntro(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_startBannerSound(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E8160(SDChannelTitle* scene) {
|
||||
if (scene->mpSoundFiles[scene->mLoadedIndex] && scene->mpSoundFiles[scene->mLoadedIndex]->checkData() == 1) {
|
||||
void* sound = scene->mpSoundFiles[scene->mLoadedIndex]->getBuffer();
|
||||
u32 size = System::getChannelManager()->getSoundSize(scene->mTitleId);
|
||||
@@ -1171,15 +1171,15 @@ extern "C" void iplSDChannelTitle_startBannerSound(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnimations(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_bindBannerAnims(scene);
|
||||
extern "C" void iplSDChannelTitle_813E81FC(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_813E8360(scene);
|
||||
if (scene->mScriptEnabled) {
|
||||
memset(scene->mpScriptAnimations, 0, sizeof(scene->mpScriptAnimations));
|
||||
iplSDChannelTitle_bindRsoAnimations(scene, scene->mpBannerLayout, scene->mpScriptAnimations, "banner");
|
||||
iplSDChannelTitle_813E8258(scene, scene->mpBannerLayout, scene->mpScriptAnimations, "banner");
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_bindRsoAnimations(SDChannelTitle*, layout::Object* layout,
|
||||
extern "C" void iplSDChannelTitle_813E8258(SDChannelTitle*, layout::Object* layout,
|
||||
layout::Animator** animations, const char* prefix) {
|
||||
char groupName[8];
|
||||
char animationName[20];
|
||||
@@ -1203,7 +1203,7 @@ extern "C" void iplSDChannelTitle_bindRsoAnimations(SDChannelTitle*, layout::Obj
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnims(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E8360(SDChannelTitle* scene) {
|
||||
for (int index = 0; index < 3; ++index) {
|
||||
if (scene->mpBannerLayout->searchFile(sBannerAnimationNames[index])) {
|
||||
if (index == 0) {
|
||||
@@ -1226,14 +1226,14 @@ extern "C" void iplSDChannelTitle_bindBannerAnims(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_isNetworkAllowed(SDChannelTitle*, ESTmdView*, ESTitleId titleId) {
|
||||
extern "C" BOOL iplSDChannelTitle_813E847C(SDChannelTitle*, ESTmdView*, ESTitleId titleId) {
|
||||
if (!System::getChannelManager()->needsNetSetting(titleId) || ncd::NCDSetting::getConnectEnableFlag()) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_isParentalEnabled() {
|
||||
extern "C" BOOL iplSDChannelTitle_813E84C8() {
|
||||
SCParentalControlsInfo parental;
|
||||
if (SCGetParentalControl(&parental) && (parental.enable & SC_PARENTAL_FLAG_ENABLED)) {
|
||||
return TRUE;
|
||||
@@ -1241,7 +1241,7 @@ extern "C" BOOL iplSDChannelTitle_isParentalEnabled() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_openParentalDialog(SDChannelTitle* scene, void* arguments) {
|
||||
extern "C" void iplSDChannelTitle_813E850C(SDChannelTitle* scene, void* arguments) {
|
||||
System::getHomeButtonMenu()->enable();
|
||||
scene->mbResetAcceptable = true;
|
||||
if (static_cast<SDButton*>(System::getScene(0x24))->isLeftArrowVisible()) {
|
||||
@@ -1253,7 +1253,7 @@ extern "C" void iplSDChannelTitle_openParentalDialog(SDChannelTitle* scene, void
|
||||
scene->mState = 11;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_setPageAndIndex(SDChannelTitle* scene, int page, int index) {
|
||||
extern "C" void iplSDChannelTitle_813E85C0(SDChannelTitle* scene, int page, int index) {
|
||||
SDChannelObj* keep = NULL;
|
||||
if (scene->mpIconLayout) {
|
||||
keep = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
@@ -1264,14 +1264,14 @@ extern "C" void iplSDChannelTitle_setPageAndIndex(SDChannelTitle* scene, int pag
|
||||
SDChannelObj* channel = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
scene->mPosition.x = SDChannelSelect::getChannelPanePosition(scene->mpChannelSelect, scene->mIndex).x;
|
||||
scene->mPosition.y = SDChannelSelect::getChannelPanePosition(scene->mpChannelSelect, scene->mIndex).y;
|
||||
if (iplSDChannelObj_hasAppMeta(channel)) {
|
||||
iplSDChannelTitle_beginLaunch(scene, channel);
|
||||
if (iplSDChannelObj_813E3330(channel)) {
|
||||
iplSDChannelTitle_813E86A0(scene, channel);
|
||||
} else {
|
||||
scene->mState = 28;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_beginLaunch(SDChannelTitle* scene, SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelTitle_813E86A0(SDChannelTitle* scene, SDChannelObj* channel) {
|
||||
scene->mTitleId = channel->mAppMeta.titleId;
|
||||
if (scene->mScriptEnabled) {
|
||||
scene->mbStopScript = true;
|
||||
@@ -1280,7 +1280,7 @@ extern "C" void iplSDChannelTitle_beginLaunch(SDChannelTitle* scene, SDChannelOb
|
||||
scene->mState = 8;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_cleanupAndLeave(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E86D8(SDChannelTitle* scene) {
|
||||
scene->mParentalResult = 0;
|
||||
scene->mbStartAnimation = false;
|
||||
static_cast<SDButton*>(System::getScene(0x24))->animation(15);
|
||||
@@ -1311,7 +1311,7 @@ extern "C" void iplSDChannelTitle_cleanupAndLeave(SDChannelTitle* scene) {
|
||||
System::getHomeButtonMenu()->disable();
|
||||
System::stopReceiveSchedule();
|
||||
if (hasTitle || hasTemporaryTitle) {
|
||||
System::getTask1()->request(iplSDChannelTitle_fetchTmdViewTask, scene, NULL);
|
||||
System::getTask1()->request(iplSDChannelTitle_813E8E70, scene, NULL);
|
||||
scene->mbCopiedTitle = false;
|
||||
scene->mState = 13;
|
||||
} else {
|
||||
@@ -1322,7 +1322,7 @@ extern "C" void iplSDChannelTitle_cleanupAndLeave(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_confirmLeaveToSettings(SDChannelTitle* scene, bool settings) {
|
||||
extern "C" void iplSDChannelTitle_813E88CC(SDChannelTitle* scene, bool settings) {
|
||||
if (settings) {
|
||||
scene->reserveAllSceneDestruction(0x12, reinterpret_cast<void*>(1));
|
||||
scene->mState = 7;
|
||||
@@ -1338,7 +1338,7 @@ extern "C" void iplSDChannelTitle_confirmLeaveToSettings(SDChannelTitle* scene,
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_prepareSceneExit(SDChannelTitle* scene, int nextScene) {
|
||||
extern "C" void iplSDChannelTitle_813E899C(SDChannelTitle* scene, int nextScene) {
|
||||
for (int index = 0; index < 4; ++index) {
|
||||
controller::Interface* controller = System::getController(index);
|
||||
if (controller) {
|
||||
@@ -1351,7 +1351,7 @@ extern "C" void iplSDChannelTitle_prepareSceneExit(SDChannelTitle* scene, int ne
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_flushSaveBeforeExit(SDChannelTitle* scene, int nextScene) {
|
||||
extern "C" void iplSDChannelTitle_813E8A20(SDChannelTitle* scene, int nextScene) {
|
||||
int page;
|
||||
int index;
|
||||
if (System::getChannelManager()->hasChannel(scene->mTitleId, &page, &index)) {
|
||||
@@ -1363,7 +1363,7 @@ extern "C" void iplSDChannelTitle_flushSaveBeforeExit(SDChannelTitle* scene, int
|
||||
__WPADReconnect(TRUE);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_rebootSystem(SDChannelTitle*) {
|
||||
extern "C" void iplSDChannelTitle_813E8AB4(SDChannelTitle*) {
|
||||
snd::getSystem()->stopAllSound(0);
|
||||
snd::getSystem()->calc();
|
||||
VISetBlack(TRUE);
|
||||
@@ -1374,11 +1374,11 @@ extern "C" void iplSDChannelTitle_rebootSystem(SDChannelTitle*) {
|
||||
OSRebootSystem();
|
||||
}
|
||||
|
||||
extern "C" bool iplSDChannelTitle_isLaunchDelayDone(SDChannelTitle* scene) {
|
||||
extern "C" bool iplSDChannelTitle_813E8B1C(SDChannelTitle* scene) {
|
||||
return static_cast<u32>(120.0f / System::getAnimDelta()) < scene->mLaunchFrame;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_setStartButtonPressed(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_813E8B70(SDChannelTitle* scene) {
|
||||
if (!scene->mStartButtonState) {
|
||||
scene->mpButtonAnimations[5][3]->stop();
|
||||
scene->mpButtonAnimations[5][4]->play();
|
||||
@@ -1388,7 +1388,7 @@ extern "C" void iplSDChannelTitle_setStartButtonPressed(SDChannelTitle* scene) {
|
||||
scene->mStartButtonState = 1;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_drawDimOverlay(SDChannelTitle*, const nw4r::ut::Rect& bounds, GXColor color) {
|
||||
extern "C" void iplSDChannelTitle_813E8C08(SDChannelTitle*, const nw4r::ut::Rect& bounds, GXColor color) {
|
||||
nw4r::ut::Rect screen;
|
||||
System::getProjectionRect(&screen);
|
||||
nw4r::ut::Rect rectangles[4];
|
||||
@@ -1413,7 +1413,7 @@ extern "C" void iplSDChannelTitle_drawDimOverlay(SDChannelTitle*, const nw4r::ut
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_setPaneMessage(SDChannelTitle*, nw4r::lyt::Pane* pane, u32 message, bool allocate) {
|
||||
extern "C" void iplSDChannelTitle_813E8D14(SDChannelTitle*, nw4r::lyt::Pane* pane, u32 message, bool allocate) {
|
||||
wchar_t text[256];
|
||||
wcsncpy(text, System::getMessage(message), 256);
|
||||
text[255] = 0;
|
||||
@@ -1425,13 +1425,13 @@ extern "C" void iplSDChannelTitle_setPaneMessage(SDChannelTitle*, nw4r::lyt::Pan
|
||||
textBox->SetString(text);
|
||||
}
|
||||
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_loadBannerMetaFiles(SDChannelTitle*, ESTitleId title, nand::File** sound) {
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_813E8DCC(SDChannelTitle*, ESTitleId title, nand::File** sound) {
|
||||
*sound = System::getChannelManager()->readSoundMetaAsync(System::getMem2App(), title);
|
||||
nand::MetaFile* banner = System::getChannelManager()->readBannerMetaAsync(System::getMem2App(), title);
|
||||
return new (System::getMem2App(), 4) nand::LayoutFile(banner, NULL);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_fetchTmdViewTask(void* argument) {
|
||||
extern "C" void iplSDChannelTitle_813E8E70(void* argument) {
|
||||
SDChannelTitle* scene = static_cast<SDChannelTitle*>(argument);
|
||||
ESError result = utility::ESMisc::GetTmdView(scene->mpBannerHeap, scene->mTitleId, &scene->mpTmd);
|
||||
if (result) {
|
||||
@@ -1441,7 +1441,7 @@ extern "C" void iplSDChannelTitle_fetchTmdViewTask(void* argument) {
|
||||
scene->mbTmdReady = true;
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_passesParentalCheck(SDChannelTitle* scene, ESTmdView* tmd) {
|
||||
extern "C" BOOL iplSDChannelTitle_813E8F04(SDChannelTitle* scene, ESTmdView* tmd) {
|
||||
if (!utility::ESMisc::__IsPCEnable()) {
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1467,7 +1467,7 @@ extern "C" BOOL iplSDChannelTitle_passesParentalCheck(SDChannelTitle* scene, EST
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* handler, u32 component,
|
||||
extern "C" void iplSDChannelTitle_813E9004(SDTitlePaneEventHandler* handler, u32 component,
|
||||
u32 event, const controller::Interface* controller) {
|
||||
const char* paneName = handler->getPane(component)->GetName();
|
||||
switch (event) {
|
||||
@@ -1477,12 +1477,12 @@ extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* hand
|
||||
handler->mpScene->mpButtonAnimations[2][2]->play();
|
||||
snd::getSystem()->startSE("WIPL_SE_BT_PUSH");
|
||||
handler->mpScene->mState = 10;
|
||||
iplSDChannelTitle_preparePageRestart(handler->mpScene);
|
||||
iplSDChannelTitle_813E7A18(handler->mpScene);
|
||||
} else if (strcmp(paneName, sButtonNames[1]) == 0) {
|
||||
if (handler->mpScene->mStartButtonState != 2) {
|
||||
snd::getSystem()->startSE("WIPL_SE_GRAY_BUTTON");
|
||||
} else {
|
||||
iplSDChannelTitle_cleanupAndLeave(handler->mpScene);
|
||||
iplSDChannelTitle_813E86D8(handler->mpScene);
|
||||
handler->mpScene->mpButtonAnimations[3][2]->play();
|
||||
snd::getSystem()->stopSE(handler->mpScene->mpSoundHandle, 30);
|
||||
snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
@@ -1526,7 +1526,7 @@ extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* hand
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_onTitleButtonEvent(SDTitleButtonEventHandler* handler, u32 component,
|
||||
extern "C" void iplSDChannelTitle_813E92EC(SDTitleButtonEventHandler* handler, u32 component,
|
||||
u32 event, const controller::Interface* controller) {
|
||||
const char* name = handler->getPane(component)->GetName();
|
||||
switch (event) {
|
||||
@@ -1538,14 +1538,14 @@ extern "C" void iplSDChannelTitle_onTitleButtonEvent(SDTitleButtonEventHandler*
|
||||
int index;
|
||||
handler->mpScene->mpChannelSelect->findAdjacentChannel(1, &page, &index);
|
||||
button->animation(7);
|
||||
iplSDChannelTitle_setPageAndIndex(handler->mpScene, page, index);
|
||||
iplSDChannelTitle_813E85C0(handler->mpScene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
} else if (strcmp(name, SDButton::getButtonName(SDButton::BTN_ARROW_RIGHT)) == 0) {
|
||||
int page;
|
||||
int index;
|
||||
handler->mpScene->mpChannelSelect->findAdjacentChannel(0, &page, &index);
|
||||
button->animation(8);
|
||||
iplSDChannelTitle_setPageAndIndex(handler->mpScene, page, index);
|
||||
iplSDChannelTitle_813E85C0(handler->mpScene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
}
|
||||
}
|
||||
@@ -1558,11 +1558,11 @@ void SDChannelTitle::startResetting() {
|
||||
}
|
||||
|
||||
void SDTitleButtonEventHandler::onEventDerived(u32 component, u32 event, const controller::Interface* controller) {
|
||||
iplSDChannelTitle_onTitleButtonEvent(this, component, event, controller);
|
||||
iplSDChannelTitle_813E92EC(this, component, event, controller);
|
||||
}
|
||||
|
||||
void SDTitlePaneEventHandler::onEvent(u32 component, u32 event, void* data) {
|
||||
iplSDChannelTitle_onTitlePaneEvent(this, component, event, static_cast<const controller::Interface*>(data));
|
||||
iplSDChannelTitle_813E9004(this, component, event, static_cast<const controller::Interface*>(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#define IPL_CONTROLLER_TRIVIAL_RECT_DTOR
|
||||
#include <nw4r/ut/Rect.h>
|
||||
#undef IPL_CONTROLLER_TRIVIAL_RECT_DTOR
|
||||
|
||||
#include "system/iplSystem.h"
|
||||
#include "system/iplNand.h"
|
||||
#include "utility/iplGraphics.h"
|
||||
|
||||
Reference in New Issue
Block a user