mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Reset the UI state properly in NativeInit. Fixes #9771
This commit is contained in:
1 parent
2de5e2b5c0
commit
4b35e9e278
1 file changed
+4
-1
+4
-1
@@ -252,7 +252,7 @@ int NativeMix(short *audio, int num_samples) {
|
||||
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
|
||||
|
||||
#ifdef _WIN32
|
||||
winAudioBackend->Update();
|
||||
winAudioBackend->Update*();
|
||||
#endif
|
||||
|
||||
return num_samples;
|
||||
@@ -307,6 +307,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
InitFastMath(cpu_info.bNEON);
|
||||
SetupAudioFormats();
|
||||
|
||||
// Make sure UI state is MENU.
|
||||
ResetUIState();
|
||||
|
||||
bool skipLogo = false;
|
||||
setlocale( LC_ALL, "C" );
|
||||
std::string user_data_path = savegame_dir;
|
||||
|
||||
Reference in new issue
Block a user