Play success sound on dropping in spoiler log (#4899)

This commit is contained in:
aMannus 2025-01-18 11:46:38 +01:00 committed by GitHub
parent 7d2a4e5818
commit b4f7d2289a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1035,6 +1035,7 @@ void FileChoose_UpdateRandomizer() {
SpoilerFileExists(CVarGetString(CVAR_GENERAL("SpoilerLog"), "")) && !fileSelectSpoilerFileLoaded) {
if (CVarGetInteger(CVAR_GENERAL("RandomizerNewFileDropped"), 0) != 0) {
CVarSetString(CVAR_GENERAL("SpoilerLog"), CVarGetString(CVAR_GENERAL("RandomizerDroppedFile"), ""));
Audio_PlayFanfare(NA_BGM_HORSE_GOAL);
}
const char* fileLoc = CVarGetString(CVAR_GENERAL("SpoilerLog"), "");
CVarSetInteger(CVAR_GENERAL("RandomizerNewFileDropped"), 0);