2020-10-03 15:22:44 +00:00
|
|
|
|
#include "global.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
|
void func_80110990(GlobalContext* globalCtx) {
|
2020-05-01 15:09:20 +00:00
|
|
|
|
Map_Destroy(globalCtx);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
|
void func_801109B0(GlobalContext* globalCtx) {
|
2020-03-17 04:31:30 +00:00
|
|
|
|
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
|
2020-08-30 16:51:46 +00:00
|
|
|
|
u32 parameterSize;
|
2021-05-02 23:15:16 +00:00
|
|
|
|
u16 doActionOffset;
|
2020-08-30 16:51:46 +00:00
|
|
|
|
u8 temp;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
|
gSaveContext.sunsSongState = SUNSSONG_INACTIVE;
|
2020-08-30 16:51:46 +00:00
|
|
|
|
gSaveContext.unk_13E8 = gSaveContext.unk_13EA = 0;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
View_Init(&interfaceCtx->view, globalCtx->state.gfxCtx);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
|
|
interfaceCtx->unk_1FA = interfaceCtx->unk_261 = interfaceCtx->unk_1FC = 0;
|
2020-08-30 16:51:46 +00:00
|
|
|
|
interfaceCtx->unk_1EC = interfaceCtx->unk_1EE = interfaceCtx->unk_1F0 = 0;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
interfaceCtx->unk_22E = 0;
|
|
|
|
|
interfaceCtx->unk_230 = 16;
|
|
|
|
|
interfaceCtx->unk_1F4 = 0.0f;
|
|
|
|
|
interfaceCtx->unk_228 = XREG(95);
|
|
|
|
|
interfaceCtx->minimapAlpha = 0;
|
|
|
|
|
interfaceCtx->unk_260 = 0;
|
2020-03-22 21:19:43 +00:00
|
|
|
|
interfaceCtx->unk_244 = interfaceCtx->aAlpha = interfaceCtx->bAlpha = interfaceCtx->cLeftAlpha =
|
|
|
|
|
interfaceCtx->cDownAlpha = interfaceCtx->cRightAlpha = interfaceCtx->healthAlpha = interfaceCtx->startAlpha =
|
|
|
|
|
interfaceCtx->magicAlpha = 0;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-08-30 16:51:46 +00:00
|
|
|
|
parameterSize = (u32)_parameter_staticSegmentRomEnd - (u32)_parameter_staticSegmentRomStart;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Permanent PARAMETER Segment = %x"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
osSyncPrintf("常駐PARAMETERセグメント=%x\n", parameterSize);
|
|
|
|
|
|
2020-05-26 15:39:27 +00:00
|
|
|
|
interfaceCtx->parameterSegment = GameState_Alloc(&globalCtx->state, parameterSize, "../z_construct.c", 159);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-08-30 16:51:46 +00:00
|
|
|
|
osSyncPrintf("parameter->parameterSegment=%x\n", interfaceCtx->parameterSegment);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-04-29 18:39:46 +00:00
|
|
|
|
ASSERT(interfaceCtx->parameterSegment != NULL, "parameter->parameterSegment != NULL", "../z_construct.c", 161);
|
2020-08-30 16:51:46 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->parameterSegment, (u32)_parameter_staticSegmentRomStart, parameterSize,
|
|
|
|
|
"../z_construct.c", 162);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->doActionSegment = GameState_Alloc(&globalCtx->state, 0x480, "../z_construct.c", 166);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-09-04 13:33:19 +00:00
|
|
|
|
osSyncPrintf("DOアクション テクスチャ初期=%x\n", 0x480); // "DO Action Texture Initialization"
|
2021-05-02 23:15:16 +00:00
|
|
|
|
osSyncPrintf("parameter->do_actionSegment=%x\n", interfaceCtx->doActionSegment);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
ASSERT(interfaceCtx->doActionSegment != NULL, "parameter->do_actionSegment != NULL", "../z_construct.c", 169);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-03-23 23:11:21 +00:00
|
|
|
|
if (gSaveContext.language == 0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else if (gSaveContext.language == 1) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0x2B80;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0x5700;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->doActionSegment, (u32)_do_action_staticSegmentRomStart + doActionOffset, 0x300,
|
2020-08-30 16:51:46 +00:00
|
|
|
|
"../z_construct.c", 174);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-03-23 23:11:21 +00:00
|
|
|
|
if (gSaveContext.language == 0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0x480;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else if (gSaveContext.language == 1) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0x3000;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
doActionOffset = 0x5B80;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->doActionSegment + 0x300, (u32)_do_action_staticSegmentRomStart + doActionOffset,
|
|
|
|
|
0x180, "../z_construct.c", 178);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
interfaceCtx->iconItemSegment = GameState_Alloc(&globalCtx->state, 0x4000, "../z_construct.c", 190);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Icon Item Texture Initialization = %x"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
osSyncPrintf("アイコンアイテム テクスチャ初期=%x\n", 0x4000);
|
2021-05-02 23:15:16 +00:00
|
|
|
|
osSyncPrintf("parameter->icon_itemSegment=%x\n", interfaceCtx->iconItemSegment);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-05-02 23:15:16 +00:00
|
|
|
|
ASSERT(interfaceCtx->iconItemSegment != NULL, "parameter->icon_itemSegment != NULL", "../z_construct.c", 193);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
osSyncPrintf("Register_Item[%x, %x, %x, %x]\n", gSaveContext.equips.buttonItems[0],
|
|
|
|
|
gSaveContext.equips.buttonItems[1], gSaveContext.equips.buttonItems[2],
|
|
|
|
|
gSaveContext.equips.buttonItems[3]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.equips.buttonItems[0] < 0xF0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment,
|
2020-06-14 03:29:59 +00:00
|
|
|
|
_icon_item_staticSegmentRomStart + gSaveContext.equips.buttonItems[0] * 0x1000, 0x1000,
|
2020-03-22 21:19:43 +00:00
|
|
|
|
"../z_construct.c", 198);
|
2020-04-16 21:36:12 +00:00
|
|
|
|
} else if (gSaveContext.equips.buttonItems[0] != 0xFF) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment,
|
2020-06-14 03:29:59 +00:00
|
|
|
|
_icon_item_staticSegmentRomStart + gSaveContext.equips.buttonItems[0] * 0x1000, 0x1000,
|
2020-03-22 21:19:43 +00:00
|
|
|
|
"../z_construct.c", 203);
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.equips.buttonItems[1] < 0xF0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x1000,
|
2020-06-14 03:29:59 +00:00
|
|
|
|
_icon_item_staticSegmentRomStart + gSaveContext.equips.buttonItems[1] * 0x1000, 0x1000,
|
2020-03-22 21:19:43 +00:00
|
|
|
|
"../z_construct.c", 209);
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.equips.buttonItems[2] < 0xF0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x2000,
|
2020-06-14 03:29:59 +00:00
|
|
|
|
_icon_item_staticSegmentRomStart + gSaveContext.equips.buttonItems[2] * 0x1000, 0x1000,
|
2020-03-22 21:19:43 +00:00
|
|
|
|
"../z_construct.c", 214);
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.equips.buttonItems[3] < 0xF0) {
|
2021-05-02 23:15:16 +00:00
|
|
|
|
DmaMgr_SendRequest1(interfaceCtx->iconItemSegment + 0x3000,
|
2020-06-14 03:29:59 +00:00
|
|
|
|
_icon_item_staticSegmentRomStart + gSaveContext.equips.buttonItems[3] * 0x1000, 0x1000,
|
2020-03-22 21:19:43 +00:00
|
|
|
|
"../z_construct.c", 219);
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-08-30 16:51:46 +00:00
|
|
|
|
osSyncPrintf("EVENT=%d\n", ((void)0, gSaveContext.timer1State));
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if ((gSaveContext.timer1State == 4) || (gSaveContext.timer1State == 8) || (gSaveContext.timer2State == 4) ||
|
|
|
|
|
(gSaveContext.timer2State == 10)) {
|
2020-08-30 16:51:46 +00:00
|
|
|
|
osSyncPrintf("restart_flag=%d\n", ((void)0, gSaveContext.respawnFlag));
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if ((gSaveContext.respawnFlag == -1) || (gSaveContext.respawnFlag == 1)) {
|
|
|
|
|
if (gSaveContext.timer1State == 4) {
|
|
|
|
|
gSaveContext.timer1State = 1;
|
|
|
|
|
gSaveContext.timerX[0] = 140;
|
|
|
|
|
gSaveContext.timerY[0] = 80;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if ((gSaveContext.timer1State == 4) || (gSaveContext.timer1State == 8)) {
|
2020-03-17 04:31:30 +00:00
|
|
|
|
temp = 0;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else {
|
2020-03-17 04:31:30 +00:00
|
|
|
|
temp = 1;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
gSaveContext.timerX[temp] = 26;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.healthCapacity > 0xA0) {
|
|
|
|
|
gSaveContext.timerY[temp] = 54;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
} else {
|
2020-04-16 21:36:12 +00:00
|
|
|
|
gSaveContext.timerY[temp] = 46;
|
2020-03-23 23:11:21 +00:00
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if ((gSaveContext.timer1State >= 11) && (gSaveContext.timer1State < 16)) {
|
|
|
|
|
gSaveContext.timer1State = 0;
|
2021-09-04 13:33:19 +00:00
|
|
|
|
// "Timer Stop!!!!!!!!!!!!!!!!!!!!!!"
|
2020-04-16 21:36:12 +00:00
|
|
|
|
osSyncPrintf("タイマー停止!!!!!!!!!!!!!!!!!!!!! = %d\n", gSaveContext.timer1State);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-04 13:33:19 +00:00
|
|
|
|
osSyncPrintf("PARAMETER領域=%x\n", parameterSize + 0x5300); // "Parameter Area = %x"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-01-10 21:33:58 +00:00
|
|
|
|
HealthMeter_Init(globalCtx);
|
2020-05-01 15:09:20 +00:00
|
|
|
|
Map_Init(globalCtx);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-08-30 16:51:46 +00:00
|
|
|
|
interfaceCtx->unk_23C = interfaceCtx->unk_242 = 0;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_ITEM_BTN_X(0) = B_BUTTON_X;
|
2020-07-17 01:37:53 +00:00
|
|
|
|
R_B_BTN_COLOR(0) = 255;
|
|
|
|
|
R_B_BTN_COLOR(1) = 30;
|
|
|
|
|
R_B_BTN_COLOR(2) = 30;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_ITEM_ICON_X(0) = B_BUTTON_X;
|
|
|
|
|
R_ITEM_AMMO_X(0) = B_BUTTON_X + 2;
|
|
|
|
|
R_A_BTN_X = A_BUTTON_X;
|
|
|
|
|
R_A_ICON_X = A_BUTTON_X;
|
2020-07-17 01:37:53 +00:00
|
|
|
|
R_A_BTN_COLOR(0) = 0;
|
|
|
|
|
R_A_BTN_COLOR(1) = 200;
|
|
|
|
|
R_A_BTN_COLOR(2) = 50;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
|
void func_80110F68(GlobalContext* globalCtx) {
|
2020-03-17 04:31:30 +00:00
|
|
|
|
MessageContext* msgCtx = &globalCtx->msgCtx;
|
|
|
|
|
s32 pad;
|
|
|
|
|
|
|
|
|
|
func_8011040C();
|
|
|
|
|
|
|
|
|
|
globalCtx->msgCtx.unk_E3EE = 0;
|
|
|
|
|
|
|
|
|
|
msgCtx->msgMode = 0;
|
|
|
|
|
msgCtx->unk_E300 = 0;
|
|
|
|
|
msgCtx->unk_E2F8 = msgCtx->unk_E3E4 = msgCtx->choiceIndex = msgCtx->unk_E3F0 = msgCtx->unk_E3D6 = 0;
|
|
|
|
|
msgCtx->unk_E3E2 = 0xFF;
|
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
View_Init(&msgCtx->view, globalCtx->state.gfxCtx);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-05-26 15:39:27 +00:00
|
|
|
|
msgCtx->textboxSegment = GameState_Alloc(&globalCtx->state, 0x2200, "../z_construct.c", 349);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
|
|
osSyncPrintf("message->fukidashiSegment=%x\n", msgCtx->textboxSegment);
|
|
|
|
|
|
2021-09-04 13:33:19 +00:00
|
|
|
|
osSyncPrintf("吹き出しgame_alloc=%x\n", 0x2200); // "Textbox game_alloc=%x"
|
2021-04-29 18:39:46 +00:00
|
|
|
|
ASSERT(msgCtx->textboxSegment != NULL, "message->fukidashiSegment != NULL", "../z_construct.c", 352);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
2020-10-12 21:42:17 +00:00
|
|
|
|
Font_LoadOrderedFont(&globalCtx->msgCtx.font);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
|
|
YREG(31) = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
|
void func_80111070(void) {
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(8) = 10;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(14) = 0;
|
|
|
|
|
YREG(15) = 0;
|
|
|
|
|
YREG(16) = 0;
|
|
|
|
|
YREG(17) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(22) = 50;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(23) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(24) = -60;
|
|
|
|
|
YREG(25) = 13;
|
|
|
|
|
YREG(26) = 15;
|
|
|
|
|
YREG(27) = 41;
|
|
|
|
|
YREG(28) = 15;
|
|
|
|
|
YREG(32) = 265;
|
|
|
|
|
YREG(33) = 55;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(34) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(35) = 20;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(36) = 0;
|
|
|
|
|
YREG(37) = 0;
|
|
|
|
|
YREG(38) = 0;
|
|
|
|
|
YREG(40) = 2;
|
|
|
|
|
YREG(41) = 1;
|
|
|
|
|
YREG(42) = 2;
|
|
|
|
|
YREG(43) = 1;
|
|
|
|
|
YREG(44) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(45) = 236;
|
|
|
|
|
YREG(46) = 36;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(47) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(48) = -45;
|
|
|
|
|
YREG(49) = -48;
|
|
|
|
|
YREG(50) = 16;
|
|
|
|
|
YREG(51) = 22;
|
|
|
|
|
YREG(52) = -55;
|
|
|
|
|
YREG(53) = -53;
|
|
|
|
|
YREG(54) = 43;
|
|
|
|
|
YREG(55) = 47;
|
|
|
|
|
YREG(56) = -33;
|
|
|
|
|
YREG(57) = -42;
|
|
|
|
|
YREG(58) = -33;
|
|
|
|
|
YREG(59) = -37;
|
|
|
|
|
YREG(60) = 14;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(61) = -2;
|
|
|
|
|
YREG(62) = -2;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(63) = -18;
|
|
|
|
|
YREG(64) = -18;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(67) = 0;
|
|
|
|
|
YREG(68) = 0;
|
|
|
|
|
YREG(69) = 0;
|
|
|
|
|
YREG(70) = 0;
|
|
|
|
|
YREG(71) = -6;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(72) = 10;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(73) = -8;
|
|
|
|
|
YREG(74) = 8;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(75) = 24;
|
|
|
|
|
YREG(76) = 32;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(77) = 0;
|
|
|
|
|
YREG(78) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(79) = 48;
|
|
|
|
|
YREG(80) = 450;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(81) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(82) = -15;
|
|
|
|
|
YREG(83) = 500;
|
|
|
|
|
YREG(84) = 600;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(85) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
YREG(86) = -21;
|
|
|
|
|
YREG(87) = 510;
|
|
|
|
|
R_C_UP_ICON_X = C_UP_BUTTON_X - 7;
|
|
|
|
|
R_C_UP_ICON_Y = C_UP_BUTTON_Y + 4;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
YREG(92) = 8;
|
|
|
|
|
YREG(93) = 6;
|
|
|
|
|
YREG(94) = 3;
|
|
|
|
|
YREG(95) = 1;
|
|
|
|
|
R_MAGIC_FILL_COLOR(0) = 0;
|
2020-07-17 01:37:53 +00:00
|
|
|
|
R_MAGIC_FILL_COLOR(1) = 200;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
R_MAGIC_FILL_COLOR(2) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(9) = 140;
|
|
|
|
|
ZREG(10) = 200;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(11) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(12) = 200;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(13) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(14) = 110;
|
|
|
|
|
ZREG(15) = 56;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(16) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(17) = -50;
|
|
|
|
|
ZREG(18) = -200;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(19) = 0;
|
|
|
|
|
ZREG(20) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(21) = 50;
|
|
|
|
|
ZREG(22) = -50;
|
|
|
|
|
ZREG(23) = 20;
|
|
|
|
|
ZREG(24) = 20;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(25) = 4;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(26) = 20;
|
|
|
|
|
ZREG(27) = 10;
|
|
|
|
|
ZREG(28) = 20;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(29) = 4;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
ZREG(30) = 20;
|
|
|
|
|
ZREG(31) = 10;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(32) = 0;
|
|
|
|
|
ZREG(33) = 0;
|
|
|
|
|
ZREG(34) = 0;
|
|
|
|
|
ZREG(36) = 0;
|
|
|
|
|
ZREG(37) = 0;
|
|
|
|
|
ZREG(38) = 0;
|
2020-07-17 01:37:53 +00:00
|
|
|
|
R_C_BTN_COLOR(0) = 255;
|
|
|
|
|
R_C_BTN_COLOR(1) = 160;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
R_C_BTN_COLOR(2) = 0;
|
|
|
|
|
ZREG(46) = 1;
|
|
|
|
|
ZREG(47) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_START_LABEL_DD(0) = 100;
|
|
|
|
|
R_START_LABEL_DD(1) = 89;
|
|
|
|
|
R_START_LABEL_DD(2) = 92;
|
|
|
|
|
R_START_LABEL_Y(0) = 20;
|
|
|
|
|
R_START_LABEL_Y(1) = 20;
|
|
|
|
|
R_START_LABEL_Y(2) = 20;
|
|
|
|
|
R_START_LABEL_X(0) = 120;
|
|
|
|
|
R_START_LABEL_X(1) = 119;
|
|
|
|
|
R_START_LABEL_X(2) = 119;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(61) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_C_UP_BTN_X = C_UP_BUTTON_X;
|
|
|
|
|
R_C_UP_BTN_Y = C_UP_BUTTON_Y;
|
|
|
|
|
ZREG(64) = 20;
|
|
|
|
|
ZREG(65) = 21;
|
|
|
|
|
ZREG(66) = 122;
|
|
|
|
|
R_ITEM_BTN_X(1) = C_LEFT_BUTTON_X;
|
|
|
|
|
R_ITEM_BTN_X(2) = C_DOWN_BUTTON_X;
|
|
|
|
|
R_ITEM_BTN_X(3) = C_RIGHT_BUTTON_X;
|
|
|
|
|
R_ITEM_BTN_Y(0) = B_BUTTON_Y;
|
|
|
|
|
R_ITEM_BTN_Y(1) = C_LEFT_BUTTON_Y;
|
|
|
|
|
R_ITEM_BTN_Y(2) = C_DOWN_BUTTON_Y;
|
|
|
|
|
R_ITEM_BTN_Y(3) = C_RIGHT_BUTTON_Y;
|
|
|
|
|
R_ITEM_BTN_DD(0) = 575;
|
|
|
|
|
R_ITEM_BTN_DD(1) = 620;
|
|
|
|
|
R_ITEM_BTN_DD(2) = 620;
|
|
|
|
|
R_ITEM_BTN_DD(3) = 620;
|
|
|
|
|
R_ITEM_ICON_X(1) = C_LEFT_BUTTON_X;
|
|
|
|
|
R_ITEM_ICON_X(2) = C_DOWN_BUTTON_X;
|
|
|
|
|
R_ITEM_ICON_X(3) = C_RIGHT_BUTTON_X;
|
|
|
|
|
R_ITEM_ICON_Y(0) = B_BUTTON_Y;
|
|
|
|
|
R_ITEM_ICON_Y(1) = C_LEFT_BUTTON_Y;
|
|
|
|
|
R_ITEM_ICON_Y(2) = C_DOWN_BUTTON_Y;
|
|
|
|
|
R_ITEM_ICON_Y(3) = C_RIGHT_BUTTON_Y;
|
|
|
|
|
R_ITEM_ICON_DD(0) = 550;
|
|
|
|
|
R_ITEM_ICON_DD(1) = 680;
|
|
|
|
|
R_ITEM_ICON_DD(2) = 680;
|
|
|
|
|
R_ITEM_ICON_DD(3) = 680;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
ZREG(94) = 1;
|
|
|
|
|
ZREG(95) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(0) = 26;
|
|
|
|
|
XREG(1) = 22;
|
|
|
|
|
XREG(2) = -11;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(3) = -4;
|
|
|
|
|
XREG(4) = 3;
|
|
|
|
|
XREG(5) = 0;
|
|
|
|
|
XREG(6) = 2;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(7) = 30;
|
|
|
|
|
XREG(8) = 10;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(9) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(10) = -9550;
|
|
|
|
|
XREG(11) = 9950;
|
|
|
|
|
XREG(12) = 68;
|
|
|
|
|
XREG(13) = 36;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(14) = 4;
|
|
|
|
|
XREG(15) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_A_BTN_Y = A_BUTTON_Y;
|
|
|
|
|
XREG(18) = -380;
|
|
|
|
|
R_A_ICON_Y = A_BUTTON_Y;
|
|
|
|
|
XREG(21) = 48;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(25) = 0;
|
|
|
|
|
XREG(26) = 0;
|
|
|
|
|
XREG(27) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(28) = 16;
|
|
|
|
|
XREG(29) = 50;
|
|
|
|
|
XREG(30) = 15;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(31) = 8;
|
|
|
|
|
XREG(32) = 4;
|
|
|
|
|
XREG(33) = 2;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(34) = 100;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(35) = 7;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(36) = 20;
|
|
|
|
|
XREG(37) = 10;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(38) = 2;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(39) = 140;
|
|
|
|
|
XREG(40) = 20;
|
|
|
|
|
XREG(41) = 300;
|
|
|
|
|
XREG(42) = 100;
|
|
|
|
|
XREG(43) = 70;
|
|
|
|
|
XREG(44) = 50;
|
|
|
|
|
XREG(45) = 36;
|
|
|
|
|
XREG(46) = 16;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(47) = 8;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_MAGIC_BAR_SMALL_Y = 34;
|
|
|
|
|
R_MAGIC_BAR_X = 18;
|
|
|
|
|
R_MAGIC_BAR_LARGE_Y = 42;
|
|
|
|
|
R_MAGIC_FILL_X = 26;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(52) = 0;
|
|
|
|
|
XREG(53) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(54) = 65;
|
|
|
|
|
XREG(55) = 60;
|
|
|
|
|
XREG(56) = 16;
|
|
|
|
|
XREG(57) = 80;
|
|
|
|
|
XREG(58) = 80;
|
|
|
|
|
XREG(59) = 12;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(60) = 1;
|
|
|
|
|
XREG(61) = 3;
|
|
|
|
|
XREG(62) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(63) = 100;
|
|
|
|
|
XREG(64) = 158;
|
|
|
|
|
XREG(65) = 102;
|
|
|
|
|
XREG(66) = 48;
|
|
|
|
|
XREG(67) = 54;
|
|
|
|
|
XREG(68) = 70;
|
|
|
|
|
XREG(69) = 86;
|
|
|
|
|
XREG(70) = -300;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(71) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(72) = 54;
|
|
|
|
|
XREG(73) = 48;
|
|
|
|
|
XREG(74) = 128;
|
|
|
|
|
XREG(75) = 64;
|
|
|
|
|
XREG(76) = 2048;
|
|
|
|
|
XREG(77) = 512;
|
|
|
|
|
XREG(78) = 96;
|
|
|
|
|
XREG(79) = 98;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(80) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(81) = 50;
|
|
|
|
|
XREG(82) = 25;
|
|
|
|
|
XREG(83) = 100;
|
|
|
|
|
XREG(84) = 100;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(85) = 0;
|
|
|
|
|
XREG(86) = 0;
|
|
|
|
|
XREG(87) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(88) = -50;
|
|
|
|
|
XREG(89) = -100;
|
|
|
|
|
XREG(90) = -500;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
XREG(91) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
XREG(92) = 100;
|
|
|
|
|
XREG(93) = 100;
|
|
|
|
|
XREG(94) = 160;
|
|
|
|
|
XREG(95) = 200;
|
|
|
|
|
WREG(2) = -6080;
|
|
|
|
|
WREG(3) = 9355;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
WREG(4) = 8;
|
|
|
|
|
WREG(5) = 3;
|
|
|
|
|
WREG(6) = 8;
|
|
|
|
|
WREG(7) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
WREG(8) = 100;
|
|
|
|
|
WREG(9) = 109;
|
|
|
|
|
WREG(10) = 151;
|
|
|
|
|
WREG(11) = 148;
|
|
|
|
|
WREG(12) = 23;
|
|
|
|
|
WREG(13) = 22;
|
|
|
|
|
WREG(14) = -380;
|
|
|
|
|
WREG(15) = -350;
|
|
|
|
|
WREG(16) = -175;
|
|
|
|
|
WREG(17) = 155;
|
|
|
|
|
WREG(18) = 10;
|
|
|
|
|
WREG(19) = 10;
|
|
|
|
|
WREG(20) = -50;
|
|
|
|
|
WREG(21) = -54;
|
|
|
|
|
WREG(22) = -32;
|
|
|
|
|
WREG(23) = -38;
|
|
|
|
|
WREG(24) = -36;
|
|
|
|
|
WREG(25) = 40;
|
|
|
|
|
WREG(26) = -40;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
WREG(27) = 0;
|
|
|
|
|
WREG(28) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_OW_MINIMAP_X = 238;
|
|
|
|
|
R_OW_MINIMAP_Y = 164;
|
|
|
|
|
R_MINIMAP_DISABLED = false;
|
|
|
|
|
WREG(32) = 122;
|
|
|
|
|
WREG(33) = 60;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
WREG(35) = 0;
|
|
|
|
|
WREG(36) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
WREG(37) = 100;
|
|
|
|
|
WREG(38) = 99;
|
|
|
|
|
WREG(39) = 109;
|
|
|
|
|
R_B_LABEL_X(0) = B_BUTTON_X - 9;
|
|
|
|
|
R_B_LABEL_X(1) = B_BUTTON_X - 11;
|
|
|
|
|
R_B_LABEL_X(2) = B_BUTTON_X - 12;
|
|
|
|
|
R_B_LABEL_Y(0) = B_BUTTON_Y + 6;
|
|
|
|
|
R_B_LABEL_Y(1) = B_BUTTON_Y + 5;
|
|
|
|
|
R_B_LABEL_Y(2) = B_BUTTON_Y + 5;
|
|
|
|
|
WREG(46) = -380;
|
|
|
|
|
WREG(47) = -360;
|
|
|
|
|
WREG(48) = -350;
|
|
|
|
|
WREG(49) = -48;
|
|
|
|
|
WREG(50) = 16;
|
|
|
|
|
WREG(51) = -62;
|
|
|
|
|
WREG(52) = 22;
|
|
|
|
|
WREG(53) = -84;
|
|
|
|
|
WREG(54) = 20;
|
|
|
|
|
WREG(55) = -53;
|
|
|
|
|
WREG(56) = 40;
|
|
|
|
|
WREG(57) = -64;
|
|
|
|
|
WREG(58) = 47;
|
|
|
|
|
WREG(59) = -84;
|
|
|
|
|
WREG(60) = 44;
|
|
|
|
|
WREG(61) = -42;
|
|
|
|
|
WREG(62) = 32;
|
|
|
|
|
WREG(63) = -45;
|
|
|
|
|
WREG(64) = -37;
|
|
|
|
|
WREG(65) = 30;
|
|
|
|
|
WREG(66) = -50;
|
|
|
|
|
R_DGN_MINIMAP_X = 204;
|
|
|
|
|
R_DGN_MINIMAP_Y = 140;
|
|
|
|
|
WREG(87) = 80;
|
|
|
|
|
WREG(88) = 70;
|
|
|
|
|
WREG(89) = 40;
|
|
|
|
|
WREG(90) = 320;
|
|
|
|
|
WREG(91) = 40;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
WREG(92) = 3;
|
|
|
|
|
WREG(93) = 6;
|
|
|
|
|
WREG(94) = 3;
|
|
|
|
|
WREG(95) = 6;
|
|
|
|
|
|
2020-04-16 21:36:12 +00:00
|
|
|
|
if (gSaveContext.gameMode == 0) {
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(0) = 52;
|
|
|
|
|
VREG(1) = 36;
|
|
|
|
|
VREG(2) = 214;
|
|
|
|
|
VREG(3) = 76;
|
|
|
|
|
VREG(4) = 304;
|
|
|
|
|
VREG(5) = 430;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(6) = 1;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(7) = 78;
|
|
|
|
|
VREG(8) = 166;
|
|
|
|
|
VREG(9) = 40;
|
|
|
|
|
R_COMPASS_SCALE_X = 32;
|
|
|
|
|
R_COMPASS_SCALE_Y = 32;
|
|
|
|
|
R_COMPASS_OFFSET_X = 110;
|
|
|
|
|
R_COMPASS_OFFSET_Y = -740;
|
2020-05-01 15:09:20 +00:00
|
|
|
|
R_MINIMAP_COLOR(0) = 0;
|
2020-07-17 01:37:53 +00:00
|
|
|
|
R_MINIMAP_COLOR(1) = 255;
|
|
|
|
|
R_MINIMAP_COLOR(2) = 255;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
VREG(21) = 0;
|
|
|
|
|
VREG(22) = 0;
|
|
|
|
|
VREG(23) = 0;
|
|
|
|
|
VREG(24) = 0;
|
|
|
|
|
VREG(25) = 0;
|
|
|
|
|
VREG(26) = 0;
|
|
|
|
|
VREG(27) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(28) = 98;
|
|
|
|
|
VREG(29) = 18;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(30) = 0;
|
|
|
|
|
VREG(31) = 0;
|
|
|
|
|
VREG(32) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(33) = 70;
|
|
|
|
|
VREG(34) = 255;
|
|
|
|
|
VREG(35) = 80;
|
|
|
|
|
VREG(36) = 70;
|
|
|
|
|
VREG(37) = 255;
|
|
|
|
|
VREG(38) = 80;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(40) = 9;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(42) = 250;
|
|
|
|
|
VREG(43) = 440;
|
|
|
|
|
VREG(44) = 10;
|
|
|
|
|
VREG(45) = 190;
|
|
|
|
|
VREG(46) = 184;
|
|
|
|
|
VREG(47) = 176;
|
|
|
|
|
VREG(48) = 172;
|
|
|
|
|
VREG(49) = 170;
|
|
|
|
|
VREG(50) = 30;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(51) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(52) = -16;
|
|
|
|
|
VREG(53) = 230;
|
|
|
|
|
VREG(54) = 230;
|
|
|
|
|
VREG(55) = 120;
|
|
|
|
|
VREG(56) = -720;
|
|
|
|
|
VREG(57) = 255;
|
|
|
|
|
VREG(58) = 255;
|
|
|
|
|
VREG(59) = 255;
|
|
|
|
|
VREG(60) = 20;
|
|
|
|
|
VREG(61) = 100;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(62) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(63) = 10;
|
|
|
|
|
R_ITEM_AMMO_X(1) = C_LEFT_BUTTON_X + 1;
|
|
|
|
|
R_ITEM_AMMO_X(2) = C_DOWN_BUTTON_X + 1;
|
|
|
|
|
R_ITEM_AMMO_X(3) = C_RIGHT_BUTTON_X + 1;
|
|
|
|
|
R_ITEM_AMMO_Y(0) = B_BUTTON_Y + 18;
|
|
|
|
|
R_ITEM_AMMO_Y(1) = C_LEFT_BUTTON_Y + 17;
|
|
|
|
|
R_ITEM_AMMO_Y(2) = C_DOWN_BUTTON_Y + 17;
|
|
|
|
|
R_ITEM_AMMO_Y(3) = C_RIGHT_BUTTON_Y + 17;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(72) = 0;
|
|
|
|
|
VREG(73) = 0;
|
|
|
|
|
VREG(74) = 0;
|
|
|
|
|
VREG(75) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
R_ITEM_ICON_WIDTH(0) = 30;
|
|
|
|
|
R_ITEM_ICON_WIDTH(1) = 24;
|
|
|
|
|
R_ITEM_ICON_WIDTH(2) = 24;
|
|
|
|
|
R_ITEM_ICON_WIDTH(3) = 24;
|
|
|
|
|
R_ITEM_BTN_WIDTH(0) = 29;
|
|
|
|
|
R_ITEM_BTN_WIDTH(1) = 27;
|
|
|
|
|
R_ITEM_BTN_WIDTH(2) = 27;
|
|
|
|
|
R_ITEM_BTN_WIDTH(3) = 27;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(84) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(85) = 50;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(86) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(87) = 64;
|
|
|
|
|
VREG(88) = 66;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
VREG(89) = 0;
|
2021-06-15 17:29:10 +00:00
|
|
|
|
VREG(90) = 126;
|
|
|
|
|
VREG(91) = 124;
|
|
|
|
|
VREG(92) = -63;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
|
void func_80112098(GlobalContext* globalCtx) {
|
2020-03-17 04:31:30 +00:00
|
|
|
|
func_80111070();
|
|
|
|
|
}
|