Compare commits
10 Commits
agent/asm2
...
cleanup/sd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3febdb4e7 | ||
|
|
5d1a8bd697 | ||
|
|
c42fb1fe71 | ||
|
|
8e96e8a722 | ||
|
|
854cc579df | ||
|
|
26a36e2964 | ||
|
|
8729671a43 | ||
|
|
08f5f08a13 | ||
|
|
893afc25b4 | ||
|
|
dee9f9d8ea |
@@ -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_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
|
||||
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
|
||||
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
|
||||
Zi8_814813FC = .text:0x814813FC; // type:function size:0xC4
|
||||
Zi8LookupKoreanChar = .text:0x814813FC; // type:function size:0xC4
|
||||
Zi8GetKoreanCandidates = .text:0x814814C0; // type:function size:0x9AC
|
||||
Zi8_81481E6C = .text:0x81481E6C; // type:function size:0x9D4
|
||||
Zi8MatchKoreanSequence = .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
|
||||
@@ -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
|
||||
jumptable_81668EF8 = .data:0x81668EF8; // type:object size:0xFC scope:local
|
||||
scHwKeyboardConvertWCCodeJumpTable = .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
|
||||
|
||||
@@ -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}=1",
|
||||
f"--defsym VERSION_{config.version}",
|
||||
]
|
||||
config.ldflags = [
|
||||
"-fp hardware",
|
||||
@@ -1218,7 +1218,7 @@ config.libs = [
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGBA8.c"),
|
||||
|
||||
Object(Matching, "b65/iqdec_b65_frv32.c", source="b65/iqdec_b65_frv32.s"),
|
||||
Object(NonMatching, "b65/iqdec_b65_frv32.c"),
|
||||
]
|
||||
),
|
||||
# NW4R
|
||||
|
||||
@@ -26,6 +26,18 @@ namespace ipl {
|
||||
namespace savedata {
|
||||
extern "C" BOOL isTitleCached(void* manager, ESTitleId titleId);
|
||||
|
||||
struct ChannelSlot {
|
||||
u8 valid; // 0x00 (primaryType)
|
||||
u8 pad[3]; // 0x01
|
||||
s32 titleId; // 0x04 (sceneID)
|
||||
u8 rest[8]; // 0x08
|
||||
};
|
||||
|
||||
struct ChannelPage {
|
||||
u8 pad[0x30];
|
||||
ChannelSlot slots[MAX_CHANNEL_INDEX]; // 0x30
|
||||
};
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
Manager(EGG::Heap* heap);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Matching build uses iqdec_b65_frv32.s (retail extract); keep C for reference.
|
||||
#include <string.h>
|
||||
#include <tmc_jpeg_internal.h>
|
||||
|
||||
|
||||
@@ -1,315 +0,0 @@
|
||||
.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 Zi8_814813FC(ziWChar character, ziU8* result, ziU16* index, ziPtr workData) {
|
||||
ziU8 Zi8LookupKoreanChar(ziWChar character, ziU8* result, ziU16* index, ziPtr workData) {
|
||||
ziU16 i;
|
||||
ziU8* table;
|
||||
|
||||
@@ -23,7 +23,7 @@ ziU8 Zi8_814813FC(ziWChar character, ziU8* result, ziU16* index, ziPtr workData)
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
ziU8 Zi8MatchKoreanSequence(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 (Zi8_814813FC(buffer[currentCharacter], &state.characterIndex,
|
||||
if (Zi8LookupKoreanChar(buffer[currentCharacter], &state.characterIndex,
|
||||
&state.inputIndex, workData) != 0) {
|
||||
state.matched = Zi8_81481E6C(&state.nextIndex,
|
||||
state.matched = Zi8MatchKoreanSequence(&state.nextIndex,
|
||||
buffer + currentCharacter + 1,
|
||||
state.characterIndex,
|
||||
(state.elementIndex - currentCharacter) - 1,
|
||||
@@ -235,7 +235,7 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
return result;
|
||||
}
|
||||
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData) {
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData) {
|
||||
ziU16 nestedScratch;
|
||||
ziU16 nestedIndexStorage;
|
||||
ziU16 index1;
|
||||
@@ -375,8 +375,8 @@ ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPt
|
||||
}
|
||||
if ((index3 >= tableCount) || (firstCharacter != (table + index3 * 4)[2]) ||
|
||||
(input[1] != (table + index3 * 4)[1]) || (input[0] != table[index3 * 4])) {
|
||||
if ((Zi8_814813FC(input[1], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 2, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8LookupKoreanChar(input[1], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 2, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index1;
|
||||
return 1;
|
||||
}
|
||||
@@ -397,8 +397,8 @@ ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPt
|
||||
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 ((Zi8_814813FC(input[2], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 3, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8LookupKoreanChar(input[2], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 3, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index2;
|
||||
return 2;
|
||||
}
|
||||
@@ -409,8 +409,8 @@ ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPt
|
||||
*resultIndex = index4;
|
||||
return 4;
|
||||
}
|
||||
if ((Zi8_814813FC(input[3], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8_81481E6C(&nestedIndexStorage, input + 4, mappedCharacter, 1, workData) != 0)) {
|
||||
if ((Zi8LookupKoreanChar(input[3], &mappedCharacter, &nestedScratch, workData) != 0) &&
|
||||
(Zi8MatchKoreanSequence(&nestedIndexStorage, input + 4, mappedCharacter, 1, workData) != 0)) {
|
||||
*resultIndex = index3;
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ extern CDBErr CDBDatabaseInit();
|
||||
extern CDBErr CDBDatabaseOpen();
|
||||
extern CDBErr CDBDatabaseClose();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnce();
|
||||
extern CDBErr CDBDatabaseCreateRecordAtOnce();
|
||||
extern CDBErr CDBDatabaseCreateRecordAtOnce(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, u8* recordData, u32 recordDataSize);
|
||||
extern CDBErr CDBDatabaseCreateRecordAtOnceEx();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnceEx();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnceEx_(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, int year, int month, int day, int hour, int min, int sec, u8* recordData, u32 recordDataSize, char* makerCode, char* gameCode);
|
||||
@@ -206,47 +206,19 @@ CDBErr CDBDatabasePrivateCreateRecordAtOnce(CDBDatabase* database, CDBRecord* re
|
||||
return result;
|
||||
}
|
||||
|
||||
asm CDBErr CDBDatabaseCreateRecordAtOnce(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, u8* recordData, u32 recordDataSize) {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
addi r11, r1, 0x40
|
||||
bl _savegpr_22
|
||||
lhz r28, 0x0(r3)
|
||||
mr r22, r3
|
||||
lwz r29, 0x4(r3)
|
||||
mr r23, r4
|
||||
mr r24, r5
|
||||
mr r25, r6
|
||||
mr r26, r7
|
||||
mr r27, r8
|
||||
bl OSGetTime
|
||||
mr r30, r4
|
||||
mr r31, r3
|
||||
bl CDBLock
|
||||
stw r26, 0x8(r1)
|
||||
mr r3, r22
|
||||
mr r4, r23
|
||||
mr r5, r24
|
||||
stw r27, 0xc(r1)
|
||||
mr r6, r25
|
||||
mr r8, r30
|
||||
mr r7, r31
|
||||
mr r9, r29
|
||||
mr r10, r28
|
||||
bl CDBDatabaseCreateRecordImAtOnce_
|
||||
mr r28, r3
|
||||
bl CDBUnlock
|
||||
addi r11, r1, 0x40
|
||||
mr r3, r28
|
||||
bl _restgpr_22
|
||||
lwz r0, 0x44(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
#endif
|
||||
CDBErr CDBDatabaseCreateRecordAtOnce(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, u8* recordData, u32 recordDataSize) {
|
||||
OSTime time;
|
||||
u32 gameCode;
|
||||
u16 makerCode;
|
||||
CDBErr result;
|
||||
|
||||
makerCode = database->makerCode;
|
||||
gameCode = database->gameCode;
|
||||
time = OSGetTime();
|
||||
CDBLock();
|
||||
result = CDBDatabaseCreateRecordImAtOnce_(database, record, typeStr, fileTypeStr, time, gameCode, makerCode, recordData, recordDataSize);
|
||||
CDBUnlock();
|
||||
return result;
|
||||
}
|
||||
|
||||
CDBErr CDBDatabaseCreateRecordAtOnceEx(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, u8* recordData, u32 recordDataSize, int year, int month, int day, int hour, int min, int sec) {
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C" void updateFromReceiver__Q29textinput13CommandSenderFUlPv();
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
typedef void (*KeyboardDataFunction)();
|
||||
extern "C" KeyboardDataFunction const jumptable_81668EF8[0x3f] = {
|
||||
extern "C" KeyboardDataFunction const scHwKeyboardConvertWCCodeJumpTable[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, jumptable_81668EF8@ha
|
||||
lis r3, scHwKeyboardConvertWCCodeJumpTable@ha
|
||||
slwi r0, r0, 2
|
||||
addi r3, r3, jumptable_81668EF8@l
|
||||
addi r3, r3, scHwKeyboardConvertWCCodeJumpTable@l
|
||||
lwzx r3, r3, r0
|
||||
mtctr r3
|
||||
bctr
|
||||
|
||||
@@ -509,13 +509,13 @@ void Base::setLanguage(Language language) {
|
||||
case UK:
|
||||
setPredictMode(PM_En);
|
||||
break;
|
||||
case FR:
|
||||
case DE:
|
||||
setPredictMode(PM_De);
|
||||
break;
|
||||
case DE:
|
||||
case IT:
|
||||
setPredictMode(PM_It);
|
||||
break;
|
||||
case IT:
|
||||
case NL:
|
||||
setPredictMode(PM_Nl);
|
||||
break;
|
||||
case SP:
|
||||
@@ -525,7 +525,7 @@ void Base::setLanguage(Language language) {
|
||||
setPredictMode(PM_USSp);
|
||||
}
|
||||
break;
|
||||
case NL:
|
||||
case FR:
|
||||
if (meDestination == DST_EU) {
|
||||
setPredictMode(PM_Fr);
|
||||
} else {
|
||||
@@ -3470,7 +3470,7 @@ void NormalButtonAnmPane::onAnmEvent(AnmPaneEvent event) {
|
||||
changeAnimation(ANM_Pushed);
|
||||
}
|
||||
switch (meState) {
|
||||
case ANM_FocusOut:
|
||||
case ANM_FadeIn:
|
||||
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_FadeIn:
|
||||
case ANM_FocusOut:
|
||||
if (event == PE_4) changeAnimation(ANM_Normal);
|
||||
if (event == PE_1) changeAnimation(ANM_FocusIn);
|
||||
break;
|
||||
|
||||
@@ -749,7 +749,7 @@ void GCWindow::onMemEvent(long event, u8 cardState) {
|
||||
break;
|
||||
}
|
||||
goto process_complete;
|
||||
case 0x15:
|
||||
default:
|
||||
return;
|
||||
|
||||
process_complete:
|
||||
@@ -758,6 +758,18 @@ 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 13:
|
||||
case 19:
|
||||
onDialogState13();
|
||||
break;
|
||||
case 14:
|
||||
case 13:
|
||||
onDialogState14();
|
||||
break;
|
||||
case 15:
|
||||
case 14:
|
||||
onDialogState15();
|
||||
break;
|
||||
case 16:
|
||||
case 15:
|
||||
onDialogState16();
|
||||
break;
|
||||
case 17:
|
||||
case 16:
|
||||
onDialogState17();
|
||||
break;
|
||||
case 18:
|
||||
case 17:
|
||||
onDialogState18();
|
||||
break;
|
||||
case 19:
|
||||
case 18:
|
||||
onDialogState19();
|
||||
break;
|
||||
case 20:
|
||||
|
||||
@@ -107,11 +107,6 @@ 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_813E3534(SDChannelObj* channel, int enabled);
|
||||
|
||||
|
||||
@@ -23,63 +23,63 @@ namespace scene {
|
||||
class SDTitlePaneEventHandler;
|
||||
class SDTitleButtonEventHandler;
|
||||
|
||||
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,
|
||||
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,
|
||||
layout::Animator** animations, const char* prefix);
|
||||
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_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_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*);
|
||||
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*);
|
||||
|
||||
static inline void setMemoryTitleLists(SDMemory* memory, SDMemory::TitleRange sdRange,
|
||||
SDMemory::TitleRange nandRange) {
|
||||
@@ -136,9 +136,9 @@ public:
|
||||
|
||||
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);
|
||||
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);
|
||||
|
||||
SDChannelTitle::SDChannelTitle(EGG::Heap* heap, SDChannelSelect* channelSelect)
|
||||
: FaderSceneBase(heap), mState(0), mNextScene(0), mParentalResult(0),
|
||||
@@ -194,8 +194,8 @@ void SDChannelTitle::create() {
|
||||
}
|
||||
}
|
||||
}
|
||||
iplSDChannelTitle_813E8D14(this, mpLayout->FindPaneByName(sTextNames[0]), 0xa2, true);
|
||||
iplSDChannelTitle_813E8D14(this, mpLayout->FindPaneByName(sTextNames[1]), 2, true);
|
||||
iplSDChannelTitle_setPaneMessage(this, mpLayout->FindPaneByName(sTextNames[0]), 0xa2, true);
|
||||
iplSDChannelTitle_setPaneMessage(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_813E630C(this);
|
||||
iplSDChannelTitle_rebuildBannerLayout(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_813E79B0(this);
|
||||
iplSDChannelTitle_startZoomFade(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_813E7C0C(this);
|
||||
iplSDChannelTitle_updateScript(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_813E79B0(this);
|
||||
iplSDChannelTitle_startZoomFade(this);
|
||||
return FADER_SCN_CONTINUE;
|
||||
}
|
||||
if (!mpFade->isPlaying()) {
|
||||
iplSDChannelTitle_813E8034(this);
|
||||
iplSDChannelTitle_playBannerIntro(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_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 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 14: return FADER_SCN_CONTINUE;
|
||||
case 15: iplSDChannelTitle_813E7074(this); break;
|
||||
case 16: iplSDChannelTitle_813E71A4(this); break;
|
||||
case 15: iplSDChannelTitle_updateCopyStart(this); break;
|
||||
case 16: iplSDChannelTitle_updateAfterClearTmp(this); break;
|
||||
case 17: SCSetTmpTitleID(mTitleId); SCFlushAsync(NULL); mState = 18; break;
|
||||
case 18: if (SCCheckStatus() != 1) { mState = 21; } 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;
|
||||
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;
|
||||
}
|
||||
if (mState == 5) {
|
||||
mbStopScript = true;
|
||||
++mLaunchFrame;
|
||||
System::getPointer()->setVisible(false);
|
||||
return static_cast<FaderSceneCommand>(iplSDChannelTitle_813E8B1C(this));
|
||||
return static_cast<FaderSceneCommand>(iplSDChannelTitle_isLaunchDelayDone(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_813E8AB4(this);
|
||||
iplSDChannelTitle_rebootSystem(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_813E7C0C(this);
|
||||
iplSDChannelTitle_updateScript(this);
|
||||
}
|
||||
if (WPADGetStatus() != 0) {
|
||||
OSReport("wait for WPAD\n");
|
||||
@@ -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_813E8C08(this, bounds, mask);
|
||||
iplSDChannelTitle_drawDimOverlay(this, bounds, mask);
|
||||
} else {
|
||||
if (mpIconLayout) {
|
||||
utility::Graphics::setOrthoProjection(0);
|
||||
@@ -522,14 +522,14 @@ BOOL SDChannelTitle::isResetAcceptable() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E630C(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_813E6348(scene);
|
||||
extern "C" void iplSDChannelTitle_rebuildBannerLayout(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_createBannerLayout(scene);
|
||||
if (scene->mpBannerLayout) {
|
||||
scene->mpBannerLayout->finishBinding();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6348(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_createBannerLayout(SDChannelTitle* scene) {
|
||||
if (scene->mpIconLayout) {
|
||||
scene->mpIconLayout->destroyHeap();
|
||||
scene->mpIconLayout = NULL;
|
||||
@@ -538,17 +538,17 @@ extern "C" void iplSDChannelTitle_813E6348(SDChannelTitle* scene) {
|
||||
scene->mpBannerLayout = layout::Object::create(scene->mpBannerHeap, 0x40000,
|
||||
scene->mpBannerFiles[scene->mLoadedIndex], "arc", "banner.brlyt");
|
||||
iplSDChannelObj_813E3580(scene->mpBannerLayout);
|
||||
iplSDChannelTitle_813E81FC(scene);
|
||||
iplSDChannelTitle_bindBannerAnimations(scene);
|
||||
} else {
|
||||
scene->mpBannerLayout = NULL;
|
||||
for (int index = 0; index < 3; ++index) {
|
||||
scene->mpBannerAnimations[index] = NULL;
|
||||
}
|
||||
iplSDChannelTitle_813E6424(scene);
|
||||
iplSDChannelTitle_createIconLayout(scene);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6424(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_createIconLayout(SDChannelTitle* scene) {
|
||||
SDChannelObj* channel = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
if (channel) {
|
||||
scene->mpIconLayout = layout::Object::create(scene->mpIconHeap, 0x8000,
|
||||
@@ -570,7 +570,7 @@ extern "C" void iplSDChannelTitle_813E6424(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E65D4(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateIdleState(SDChannelTitle* scene) {
|
||||
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
|
||||
if (button && button->isActive()) {
|
||||
button->update();
|
||||
@@ -578,18 +578,18 @@ extern "C" void iplSDChannelTitle_813E65D4(SDChannelTitle* scene) {
|
||||
if (scene->mState == 1) {
|
||||
if (static_cast<u32>(scene->mpChannelSelect->mCurrentSDState - 1) <= 1) {
|
||||
scene->mState = 10;
|
||||
iplSDChannelTitle_813E7A18(scene);
|
||||
iplSDChannelTitle_preparePageRestart(scene);
|
||||
} else {
|
||||
controller::Interface* controller = System::getMasterController();
|
||||
int page;
|
||||
int index;
|
||||
if (controller->down(0x30001000)) {
|
||||
scene->mpChannelSelect->findAdjacentChannel(1, &page, &index);
|
||||
iplSDChannelTitle_813E85C0(scene, page, index);
|
||||
iplSDChannelTitle_setPageAndIndex(scene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
} else if (controller->down(0x6000010)) {
|
||||
scene->mpChannelSelect->findAdjacentChannel(0, &page, &index);
|
||||
iplSDChannelTitle_813E85C0(scene, page, index);
|
||||
iplSDChannelTitle_setPageAndIndex(scene, page, index);
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
} else {
|
||||
scene->mpPaneManager->update();
|
||||
@@ -603,7 +603,7 @@ extern "C" void iplSDChannelTitle_813E65D4(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6760(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateChangeState(SDChannelTitle* scene) {
|
||||
if (static_cast<u32>(scene->mpChannelSelect->mCurrentSDState - 1) <= 1) {
|
||||
scene->mState = 1;
|
||||
} else {
|
||||
@@ -630,21 +630,21 @@ extern "C" void iplSDChannelTitle_813E6760(SDChannelTitle* scene) {
|
||||
}
|
||||
scene->mpSoundFiles[scene->mLoadedIndex] = NULL;
|
||||
scene->mLoadedIndex = 1 - scene->mLoadedIndex;
|
||||
iplSDChannelTitle_813E630C(scene);
|
||||
iplSDChannelTitle_813E8B70(scene);
|
||||
iplSDChannelTitle_rebuildBannerLayout(scene);
|
||||
iplSDChannelTitle_setStartButtonPressed(scene);
|
||||
scene->mState = 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E696C(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateChangeWait(SDChannelTitle* scene) {
|
||||
if (++scene->mChangeFrame > 20) {
|
||||
iplSDChannelTitle_813E8034(scene);
|
||||
iplSDChannelTitle_playBannerIntro(scene);
|
||||
scene->mState = 1;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E69B4(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateParentalResult(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_813E69B4(SDChannelTitle* scene) {
|
||||
switch (result) {
|
||||
case 1:
|
||||
if (!scene->mParentalResult) {
|
||||
iplSDChannelTitle_813E899C(scene, scene->mNextScene);
|
||||
iplSDChannelTitle_prepareSceneExit(scene, scene->mNextScene);
|
||||
scene->mParentalResult = 1;
|
||||
}
|
||||
break;
|
||||
@@ -688,7 +688,7 @@ extern "C" void iplSDChannelTitle_813E69B4(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6B88(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateDialogResult(SDChannelTitle* scene) {
|
||||
int result = System::getDialog()->getLastResult();
|
||||
switch (result) {
|
||||
case 2: {
|
||||
@@ -708,8 +708,8 @@ extern "C" void iplSDChannelTitle_813E6B88(SDChannelTitle* scene) {
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
if (iplSDChannelTitle_813E84C8()) {
|
||||
iplSDChannelTitle_813E850C(scene, reinterpret_cast<void*>(1));
|
||||
if (iplSDChannelTitle_isParentalEnabled()) {
|
||||
iplSDChannelTitle_openParentalDialog(scene, reinterpret_cast<void*>(1));
|
||||
} else {
|
||||
scene->reserveAllSceneDestruction(0x12, reinterpret_cast<void*>(1));
|
||||
scene->mState = 7;
|
||||
@@ -719,7 +719,7 @@ extern "C" void iplSDChannelTitle_813E6B88(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6CCC(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_startCopyProgress(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_813E6CCC(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6E24(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateCopyPrepare(SDChannelTitle* scene) {
|
||||
if (scene->mpChannelSelect->getWorker()->is_working() || scene->mpProgressLayout->isPlaying(1)) {
|
||||
return;
|
||||
}
|
||||
@@ -762,9 +762,9 @@ extern "C" void iplSDChannelTitle_813E6E24(SDChannelTitle* scene) {
|
||||
if (static_cast<u32>(scene->mTitleRange.mByteSize) < 0x3800000) {
|
||||
nandRange.mByteSize = 0x3800000;
|
||||
nandRange.mCount = scene->mTitleRange.mCount;
|
||||
iplSDChannelTitle_813E6FA0(&sdRange, &scene->mTitleRange);
|
||||
iplSDChannelTitle_copyTitleRange(&sdRange, &scene->mTitleRange);
|
||||
} else {
|
||||
iplSDChannelTitle_813E6FA0(&nandRange, iplSDChannelTitle_813E6FA0(&sdRange, &scene->mTitleRange));
|
||||
iplSDChannelTitle_copyTitleRange(&nandRange, iplSDChannelTitle_copyTitleRange(&sdRange, &scene->mTitleRange));
|
||||
}
|
||||
SDMemory* memory = &scene->mMemory;
|
||||
setMemoryTitleLists(memory, sdRange, nandRange);
|
||||
@@ -786,7 +786,7 @@ extern "C" void iplSDChannelTitle_813E6E24(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_813E6FA0(
|
||||
extern "C" SDMemory::TitleRange* iplSDChannelTitle_copyTitleRange(
|
||||
SDMemory::TitleRange* target, const SDMemory::TitleRange* source) {
|
||||
s32 bytes = source->mByteSize;
|
||||
target->mCount = source->mCount;
|
||||
@@ -794,7 +794,7 @@ extern "C" SDMemory::TitleRange* iplSDChannelTitle_813E6FA0(
|
||||
return target;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E6FB4(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateMemoryCalc(SDChannelTitle* scene) {
|
||||
if (!scene->mMemory.calc()) {
|
||||
return;
|
||||
}
|
||||
@@ -818,7 +818,7 @@ extern "C" void iplSDChannelTitle_813E6FB4(SDChannelTitle* scene) {
|
||||
scene->mState = 15;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7074(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateCopyStart(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_813E7074(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E71A4(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateAfterClearTmp(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->getWorker()->is_working()) {
|
||||
SCSetTmpTitleID(0);
|
||||
System::getChannelManager()->clearTmpChannel();
|
||||
@@ -862,7 +862,7 @@ extern "C" void iplSDChannelTitle_813E71A4(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E724C(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateEnqueueNotice(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_813E724C(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E72B8(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateCopyProgress(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_813E72B8(SDChannelTitle* scene) {
|
||||
snd::getSystem()->stopSE(scene->mpCopySound, 0);
|
||||
scene->mpCopySound = NULL;
|
||||
snd::getSystem()->startSE("WIPL_SE_COPY_FINISH");
|
||||
System::getTask1()->request(iplSDChannelTitle_813E8E70, scene, NULL);
|
||||
System::getTask1()->request(iplSDChannelTitle_fetchTmdViewTask, scene, NULL);
|
||||
scene->mState = 24;
|
||||
} else {
|
||||
SCSetTmpTitleID(0);
|
||||
@@ -900,7 +900,7 @@ extern "C" void iplSDChannelTitle_813E72B8(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7418(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_showCopyError(SDChannelTitle* scene) {
|
||||
scene->mpProgressLayout->getAnim(3)->stop();
|
||||
snd::getSystem()->stopSE(scene->mpCopySound, 0);
|
||||
scene->mpCopySound = NULL;
|
||||
@@ -908,13 +908,13 @@ extern "C" void iplSDChannelTitle_813E7418(SDChannelTitle* scene) {
|
||||
scene->mState = 27;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7498(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateCopyErrorDialog(SDChannelTitle* scene) {
|
||||
if (SCCheckStatus() != 1 && System::getDialog()->getLastResult() != -1) {
|
||||
scene->mState = 29;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E74EC(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_finishProgressHide(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_813E74EC(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7618(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_returnToIdle(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_813E7618(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E76C8(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_loadTitleBanner(SDChannelTitle* scene) {
|
||||
int page;
|
||||
int index;
|
||||
if (System::getChannelManager()->isLoadedTmp() || System::getChannelManager()->hasChannel(scene->mTitleId, &page, &index)) {
|
||||
scene->mpBannerFiles[scene->mLoadedIndex] = iplSDChannelTitle_813E8DCC(scene, scene->mTitleId,
|
||||
scene->mpBannerFiles[scene->mLoadedIndex] = iplSDChannelTitle_loadBannerMetaFiles(scene, scene->mTitleId,
|
||||
&scene->mpSoundFiles[scene->mLoadedIndex]);
|
||||
if (scene->mbCopiedTitle) {
|
||||
scene->mState = 13;
|
||||
@@ -958,44 +958,44 @@ extern "C" void iplSDChannelTitle_813E76C8(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7780(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateBannerLoad(SDChannelTitle* scene) {
|
||||
if (!scene->mpBannerFiles[scene->mLoadedIndex] || scene->mpBannerFiles[scene->mLoadedIndex]->isFinished()) {
|
||||
iplSDChannelTitle_813E7B30(scene, scene->mTitleId);
|
||||
iplSDChannelTitle_813E630C(scene);
|
||||
iplSDChannelTitle_loadBannerScript(scene, scene->mTitleId);
|
||||
iplSDChannelTitle_rebuildBannerLayout(scene);
|
||||
scene->mState = 4;
|
||||
iplSDChannelTitle_813E8034(scene);
|
||||
iplSDChannelTitle_playBannerIntro(scene);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7800(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_tryLaunchSelected(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_813E3330(channel)) {
|
||||
iplSDChannelTitle_813E86A0(scene, channel);
|
||||
iplSDChannelTitle_beginLaunch(scene, channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E787C(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateTmdReady(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_813E847C(scene, scene->mpTmd, scene->mTitleId)) {
|
||||
iplSDChannelTitle_813E88CC(scene, false);
|
||||
if (!iplSDChannelTitle_isNetworkAllowed(scene, scene->mpTmd, scene->mTitleId)) {
|
||||
iplSDChannelTitle_confirmLeaveToSettings(scene, false);
|
||||
scene->mNextScene = 18;
|
||||
} else if (iplSDChannelTitle_813E8F04(scene, scene->mpTmd)) {
|
||||
iplSDChannelTitle_813E899C(scene, scene->mNextScene);
|
||||
} else if (iplSDChannelTitle_passesParentalCheck(scene, scene->mpTmd)) {
|
||||
iplSDChannelTitle_prepareSceneExit(scene, scene->mNextScene);
|
||||
if (scene->mbCopiedTitle) {
|
||||
scene->mState = 25;
|
||||
} else {
|
||||
scene->mState = 15;
|
||||
}
|
||||
} else {
|
||||
iplSDChannelTitle_813E850C(scene, NULL);
|
||||
iplSDChannelTitle_openParentalDialog(scene, NULL);
|
||||
}
|
||||
if (scene->mpTmd) {
|
||||
scene->mpBannerHeap->free(scene->mpTmd);
|
||||
@@ -1003,7 +1003,7 @@ extern "C" void iplSDChannelTitle_813E787C(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" bool iplSDChannelTitle_813E79B0(SDChannelTitle* scene) {
|
||||
extern "C" bool iplSDChannelTitle_startZoomFade(SDChannelTitle* scene) {
|
||||
if (!scene->mpChannelSelect->tellStartingZoomAnm()) {
|
||||
return false;
|
||||
}
|
||||
@@ -1012,7 +1012,7 @@ extern "C" bool iplSDChannelTitle_813E79B0(SDChannelTitle* scene) {
|
||||
return true;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7A18(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_preparePageRestart(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_813E7A18(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7B30(SDChannelTitle* scene, ESTitleId title) {
|
||||
extern "C" void iplSDChannelTitle_loadBannerScript(SDChannelTitle* scene, ESTitleId title) {
|
||||
if (!System::isSafeMode()) {
|
||||
if (scene->mScriptEnabled) {
|
||||
delete scene->mpScriptFile;
|
||||
@@ -1052,7 +1052,7 @@ extern "C" void iplSDChannelTitle_813E7B30(SDChannelTitle* scene, ESTitleId titl
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7C0C(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateScript(SDChannelTitle* scene) {
|
||||
if (scene->mScriptEnabled != 1) {
|
||||
return;
|
||||
}
|
||||
@@ -1061,16 +1061,16 @@ extern "C" void iplSDChannelTitle_813E7C0C(SDChannelTitle* scene) {
|
||||
}
|
||||
switch (scene->mScriptState) {
|
||||
case 0:
|
||||
iplSDChannelTitle_813E7D14(scene);
|
||||
iplSDChannelTitle_updateScriptIdle(scene);
|
||||
break;
|
||||
case 1:
|
||||
iplSDChannelTitle_813E7DD0(scene);
|
||||
iplSDChannelTitle_updateScriptLoad(scene);
|
||||
break;
|
||||
case 2:
|
||||
System::getCSManager()->calc();
|
||||
if (scene->mpRsoThread->IsThreadTerminated()) {
|
||||
if (System::getCSManager()->getAltSoundState() == 1) {
|
||||
iplSDChannelTitle_813E8160(scene);
|
||||
iplSDChannelTitle_startBannerSound(scene);
|
||||
System::getCSManager()->setAltSoundState(0);
|
||||
}
|
||||
System::getCSManager()->finish();
|
||||
@@ -1078,12 +1078,12 @@ extern "C" void iplSDChannelTitle_813E7C0C(SDChannelTitle* scene) {
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
iplSDChannelTitle_813E7FB0(scene);
|
||||
iplSDChannelTitle_destroyScript(scene);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7D14(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateScriptIdle(SDChannelTitle* scene) {
|
||||
if (scene->mbStopScript) {
|
||||
scene->mbStopScript = false;
|
||||
scene->mScriptFrame = 0;
|
||||
@@ -1101,7 +1101,7 @@ extern "C" void iplSDChannelTitle_813E7D14(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7DD0(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_updateScriptLoad(SDChannelTitle* scene) {
|
||||
if (!scene->mpScriptFile->isFinished()) {
|
||||
return;
|
||||
}
|
||||
@@ -1132,7 +1132,7 @@ extern "C" void iplSDChannelTitle_813E7DD0(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E7FB0(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_destroyScript(SDChannelTitle* scene) {
|
||||
scene->mbScriptFailed = true;
|
||||
System::getCSManager()->destroy();
|
||||
scene->mScriptFrame = 0;
|
||||
@@ -1142,7 +1142,7 @@ extern "C" void iplSDChannelTitle_813E7FB0(SDChannelTitle* scene) {
|
||||
scene->mScriptState = 0;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8034(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_playBannerIntro(SDChannelTitle* scene) {
|
||||
if (scene->mpBannerAnimations[1]) {
|
||||
scene->mpBannerAnimations[1]->play();
|
||||
scene->mbBannerStarting = false;
|
||||
@@ -1153,7 +1153,7 @@ extern "C" void iplSDChannelTitle_813E8034(SDChannelTitle* scene) {
|
||||
}
|
||||
if (scene->mState != 6) {
|
||||
if (!System::getChannelManager()->usesAltSound(scene->mTitleId) || !scene->mScriptEnabled) {
|
||||
iplSDChannelTitle_813E8160(scene);
|
||||
iplSDChannelTitle_startBannerSound(scene);
|
||||
}
|
||||
if (!scene->mpBannerLayout) {
|
||||
scene->mpProgressLayout->getAnim(0)->initAnmFrame();
|
||||
@@ -1163,7 +1163,7 @@ extern "C" void iplSDChannelTitle_813E8034(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8160(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_startBannerSound(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_813E8160(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E81FC(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_813E8360(scene);
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnimations(SDChannelTitle* scene) {
|
||||
iplSDChannelTitle_bindBannerAnims(scene);
|
||||
if (scene->mScriptEnabled) {
|
||||
memset(scene->mpScriptAnimations, 0, sizeof(scene->mpScriptAnimations));
|
||||
iplSDChannelTitle_813E8258(scene, scene->mpBannerLayout, scene->mpScriptAnimations, "banner");
|
||||
iplSDChannelTitle_bindRsoAnimations(scene, scene->mpBannerLayout, scene->mpScriptAnimations, "banner");
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8258(SDChannelTitle*, layout::Object* layout,
|
||||
extern "C" void iplSDChannelTitle_bindRsoAnimations(SDChannelTitle*, layout::Object* layout,
|
||||
layout::Animator** animations, const char* prefix) {
|
||||
char groupName[8];
|
||||
char animationName[20];
|
||||
@@ -1203,7 +1203,7 @@ extern "C" void iplSDChannelTitle_813E8258(SDChannelTitle*, layout::Object* layo
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8360(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_bindBannerAnims(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_813E8360(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_813E847C(SDChannelTitle*, ESTmdView*, ESTitleId titleId) {
|
||||
extern "C" BOOL iplSDChannelTitle_isNetworkAllowed(SDChannelTitle*, ESTmdView*, ESTitleId titleId) {
|
||||
if (!System::getChannelManager()->needsNetSetting(titleId) || ncd::NCDSetting::getConnectEnableFlag()) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_813E84C8() {
|
||||
extern "C" BOOL iplSDChannelTitle_isParentalEnabled() {
|
||||
SCParentalControlsInfo parental;
|
||||
if (SCGetParentalControl(&parental) && (parental.enable & SC_PARENTAL_FLAG_ENABLED)) {
|
||||
return TRUE;
|
||||
@@ -1241,7 +1241,7 @@ extern "C" BOOL iplSDChannelTitle_813E84C8() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E850C(SDChannelTitle* scene, void* arguments) {
|
||||
extern "C" void iplSDChannelTitle_openParentalDialog(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_813E850C(SDChannelTitle* scene, void* argument
|
||||
scene->mState = 11;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E85C0(SDChannelTitle* scene, int page, int index) {
|
||||
extern "C" void iplSDChannelTitle_setPageAndIndex(SDChannelTitle* scene, int page, int index) {
|
||||
SDChannelObj* keep = NULL;
|
||||
if (scene->mpIconLayout) {
|
||||
keep = scene->mpChannelSelect->findChannelObject(scene->mPage, scene->mIndex);
|
||||
@@ -1265,13 +1265,13 @@ extern "C" void iplSDChannelTitle_813E85C0(SDChannelTitle* scene, int page, int
|
||||
scene->mPosition.x = SDChannelSelect::getChannelPanePosition(scene->mpChannelSelect, scene->mIndex).x;
|
||||
scene->mPosition.y = SDChannelSelect::getChannelPanePosition(scene->mpChannelSelect, scene->mIndex).y;
|
||||
if (iplSDChannelObj_813E3330(channel)) {
|
||||
iplSDChannelTitle_813E86A0(scene, channel);
|
||||
iplSDChannelTitle_beginLaunch(scene, channel);
|
||||
} else {
|
||||
scene->mState = 28;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E86A0(SDChannelTitle* scene, SDChannelObj* channel) {
|
||||
extern "C" void iplSDChannelTitle_beginLaunch(SDChannelTitle* scene, SDChannelObj* channel) {
|
||||
scene->mTitleId = channel->mAppMeta.titleId;
|
||||
if (scene->mScriptEnabled) {
|
||||
scene->mbStopScript = true;
|
||||
@@ -1280,7 +1280,7 @@ extern "C" void iplSDChannelTitle_813E86A0(SDChannelTitle* scene, SDChannelObj*
|
||||
scene->mState = 8;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E86D8(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_cleanupAndLeave(SDChannelTitle* scene) {
|
||||
scene->mParentalResult = 0;
|
||||
scene->mbStartAnimation = false;
|
||||
static_cast<SDButton*>(System::getScene(0x24))->animation(15);
|
||||
@@ -1311,7 +1311,7 @@ extern "C" void iplSDChannelTitle_813E86D8(SDChannelTitle* scene) {
|
||||
System::getHomeButtonMenu()->disable();
|
||||
System::stopReceiveSchedule();
|
||||
if (hasTitle || hasTemporaryTitle) {
|
||||
System::getTask1()->request(iplSDChannelTitle_813E8E70, scene, NULL);
|
||||
System::getTask1()->request(iplSDChannelTitle_fetchTmdViewTask, scene, NULL);
|
||||
scene->mbCopiedTitle = false;
|
||||
scene->mState = 13;
|
||||
} else {
|
||||
@@ -1322,7 +1322,7 @@ extern "C" void iplSDChannelTitle_813E86D8(SDChannelTitle* scene) {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E88CC(SDChannelTitle* scene, bool settings) {
|
||||
extern "C" void iplSDChannelTitle_confirmLeaveToSettings(SDChannelTitle* scene, bool settings) {
|
||||
if (settings) {
|
||||
scene->reserveAllSceneDestruction(0x12, reinterpret_cast<void*>(1));
|
||||
scene->mState = 7;
|
||||
@@ -1338,7 +1338,7 @@ extern "C" void iplSDChannelTitle_813E88CC(SDChannelTitle* scene, bool settings)
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E899C(SDChannelTitle* scene, int nextScene) {
|
||||
extern "C" void iplSDChannelTitle_prepareSceneExit(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_813E899C(SDChannelTitle* scene, int nextScene)
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8A20(SDChannelTitle* scene, int nextScene) {
|
||||
extern "C" void iplSDChannelTitle_flushSaveBeforeExit(SDChannelTitle* scene, int nextScene) {
|
||||
int page;
|
||||
int index;
|
||||
if (System::getChannelManager()->hasChannel(scene->mTitleId, &page, &index)) {
|
||||
@@ -1363,7 +1363,7 @@ extern "C" void iplSDChannelTitle_813E8A20(SDChannelTitle* scene, int nextScene)
|
||||
__WPADReconnect(TRUE);
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8AB4(SDChannelTitle*) {
|
||||
extern "C" void iplSDChannelTitle_rebootSystem(SDChannelTitle*) {
|
||||
snd::getSystem()->stopAllSound(0);
|
||||
snd::getSystem()->calc();
|
||||
VISetBlack(TRUE);
|
||||
@@ -1374,11 +1374,11 @@ extern "C" void iplSDChannelTitle_813E8AB4(SDChannelTitle*) {
|
||||
OSRebootSystem();
|
||||
}
|
||||
|
||||
extern "C" bool iplSDChannelTitle_813E8B1C(SDChannelTitle* scene) {
|
||||
extern "C" bool iplSDChannelTitle_isLaunchDelayDone(SDChannelTitle* scene) {
|
||||
return static_cast<u32>(120.0f / System::getAnimDelta()) < scene->mLaunchFrame;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8B70(SDChannelTitle* scene) {
|
||||
extern "C" void iplSDChannelTitle_setStartButtonPressed(SDChannelTitle* scene) {
|
||||
if (!scene->mStartButtonState) {
|
||||
scene->mpButtonAnimations[5][3]->stop();
|
||||
scene->mpButtonAnimations[5][4]->play();
|
||||
@@ -1388,7 +1388,7 @@ extern "C" void iplSDChannelTitle_813E8B70(SDChannelTitle* scene) {
|
||||
scene->mStartButtonState = 1;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8C08(SDChannelTitle*, const nw4r::ut::Rect& bounds, GXColor color) {
|
||||
extern "C" void iplSDChannelTitle_drawDimOverlay(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_813E8C08(SDChannelTitle*, const nw4r::ut::Rect
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E8D14(SDChannelTitle*, nw4r::lyt::Pane* pane, u32 message, bool allocate) {
|
||||
extern "C" void iplSDChannelTitle_setPaneMessage(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_813E8D14(SDChannelTitle*, nw4r::lyt::Pane* pan
|
||||
textBox->SetString(text);
|
||||
}
|
||||
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_813E8DCC(SDChannelTitle*, ESTitleId title, nand::File** sound) {
|
||||
extern "C" nand::LayoutFile* iplSDChannelTitle_loadBannerMetaFiles(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_813E8E70(void* argument) {
|
||||
extern "C" void iplSDChannelTitle_fetchTmdViewTask(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_813E8E70(void* argument) {
|
||||
scene->mbTmdReady = true;
|
||||
}
|
||||
|
||||
extern "C" BOOL iplSDChannelTitle_813E8F04(SDChannelTitle* scene, ESTmdView* tmd) {
|
||||
extern "C" BOOL iplSDChannelTitle_passesParentalCheck(SDChannelTitle* scene, ESTmdView* tmd) {
|
||||
if (!utility::ESMisc::__IsPCEnable()) {
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1467,7 +1467,7 @@ extern "C" BOOL iplSDChannelTitle_813E8F04(SDChannelTitle* scene, ESTmdView* tmd
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E9004(SDTitlePaneEventHandler* handler, u32 component,
|
||||
extern "C" void iplSDChannelTitle_onTitlePaneEvent(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_813E9004(SDTitlePaneEventHandler* handler, u32
|
||||
handler->mpScene->mpButtonAnimations[2][2]->play();
|
||||
snd::getSystem()->startSE("WIPL_SE_BT_PUSH");
|
||||
handler->mpScene->mState = 10;
|
||||
iplSDChannelTitle_813E7A18(handler->mpScene);
|
||||
iplSDChannelTitle_preparePageRestart(handler->mpScene);
|
||||
} else if (strcmp(paneName, sButtonNames[1]) == 0) {
|
||||
if (handler->mpScene->mStartButtonState != 2) {
|
||||
snd::getSystem()->startSE("WIPL_SE_GRAY_BUTTON");
|
||||
} else {
|
||||
iplSDChannelTitle_813E86D8(handler->mpScene);
|
||||
iplSDChannelTitle_cleanupAndLeave(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_813E9004(SDTitlePaneEventHandler* handler, u32
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void iplSDChannelTitle_813E92EC(SDTitleButtonEventHandler* handler, u32 component,
|
||||
extern "C" void iplSDChannelTitle_onTitleButtonEvent(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_813E92EC(SDTitleButtonEventHandler* handler, u
|
||||
int index;
|
||||
handler->mpScene->mpChannelSelect->findAdjacentChannel(1, &page, &index);
|
||||
button->animation(7);
|
||||
iplSDChannelTitle_813E85C0(handler->mpScene, page, index);
|
||||
iplSDChannelTitle_setPageAndIndex(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_813E85C0(handler->mpScene, page, index);
|
||||
iplSDChannelTitle_setPageAndIndex(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_813E92EC(this, component, event, controller);
|
||||
iplSDChannelTitle_onTitleButtonEvent(this, component, event, controller);
|
||||
}
|
||||
|
||||
void SDTitlePaneEventHandler::onEvent(u32 component, u32 event, void* data) {
|
||||
iplSDChannelTitle_813E9004(this, component, event, static_cast<const controller::Interface*>(data));
|
||||
iplSDChannelTitle_onTitlePaneEvent(this, component, event, static_cast<const controller::Interface*>(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -230,34 +230,29 @@ namespace ipl {
|
||||
blr
|
||||
}
|
||||
|
||||
asm int Manager::getNumValidChannel() const {
|
||||
nofralloc
|
||||
li r9, 0
|
||||
li r10, 0
|
||||
li r4, 0
|
||||
li r0, 0xc
|
||||
getNumValidChannel_L1:
|
||||
add r8, r3, r4
|
||||
li r5, 0
|
||||
mtctr r0
|
||||
getNumValidChannel_L2:
|
||||
add r7, r8, r5
|
||||
lbz r6, 0x30(r7)
|
||||
cmpwi r6, 0
|
||||
beq getNumValidChannel_L3
|
||||
lwz r6, 0x34(r7)
|
||||
cmpwi r6, 0
|
||||
beq getNumValidChannel_L3
|
||||
addi r9, r9, 1
|
||||
getNumValidChannel_L3:
|
||||
addi r5, r5, 0x10
|
||||
bdnz getNumValidChannel_L2
|
||||
addi r10, r10, 1
|
||||
addi r4, r4, 0xc0
|
||||
cmpwi r10, 4
|
||||
blt getNumValidChannel_L1
|
||||
mr r3, r9
|
||||
blr
|
||||
int Manager::getNumValidChannel() const {
|
||||
const ChannelSlot* q;
|
||||
int dens = 12;
|
||||
const ChannelPage* p;
|
||||
int slot;
|
||||
int count = 0;
|
||||
int page;
|
||||
u8 flag;
|
||||
s32 val;
|
||||
for (page = 0; page < 4; page++) {
|
||||
p = (const ChannelPage*)((const u8*)this + page * 0xc0);
|
||||
for (slot = 0; slot < dens; slot++) {
|
||||
q = &p->slots[slot];
|
||||
flag = q->valid;
|
||||
if (flag != 0) {
|
||||
val = q->titleId;
|
||||
if (val != 0) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
BOOL Manager::isResetAcceptable() {
|
||||
|
||||
Reference in New Issue
Block a user