mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 19:25:46 -04:00
HostInterface: Fix crash on startup with controller connected
This commit is contained in:
@ -61,6 +61,7 @@ bool HostInterface::Initialize()
|
||||
{
|
||||
SetUserDirectory();
|
||||
InitializeUserDirectory();
|
||||
LoadSettings();
|
||||
m_game_list = std::make_unique<GameList>();
|
||||
m_game_list->SetCacheFilename(GetGameListCacheFileName());
|
||||
m_game_list->SetDatabaseFilename(GetGameListDatabaseFileName());
|
||||
|
@ -158,8 +158,8 @@ protected:
|
||||
/// Sets the base path for the user directory. Can be overridden by platform/frontend/command line.
|
||||
virtual void SetUserDirectory();
|
||||
|
||||
/// Ensures all subdirectories of the user directory are created.
|
||||
void CreateUserDirectorySubdirectories();
|
||||
/// Performs the initial load of settings. Should call CheckSettings() and m_settings.Load().
|
||||
virtual void LoadSettings() = 0;
|
||||
|
||||
/// Returns the path of the settings file.
|
||||
std::string GetSettingsFileName() const;
|
||||
|
Reference in New Issue
Block a user