Skip to content

Commit

Permalink
Merge pull request #13248 from iota97/ui-sound-fix
Browse files Browse the repository at this point in the history
UI sound fix
  • Loading branch information
unknownbrackets committed Aug 4, 2020
2 parents 9f147e8 + c392d95 commit 736ad92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -2037,6 +2037,11 @@ set(NativeAssets
assets/rargray.png
assets/unknown.png
assets/zip.png
assets/sfx_back.wav
assets/sfx_confirm.wav
assets/sfx_select.wav
assets/sfx_toggle_off.wav
assets/sfx_toggle_on.wav
source_assets/image/logo.png
source_assets/image/icon_regular_72.png
)
Expand Down
6 changes: 3 additions & 3 deletions UI/NativeApp.cpp
Expand Up @@ -446,9 +446,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch

g_Discord.SetPresenceMenu();

// TODO: Load these in the background instead of synchronously.
g_BackgroundAudio.LoadSamples();

// Make sure UI state is MENU.
ResetUIState();

Expand Down Expand Up @@ -710,6 +707,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
}
#endif

// TODO: Load these in the background instead of synchronously.
g_BackgroundAudio.LoadSamples();

if (!boot_filename.empty() && stateToLoad != NULL) {
SaveState::Load(stateToLoad, -1, [](SaveState::Status status, const std::string &message, void *) {
if (!message.empty() && (!g_Config.bDumpFrames || !g_Config.bDumpVideoOutput)) {
Expand Down

0 comments on commit 736ad92

Please sign in to comment.