1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-05-11 11:33:48 +00:00

Fix iQue audio and line numbers (#2386)

This commit is contained in:
cadmic 2024-12-26 14:42:38 -08:00 committed by GitHub
parent aaf3183233
commit 1662ac70af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 38 additions and 38 deletions

View file

@ -1149,7 +1149,7 @@ ENVELOPE_08BA:
point 20, 20000 point 20, 20000
hang hang
#if OOT_VERSION == NTSC_1_2 || PLATFORM_GC #if OOT_VERSION == NTSC_1_2 || !PLATFORM_N64
.filter FILTER_0932 .filter FILTER_0932
filter 0, 0, 0, 0, 0, 0, 0, 0 filter 0, 0, 0, 0, 0, 0, 0, 0

View file

@ -57,8 +57,8 @@
LN(ntsc_1_0, other, other, other, other, gc, gc, gc, gc, gc, gc, gc, gc, gc) LN(ntsc_1_0, other, other, other, other, gc, gc, gc, gc, gc, gc, gc, gc, gc)
// NTSC 1.0, NTSC 1.1, Gamecube, and all the other versions // NTSC 1.0, NTSC 1.1, Gamecube, and all the other versions
#define LN4(ntsc_1_0, ntsc_1_1, other, gc) \ #define LN4(ntsc_1_0, ntsc_1_1, other, gc, ique) \
LN(ntsc_1_0, ntsc_1_1, other, other, other, gc, gc, gc, gc, gc, gc, gc, gc, gc) LN(ntsc_1_0, ntsc_1_1, other, other, other, gc, gc, gc, gc, gc, gc, gc, gc, ique)
// NTSC 1.0, NTSC 1.1, NTSC 1.2/PAL 1.0, Gamecube US/JP, Gamecube EU, and Gamecube CE // NTSC 1.0, NTSC 1.1, NTSC 1.2/PAL 1.0, Gamecube US/JP, Gamecube EU, and Gamecube CE
#define LN5(ntsc_1_0, ntsc_1_1, other, pal_1_1, gc_ntsc, gc_eu, gc_jp_ce) \ #define LN5(ntsc_1_0, ntsc_1_1, other, pal_1_1, gc_ntsc, gc_eu, gc_jp_ce) \

View file

@ -1188,7 +1188,7 @@ u8 D_8016B9F3;
u8 sFanfareStartTimer; u8 sFanfareStartTimer;
u16 sFanfareSeqId; u16 sFanfareSeqId;
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
u16 sPrevAmbienceSeqId; u16 sPrevAmbienceSeqId;
#endif #endif
@ -1706,7 +1706,7 @@ void AudioOcarina_PlayControllerInput(u8 unused) {
} else { } else {
// no bending or vibrato for recording state OCARINA_RECORD_SCARECROW_SPAWN // no bending or vibrato for recording state OCARINA_RECORD_SCARECROW_SPAWN
sCurOcarinaBendIndex = 0; sCurOcarinaBendIndex = 0;
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
sCurOcarinaVibrato = 0; sCurOcarinaVibrato = 0;
#endif #endif
sCurOcarinaBendFreq = 1.0f; // No bend sCurOcarinaBendFreq = 1.0f; // No bend
@ -1853,7 +1853,7 @@ void AudioOcarina_PlaybackSong(void) {
} }
// Update vibrato // Update vibrato
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
if (sNotePlaybackVibrato != sPlaybackSong[sPlaybackNotePos].vibrato) { if (sNotePlaybackVibrato != sPlaybackSong[sPlaybackNotePos].vibrato) {
sNotePlaybackVibrato = sPlaybackSong[sPlaybackNotePos].vibrato; sNotePlaybackVibrato = sPlaybackSong[sPlaybackNotePos].vibrato;
// Sets vibrato to io port 6 // Sets vibrato to io port 6
@ -2144,7 +2144,7 @@ void AudioOcarina_RecordSong(void) {
} else if (sRecordOcarinaVolume != sCurOcarinaVolume) { } else if (sRecordOcarinaVolume != sCurOcarinaVolume) {
noteChanged = true; noteChanged = true;
} else if (sRecordOcarinaVibrato != sCurOcarinaVibrato) { } else if (sRecordOcarinaVibrato != sCurOcarinaVibrato) {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (sRecordingState != OCARINA_RECORD_SCARECROW_SPAWN) { if (sRecordingState != OCARINA_RECORD_SCARECROW_SPAWN) {
noteChanged = true; noteChanged = true;
} }
@ -2152,7 +2152,7 @@ void AudioOcarina_RecordSong(void) {
noteChanged = true; noteChanged = true;
#endif #endif
} else if (sRecordOcarinaBendIndex != sCurOcarinaBendIndex) { } else if (sRecordOcarinaBendIndex != sCurOcarinaBendIndex) {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (sRecordingState != OCARINA_RECORD_SCARECROW_SPAWN) { if (sRecordingState != OCARINA_RECORD_SCARECROW_SPAWN) {
noteChanged = true; noteChanged = true;
} }
@ -2493,7 +2493,7 @@ f32 Audio_ComputeSfxFreqScale(u8 bankId, u8 entryIdx) {
switch (bankId) { switch (bankId) {
case BANK_VOICE: case BANK_VOICE:
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (((entry->sfxId & 0xFF) < 0x40) && (sAudioBaseFilter2 != 0)) { if (((entry->sfxId & 0xFF) < 0x40) && (sAudioBaseFilter2 != 0)) {
phi_v0 = true; phi_v0 = true;
} else if (((entry->sfxId & 0xFF) >= 0x40) && (sAudioExtraFilter2 != 0)) { } else if (((entry->sfxId & 0xFF) >= 0x40) && (sAudioExtraFilter2 != 0)) {
@ -2614,7 +2614,7 @@ void Audio_SetSfxProperties(u8 bankId, u8 entryIdx, u8 channelIndex) {
f32 behindScreenZ; f32 behindScreenZ;
u8 baseFilter = 0; u8 baseFilter = 0;
SfxBankEntry* entry = &gSfxBanks[bankId][entryIdx]; SfxBankEntry* entry = &gSfxBanks[bankId][entryIdx];
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
s32 pad; s32 pad;
#endif #endif
@ -2655,7 +2655,7 @@ void Audio_SetSfxProperties(u8 bankId, u8 entryIdx, u8 channelIndex) {
} }
} }
if (sAudioBaseFilter != 0) { if (sAudioBaseFilter != 0) {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if ((bankId == BANK_PLAYER) || (bankId == BANK_ITEM) || if ((bankId == BANK_PLAYER) || (bankId == BANK_ITEM) ||
((bankId == BANK_VOICE) && ((entry->sfxId & 0xFF) < 0x40))) ((bankId == BANK_VOICE) && ((entry->sfxId & 0xFF) < 0x40)))
#else #else
@ -3239,7 +3239,7 @@ void Audio_PlaySceneSequence(u16 seqId) {
AUDIOCMD_GLOBAL_STOP_AUDIOCMDS(); AUDIOCMD_GLOBAL_STOP_AUDIOCMDS();
} }
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_DISABLED) { if (Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_DISABLED) {
Audio_StopSequence(SEQ_PLAYER_BGM_MAIN, 0); Audio_StopSequence(SEQ_PLAYER_BGM_MAIN, 0);
AUDIOCMD_GLOBAL_STOP_AUDIOCMDS(); AUDIOCMD_GLOBAL_STOP_AUDIOCMDS();
@ -3383,7 +3383,7 @@ void func_800F5B58(void) {
if (sPrevMainBgmSeqId == NA_BGM_DISABLED) { if (sPrevMainBgmSeqId == NA_BGM_DISABLED) {
SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_BGM_MAIN, 0); SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_BGM_MAIN, 0);
} else { } else {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (sPrevMainBgmSeqId == NA_BGM_NATURE_AMBIENCE) { if (sPrevMainBgmSeqId == NA_BGM_NATURE_AMBIENCE) {
sPrevMainBgmSeqId = sPrevAmbienceSeqId; sPrevMainBgmSeqId = sPrevAmbienceSeqId;
} }
@ -3519,7 +3519,7 @@ void Audio_SetSequenceMode(u8 seqMode) {
volumeFadeInTimer); volumeFadeInTimer);
SEQCMD_PLAY_SEQUENCE(SEQ_PLAYER_BGM_SUB, 10, 8, NA_BGM_ENEMY); SEQCMD_PLAY_SEQUENCE(SEQ_PLAYER_BGM_SUB, 10, 8, NA_BGM_ENEMY);
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
if (seqId != NA_BGM_NATURE_AMBIENCE) if (seqId != NA_BGM_NATURE_AMBIENCE)
#else #else
if (seqId > NA_BGM_NATURE_AMBIENCE) if (seqId > NA_BGM_NATURE_AMBIENCE)
@ -3544,7 +3544,7 @@ void Audio_SetSequenceMode(u8 seqMode) {
sPrevSeqMode = seqMode + 0x80; sPrevSeqMode = seqMode + 0x80;
} else { } else {
#if OOT_VERSION < NTSC_1_1 || PLATFORM_GC #if OOT_VERSION < NTSC_1_1 || !PLATFORM_N64
// Empty // Empty
#elif OOT_VERSION < PAL_1_0 #elif OOT_VERSION < PAL_1_0
if ((seqMode == SEQ_MODE_ENEMY) && (seqId != NA_BGM_FIELD_LOGIC) && if ((seqMode == SEQ_MODE_ENEMY) && (seqId != NA_BGM_FIELD_LOGIC) &&
@ -3600,7 +3600,7 @@ void Audio_SetBgmEnemyVolume(f32 dist) {
sAudioEnemyVol = ((350.0f - adjDist) * 127.0f) / 350.0f; sAudioEnemyVol = ((350.0f - adjDist) * 127.0f) / 350.0f;
Audio_SetVolumeScale(SEQ_PLAYER_BGM_SUB, VOL_SCALE_INDEX_BGM_SUB, sAudioEnemyVol, 10); Audio_SetVolumeScale(SEQ_PLAYER_BGM_SUB, VOL_SCALE_INDEX_BGM_SUB, sAudioEnemyVol, 10);
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE) if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE)
#else #else
if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId > NA_BGM_NATURE_AMBIENCE) if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId > NA_BGM_NATURE_AMBIENCE)
@ -3610,7 +3610,7 @@ void Audio_SetBgmEnemyVolume(f32 dist) {
} }
} }
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE) if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE)
#else #else
if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId > NA_BGM_NATURE_AMBIENCE) if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId > NA_BGM_NATURE_AMBIENCE)
@ -3928,7 +3928,7 @@ void func_800F6C34(void) {
sFanfareStartTimer = 0; sFanfareStartTimer = 0;
D_8016B9F3 = 1; D_8016B9F3 = 1;
sMalonSingingDisabled = false; sMalonSingingDisabled = false;
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
sPrevAmbienceSeqId = NA_BGM_DISABLED; sPrevAmbienceSeqId = NA_BGM_DISABLED;
#endif #endif
} }
@ -3989,7 +3989,7 @@ void Audio_StartNatureAmbienceSequence(u16 playerIO, u16 channelMask) {
} }
#endif #endif
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if ((Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_DISABLED) && if ((Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_DISABLED) &&
(Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_NATURE_AMBIENCE)) { (Audio_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_NATURE_AMBIENCE)) {
Audio_StopSequence(SEQ_PLAYER_BGM_MAIN, 0); Audio_StopSequence(SEQ_PLAYER_BGM_MAIN, 0);
@ -4023,7 +4023,7 @@ void Audio_PlayNatureAmbienceSequence(u8 natureAmbienceId) {
if ((gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId == NA_BGM_DISABLED) || if ((gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId == NA_BGM_DISABLED) ||
!(sSeqFlags[gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId & 0xFF & 0xFF] & SEQ_FLAG_NO_AMBIENCE)) { !(sSeqFlags[gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId & 0xFF & 0xFF] & SEQ_FLAG_NO_AMBIENCE)) {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE) { if (gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId != NA_BGM_NATURE_AMBIENCE) {
sPrevAmbienceSeqId = gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId; sPrevAmbienceSeqId = gActiveSeqs[SEQ_PLAYER_BGM_MAIN].seqId;
} }

View file

@ -437,7 +437,7 @@ void AudioSeq_SequencePlayerDisableAsFinished(SequencePlayer* seqPlayer) {
void AudioSeq_SequencePlayerDisable(SequencePlayer* seqPlayer) { void AudioSeq_SequencePlayerDisable(SequencePlayer* seqPlayer) {
s32 finished = 0; s32 finished = 0;
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (seqPlayer->finished == 1) { if (seqPlayer->finished == 1) {
finished = 1; finished = 1;
} }
@ -457,7 +457,7 @@ void AudioSeq_SequencePlayerDisable(SequencePlayer* seqPlayer) {
} }
if (AudioLoad_IsFontLoadComplete(seqPlayer->defaultFont)) { if (AudioLoad_IsFontLoadComplete(seqPlayer->defaultFont)) {
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (finished == 1) { if (finished == 1) {
AudioHeap_ReleaseNotesForFont(seqPlayer->defaultFont); AudioHeap_ReleaseNotesForFont(seqPlayer->defaultFont);
} }

View file

@ -644,7 +644,7 @@ Acmd* AudioSynth_DoOneAudioUpdate(s16* aiBuf, s32 aiBufLen, Acmd* cmd, s32 updat
// Leak reverb between the left and right channels // Leak reverb between the left and right channels
#if OOT_VERSION < NTSC_1_1 || PLATFORM_GC #if OOT_VERSION < NTSC_1_1 || !PLATFORM_N64
if ((reverb->leakRtl != 0) || (reverb->leakLtr != 0)) if ((reverb->leakRtl != 0) || (reverb->leakLtr != 0))
#else #else
if (((reverb->leakRtl != 0) || (reverb->leakLtr != 0)) && (gAudioCtx.soundMode != SOUNDMODE_MONO)) if (((reverb->leakRtl != 0) || (reverb->leakLtr != 0)) && (gAudioCtx.soundMode != SOUNDMODE_MONO))
@ -785,7 +785,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSubEu, NoteSynthesisS
samplesLenFixedPoint = (resamplingRateFixedPoint * aiBufLen * 2) + synthState->samplePosFrac; samplesLenFixedPoint = (resamplingRateFixedPoint * aiBufLen * 2) + synthState->samplePosFrac;
numSamplesToLoad = samplesLenFixedPoint >> 16; numSamplesToLoad = samplesLenFixedPoint >> 16;
#if !(OOT_VERSION < NTSC_1_1 || PLATFORM_GC) #if !(OOT_VERSION < NTSC_1_1 || !PLATFORM_N64)
if (numSamplesToLoad == 0) { if (numSamplesToLoad == 0) {
skipBytes = false; skipBytes = false;
} }

View file

@ -17,7 +17,7 @@ AudioTask* AudioThread_Update(void) {
return AudioThread_UpdateImpl(); return AudioThread_UpdateImpl();
} }
#if !(OOT_VERSION < PAL_1_0 || PLATFORM_GC) #if !(OOT_VERSION < PAL_1_0 || !PLATFORM_N64)
static s32 sMaxAbiCmdCnt = 0x80; static s32 sMaxAbiCmdCnt = 0x80;
static AudioTask* sWaitingAudioTask = NULL; static AudioTask* sWaitingAudioTask = NULL;
#endif #endif
@ -26,7 +26,7 @@ static AudioTask* sWaitingAudioTask = NULL;
* This is Audio_Update for the audio thread * This is Audio_Update for the audio thread
*/ */
AudioTask* AudioThread_UpdateImpl(void) { AudioTask* AudioThread_UpdateImpl(void) {
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
static s32 sMaxAbiCmdCnt = 0x80; static s32 sMaxAbiCmdCnt = 0x80;
static AudioTask* sWaitingAudioTask = NULL; static AudioTask* sWaitingAudioTask = NULL;
#endif #endif

View file

@ -13,7 +13,7 @@ TempoData gTempoData = {
// Sizes of everything on the init pool // Sizes of everything on the init pool
#define AI_BUFFERS_SIZE (AIBUF_SIZE * ARRAY_COUNT(gAudioCtx.aiBuffers)) #define AI_BUFFERS_SIZE (AIBUF_SIZE * ARRAY_COUNT(gAudioCtx.aiBuffers))
#define SOUNDFONT_LIST_SIZE (NUM_SOUNDFONTS * sizeof(SoundFont)) #define SOUNDFONT_LIST_SIZE (NUM_SOUNDFONTS * sizeof(SoundFont))
#if OOT_VERSION < PAL_1_0 || PLATFORM_GC #if OOT_VERSION < PAL_1_0 || !PLATFORM_N64
#define PERMANENT_POOL_SIZE (SFX_SEQ_SIZE + SFX_SOUNDFONTS_SIZE) #define PERMANENT_POOL_SIZE (SFX_SEQ_SIZE + SFX_SOUNDFONTS_SIZE)
#else #else
#define PERMANENT_POOL_SIZE (SFX_SEQ_SIZE + SFX_SOUNDFONTS_SIZE + 0x10) #define PERMANENT_POOL_SIZE (SFX_SEQ_SIZE + SFX_SOUNDFONTS_SIZE + 0x10)

View file

@ -342,7 +342,7 @@ void Audio_ChooseActiveSfx(u8 bankId) {
entry->sfxId, entry->posX, entry->posZ, *entry->posX, *entry->posY, *entry->posZ); entry->sfxId, entry->posX, entry->posZ, *entry->posX, *entry->posY, *entry->posZ);
} }
entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76)); entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76));
#if OOT_VERSION < NTSC_1_1 || PLATFORM_GC #if OOT_VERSION < NTSC_1_1 || !PLATFORM_N64
temp3 = entry->sfxId; // fake temp3 = entry->sfxId; // fake
entry->priority = entry->priority + temp3 - temp3; entry->priority = entry->priority + temp3 - temp3;
#endif #endif

View file

@ -40,7 +40,7 @@ void Locale_Init(void) {
PRINTF(VT_COL(RED, WHITE)); PRINTF(VT_COL(RED, WHITE));
PRINTF(T("z_locale_init: 日本用かアメリカ用か判別できません\n", PRINTF(T("z_locale_init: 日本用かアメリカ用か判別できません\n",
"z_locale_init: Can't tell if it's for Japan or America\n")); "z_locale_init: Can't tell if it's for Japan or America\n"));
LogUtils_HungupThread("../z_locale.c", LN4(86, 92, 101, 118)); LogUtils_HungupThread("../z_locale.c", LN4(86, 92, 101, 118, UNK_LINE));
PRINTF(VT_RST); PRINTF(VT_RST);
break; break;
} }

View file

@ -391,7 +391,7 @@ void GameState_InitArena(GameState* gameState, size_t size) {
} else { } else {
THA_Init(&gameState->tha, NULL, 0); THA_Init(&gameState->tha, NULL, 0);
PRINTF(T("ハイラル確保失敗\n", "Failure to secure Hyrule\n")); PRINTF(T("ハイラル確保失敗\n", "Failure to secure Hyrule\n"));
HUNGUP_AND_CRASH("../game.c", LN4(895, 898, 985, 999)); HUNGUP_AND_CRASH("../game.c", LN4(895, 898, 985, 999, 999));
} }
} }
@ -432,7 +432,7 @@ void GameState_Realloc(GameState* gameState, size_t size) {
SystemArena_Display(); SystemArena_Display();
#endif #endif
HUNGUP_AND_CRASH("../game.c", LN4(940, 943, 1030, 1044)); HUNGUP_AND_CRASH("../game.c", LN4(940, 943, 1030, 1044, 1044));
} }
} }

View file

@ -380,7 +380,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
PRINTF("%c", BEL); PRINTF("%c", BEL);
PRINTF(VT_COL(RED, WHITE) T("ダイナミック領域先頭が破壊されています\n", "Dynamic area head is destroyed\n") PRINTF(VT_COL(RED, WHITE) T("ダイナミック領域先頭が破壊されています\n", "Dynamic area head is destroyed\n")
VT_RST); VT_RST);
Fault_AddHungupAndCrash("../graph.c", LN4(937, 940, 951, 1070)); Fault_AddHungupAndCrash("../graph.c", LN4(937, 940, 951, 1070, 1067));
} }
if (pool->tailMagic != GFXPOOL_TAIL_MAGIC) { if (pool->tailMagic != GFXPOOL_TAIL_MAGIC) {
@ -388,7 +388,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
PRINTF("%c", BEL); PRINTF("%c", BEL);
PRINTF(VT_COL(RED, WHITE) PRINTF(VT_COL(RED, WHITE)
T("ダイナミック領域末尾が破壊されています\n", "Dynamic region tail is destroyed\n") VT_RST); T("ダイナミック領域末尾が破壊されています\n", "Dynamic region tail is destroyed\n") VT_RST);
Fault_AddHungupAndCrash("../graph.c", LN4(943, 946, 957, 1076)); Fault_AddHungupAndCrash("../graph.c", LN4(943, 946, 957, 1076, 1073));
} }
} }
@ -481,7 +481,7 @@ void Graph_ThreadEntry(void* arg0) {
sprintf(faultMsg, "CLASS SIZE= %d bytes", size); sprintf(faultMsg, "CLASS SIZE= %d bytes", size);
Fault_AddHungupAndCrashImpl("GAME CLASS MALLOC FAILED", faultMsg); Fault_AddHungupAndCrashImpl("GAME CLASS MALLOC FAILED", faultMsg);
#else #else
Fault_AddHungupAndCrash("../graph.c", LN4(1067, 1070, 1081, 1200)); Fault_AddHungupAndCrash("../graph.c", LN4(1067, 1070, 1081, 1200, 1197));
#endif #endif
} }

View file

@ -34,7 +34,7 @@ void SysCfb_Init(s32 n64dd) {
PRINTF("RAM4M mode\n"); PRINTF("RAM4M mode\n");
sSysCfbEnd = 0x80400000; sSysCfbEnd = 0x80400000;
} else { } else {
LogUtils_HungupThread("../sys_cfb.c", LN4(305, 308, 322, 354)); LogUtils_HungupThread("../sys_cfb.c", LN4(305, 308, 322, 354, 341));
} }
screenSize = SCREEN_WIDTH * SCREEN_HEIGHT; screenSize = SCREEN_WIDTH * SCREEN_HEIGHT;

View file

@ -30,7 +30,7 @@ void func_80026400(PlayState* play, Color_RGBA8* color, s16 arg2, s16 arg3) {
Gfx* displayListHead; Gfx* displayListHead;
f32 cos; f32 cos;
#if !PLATFORM_N64 #if PLATFORM_GC
if (arg3 == 0) { if (arg3 == 0) {
return; return;
} }

View file

@ -458,7 +458,7 @@ RoomShapeImageMultiBgEntry* Room_GetImageMultiBgEntry(RoomShapeImageMulti* roomS
"z_room.c: Data consistent with camera id does not exist camid=%d\n") VT_RST, "z_room.c: Data consistent with camera id does not exist camid=%d\n") VT_RST,
bgCamIndex); bgCamIndex);
#if PLATFORM_GC #if !PLATFORM_N64
LogUtils_HungupThread("../z_room.c", 726); LogUtils_HungupThread("../z_room.c", 726);
#else #else
Fault_AddHungupAndCrash("../z_room.c", LN2(724, 727, 721)); Fault_AddHungupAndCrash("../z_room.c", LN2(724, 727, 721));
@ -545,7 +545,7 @@ void Room_DrawImage(PlayState* play, Room* room, u32 flags) {
} else if (roomShape->amountType == ROOM_SHAPE_IMAGE_AMOUNT_MULTI) { } else if (roomShape->amountType == ROOM_SHAPE_IMAGE_AMOUNT_MULTI) {
Room_DrawImageMulti(play, room, flags); Room_DrawImageMulti(play, room, flags);
} else { } else {
#if PLATFORM_GC #if !PLATFORM_N64
LogUtils_HungupThread("../z_room.c", 841); LogUtils_HungupThread("../z_room.c", 841);
#else #else
Fault_AddHungupAndCrash("../z_room.c", LN2(849, 852, 836)); Fault_AddHungupAndCrash("../z_room.c", LN2(849, 852, 836));