mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 18:35:47 -04:00
CommonHostInterface: Ensure game list is loaded before booting
Fixes a possible race/crash when starting with a filename in NoGUI.
This commit is contained in:
@ -139,6 +139,10 @@ void CommonHostInterface::InitializeUserDirectory()
|
||||
|
||||
bool CommonHostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||
{
|
||||
// If the fullscreen UI is enabled, make sure it's finished loading the game list so we don't race it.
|
||||
if (m_fullscreen_ui_enabled)
|
||||
FullscreenUI::EnsureGameListLoaded();
|
||||
|
||||
if (!HostInterface::BootSystem(parameters))
|
||||
{
|
||||
// if in batch mode, exit immediately if booting failed
|
||||
|
Reference in New Issue
Block a user