Audio fixes
This commit is contained in:
parent
0c2f9e86f6
commit
2bcf5ea851
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue