Audio fixes

This commit is contained in:
MysterD 2022-04-16 22:04:18 -07:00
parent 166aa1b558
commit b7d99d35e2
2 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,10 @@ void smlua_audio_utils_replace_sequence(u8 sequenceId, u8 bankId, u8 defaultVolu
for (s32 i = 0; i < gLuaActiveMod->fileCount; i++) { for (s32 i = 0; i < gLuaActiveMod->fileCount; i++) {
struct ModFile* file = &gLuaActiveMod->files[i]; struct ModFile* file = &gLuaActiveMod->files[i];
if (str_ends_with(file->cachedPath, m64path)) { char relPath[SYS_MAX_PATH] = { 0 };
snprintf(relPath, SYS_MAX_PATH-1, "%s", file->relativePath);
normalize_path(relPath);
if (str_ends_with(relPath, m64path)) {
struct AudioOverride* override = &sAudioOverrides[sequenceId]; struct AudioOverride* override = &sAudioOverrides[sequenceId];
smlua_audio_utils_reset(override); smlua_audio_utils_reset(override);
LOG_INFO("Loading audio: %s", file->cachedPath); LOG_INFO("Loading audio: %s", file->cachedPath);

View File

@ -28,6 +28,7 @@ static void discord_sdk_log_callback(UNUSED void* hook_data, enum EDiscordLogLev
} }
void discord_fatal_message(int rc) { void discord_fatal_message(int rc) {
return; // TODO FIGURE OUT WHY DISCORD DOES THIS
char errorMessage[132] = { 0 }; char errorMessage[132] = { 0 };
snprintf(errorMessage, 132, "Discord threw an error.\nTo fix: \n1. Close the game.\n2. Restart Discord.\n3. Start the game.\nRC: %d", rc); snprintf(errorMessage, 132, "Discord threw an error.\nTo fix: \n1. Close the game.\n2. Restart Discord.\n3. Start the game.\nRC: %d", rc);
djui_popup_create(errorMessage, 6); djui_popup_create(errorMessage, 6);