mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-02 00:14:30 -04:00
Misc cleanup
This commit is contained in:
@@ -111,7 +111,7 @@ static BOOL daObj_PbcoExecute(void* i_this) {
|
||||
|
||||
bool daObj_Pbco_c::_draw() {
|
||||
dKy_tevstr_c* pTevStr;
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &tevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &tevStr); // fakematch
|
||||
g_env_light.setLightTevColorType(mpModel, pTevStr);
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
return TRUE;
|
||||
|
||||
@@ -77,7 +77,7 @@ static BOOL daObjPbka_Delete(void* i_this) {
|
||||
|
||||
bool daObjPbka_c::_draw() {
|
||||
dKy_tevstr_c * pTevStr;
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &tevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &tevStr); // fakematch
|
||||
g_env_light.setLightTevColorType(mpModel, pTevStr);
|
||||
dComIfGd_setListBG();
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
|
||||
+1
-1
@@ -1180,7 +1180,7 @@ u8 dSv_event_c::getEventReg(u16 i_reg) {
|
||||
|
||||
/* 8005CB94-8005CBB0 .text init__13dSv_reserve_cFv */
|
||||
void dSv_reserve_c::init() {
|
||||
for (int i = 0; i < sizeof(dSv_reserve_c); i++) {
|
||||
for (int i = 0; i < ARRAY_SIZE(mReserve); i++) {
|
||||
mReserve[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -276,9 +276,9 @@ s32 fopAcM_createHeap(fopAc_ac_c* i_this, u32 size, u32 align) {
|
||||
align = 0x20;
|
||||
|
||||
i_this->heap = mDoExt_createSolidHeapFromGameToCurrent(size, align);
|
||||
if (i_this->heap == 0) {
|
||||
if (i_this->heap == NULL) {
|
||||
OSReport_Error("fopAcM_createHeap 確保失敗\n");
|
||||
JUT_CONFIRM(0x34c, i_this->heap != 0);
|
||||
JUT_CONFIRM(0x34c, i_this->heap != NULL);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,14 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if VERSION <= VERSION_JPN
|
||||
#define HEADER_TITLE "ゼルダの伝説~風のタクト~"
|
||||
#define HEADER_COMMENT "%d月%d日のセーブデータです"
|
||||
#else
|
||||
#define HEADER_TITLE "Zelda: The Wind Waker"
|
||||
#define HEADER_COMMENT "%d/%d Save Data"
|
||||
#endif
|
||||
|
||||
static u8 sTmpBuf[0x2000] ALIGN_DECL(32);
|
||||
static u8 sTmpBuf2[0x2000] ALIGN_DECL(32);
|
||||
static u32 sSaveCount;
|
||||
@@ -197,19 +205,11 @@ s32 mDoMemCdRWm_Restore2(CARDFileInfo* card) {
|
||||
|
||||
/* 80019F4C-8001A0A8 .text mDoMemCdRWm_BuildHeader__FP22mDoMemCdRWm_HeaderData */
|
||||
void mDoMemCdRWm_BuildHeader(mDoMemCdRWm_HeaderData* header) {
|
||||
#if VERSION <= VERSION_JPN
|
||||
snprintf(header->comment, sizeof(header->comment), "ゼルダの伝説~風のタクト~");
|
||||
#else
|
||||
snprintf(header->comment, sizeof(header->comment), "Zelda: The Wind Waker");
|
||||
#endif
|
||||
snprintf(header->comment, sizeof(header->comment), HEADER_TITLE);
|
||||
OSTime time = OSGetTime();
|
||||
OSCalendarTime cal;
|
||||
OSTicksToCalendarTime(time, &cal);
|
||||
#if VERSION <= VERSION_JPN
|
||||
snprintf(header->info, sizeof(header->info), "%d月%d日のセーブデータです", cal.month + 1, cal.day_of_month);
|
||||
#elif VERSION == VERSION_USA
|
||||
snprintf(header->info, sizeof(header->info), "%d/%d Save Data", cal.month + 1, cal.day_of_month);
|
||||
#else
|
||||
#if VERSION == VERSION_PAL
|
||||
switch (dComIfGs_getPalLanguage()) {
|
||||
case 0:
|
||||
snprintf(header->info, sizeof(header->info), "%d/%d Save Data", cal.month + 1, cal.day_of_month);
|
||||
@@ -227,6 +227,8 @@ void mDoMemCdRWm_BuildHeader(mDoMemCdRWm_HeaderData* header) {
|
||||
snprintf(header->info, sizeof(header->info), "Dati salvati: %d/%d", cal.day_of_month, cal.month + 1);
|
||||
break;
|
||||
}
|
||||
#else
|
||||
snprintf(header->info, sizeof(header->info), HEADER_COMMENT, cal.month + 1, cal.day_of_month);
|
||||
#endif
|
||||
mDoDvdThd_mountArchive_c* cmd = mDoDvdThd_mountArchive_c::create("/res/CardIcon/cardicon.arc", 0, NULL);
|
||||
while (!cmd->sync()) ;
|
||||
|
||||
Reference in New Issue
Block a user