Moved the AudioManager initialization a bit forward during startup.

This commit is contained in:
Leon Styhre 2021-03-17 20:08:33 +01:00
parent 320f81ab4f
commit 84ecb7489e

View file

@ -492,8 +492,6 @@ int main(int argc, char* argv[])
SDL_SetRelativeMouseMode(SDL_TRUE);
#endif
AudioManager::getInstance();
if (splashScreen) {
std::string progressText = "Loading...";
if (splashScreenProgress)
@ -501,6 +499,7 @@ int main(int argc, char* argv[])
window.renderLoadingScreen(progressText);
}
AudioManager::getInstance();
MameNames::init();
loadSystemsReturnCode loadSystemsStatus = loadSystemConfigFile();