Audio fixes

This commit is contained in:
MysterD 2022-04-16 22:04:18 -07:00
parent 0c2f9e86f6
commit 2bcf5ea851
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++) {
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];
smlua_audio_utils_reset(override);
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) {
return; // TODO FIGURE OUT WHY DISCORD DOES THIS
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);
djui_popup_create(errorMessage, 6);