mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-13 03:14:38 +00:00
[iQue] Create/update macros for printing debug strings (#2398)
This commit is contained in:
parent
a3c3c38fea
commit
f329507f97
65 changed files with 328 additions and 303 deletions
|
@ -1135,7 +1135,7 @@ void Interface_SetSceneRestrictions(PlayState* play) {
|
|||
interfaceCtx->restrictions.dinsNayrus = (sRestrictionFlags[i].flags3 & 0x0C) >> 2;
|
||||
interfaceCtx->restrictions.all = (sRestrictionFlags[i].flags3 & 0x03) >> 0;
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF("parameter->button_status = %x,%x,%x\n", sRestrictionFlags[i].flags1, sRestrictionFlags[i].flags2,
|
||||
sRestrictionFlags[i].flags3);
|
||||
PRINTF("h_gage=%d, b_button=%d, a_button=%d, c_bottle=%d\n", interfaceCtx->restrictions.hGauge,
|
||||
|
@ -1147,7 +1147,7 @@ void Interface_SetSceneRestrictions(PlayState* play) {
|
|||
PRINTF("c_sunmoon=%d, m_wind=%d, m_magic=%d, another=%d\n", interfaceCtx->restrictions.sunsSong,
|
||||
interfaceCtx->restrictions.farores, interfaceCtx->restrictions.dinsNayrus,
|
||||
interfaceCtx->restrictions.all);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
return;
|
||||
}
|
||||
i++;
|
||||
|
@ -1376,16 +1376,16 @@ u8 Item_Give(PlayState* play, u8 item) {
|
|||
slot = SLOT(sExtraItemBases[item - ITEM_DEKU_STICKS_5]);
|
||||
}
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF("item_get_setting=%d pt=%d z=%x\n", item, slot, gSaveContext.save.info.inventory.items[slot]);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
if ((item >= ITEM_MEDALLION_FOREST) && (item <= ITEM_MEDALLION_LIGHT)) {
|
||||
gSaveContext.save.info.inventory.questItems |= gBitFlags[item - ITEM_MEDALLION_FOREST + QUEST_MEDALLION_FOREST];
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("封印 = %x\n", "Seals = %x\n"), gSaveContext.save.info.inventory.questItems);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
if (item == ITEM_MEDALLION_WATER) {
|
||||
Horse_FixLakeHyliaPosition(play);
|
||||
|
@ -1395,38 +1395,38 @@ u8 Item_Give(PlayState* play, u8 item) {
|
|||
} else if ((item >= ITEM_SONG_MINUET) && (item <= ITEM_SONG_STORMS)) {
|
||||
gSaveContext.save.info.inventory.questItems |= gBitFlags[item - ITEM_SONG_MINUET + QUEST_SONG_MINUET];
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("楽譜 = %x\n", "Musical scores = %x\n"), gSaveContext.save.info.inventory.questItems);
|
||||
PRINTF(T("楽譜 = %x (%x) (%x)\n", "Musical scores = %x (%x) (%x)\n"),
|
||||
gSaveContext.save.info.inventory.questItems, gBitFlags[item - ITEM_SONG_MINUET + QUEST_SONG_MINUET],
|
||||
gBitFlags[item - ITEM_SONG_MINUET]);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
return ITEM_NONE;
|
||||
} else if ((item >= ITEM_KOKIRI_EMERALD) && (item <= ITEM_ZORA_SAPPHIRE)) {
|
||||
gSaveContext.save.info.inventory.questItems |= gBitFlags[item - ITEM_KOKIRI_EMERALD + QUEST_KOKIRI_EMERALD];
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("精霊石 = %x\n", "Spiritual Stones = %x\n"), gSaveContext.save.info.inventory.questItems);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
return ITEM_NONE;
|
||||
} else if ((item == ITEM_STONE_OF_AGONY) || (item == ITEM_GERUDOS_CARD)) {
|
||||
gSaveContext.save.info.inventory.questItems |= gBitFlags[item - ITEM_STONE_OF_AGONY + QUEST_STONE_OF_AGONY];
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("アイテム = %x\n", "Items = %x\n"), gSaveContext.save.info.inventory.questItems);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_SKULL_TOKEN) {
|
||||
gSaveContext.save.info.inventory.questItems |= gBitFlags[item - ITEM_SKULL_TOKEN + QUEST_SKULL_TOKEN];
|
||||
gSaveContext.save.info.inventory.gsTokens++;
|
||||
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("Nコイン = %x(%d)\n", "N Coins = %x(%d)\n"), gSaveContext.save.info.inventory.questItems,
|
||||
gSaveContext.save.info.inventory.gsTokens);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
return ITEM_NONE;
|
||||
} else if ((item >= ITEM_SWORD_KOKIRI) && (item <= ITEM_SWORD_BIGGORON)) {
|
||||
|
@ -1869,9 +1869,9 @@ u8 Item_CheckObtainability(u8 item) {
|
|||
slot = SLOT(sExtraItemBases[item - ITEM_DEKU_STICKS_5]);
|
||||
}
|
||||
|
||||
PRINTF(VT_FGCOL(GREEN));
|
||||
PRINTF_COLOR_GREEN();
|
||||
PRINTF("item_get_non_setting=%d pt=%d z=%x\n", item, slot, gSaveContext.save.info.inventory.items[slot]);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
|
||||
if ((item >= ITEM_MEDALLION_FOREST) && (item <= ITEM_MEDALLION_LIGHT)) {
|
||||
return ITEM_NONE;
|
||||
|
@ -4277,13 +4277,13 @@ void Interface_Update(PlayState* play) {
|
|||
if (gSaveContext.save.info.playerData.isMagicAcquired && (gSaveContext.save.info.playerData.magicLevel == 0)) {
|
||||
gSaveContext.save.info.playerData.magicLevel = gSaveContext.save.info.playerData.isDoubleMagicAcquired + 1;
|
||||
gSaveContext.magicState = MAGIC_STATE_STEP_CAPACITY;
|
||||
PRINTF(VT_FGCOL(YELLOW));
|
||||
PRINTF_COLOR_YELLOW();
|
||||
PRINTF(T("魔法スター─────ト!!!!!!!!!\n", "Magic Start!!!!!!!!!\n"));
|
||||
PRINTF("MAGIC_MAX=%d\n", gSaveContext.save.info.playerData.magicLevel);
|
||||
PRINTF("MAGIC_NOW=%d\n", gSaveContext.save.info.playerData.magic);
|
||||
PRINTF("Z_MAGIC_NOW_NOW=%d\n", gSaveContext.magicFillTarget);
|
||||
PRINTF("Z_MAGIC_NOW_MAX=%d\n", gSaveContext.magicCapacity);
|
||||
PRINTF(VT_RST);
|
||||
PRINTF_RST();
|
||||
}
|
||||
|
||||
Magic_Update(play);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue