Replace POPUP_SOUNDERROR with generic message popup

This commit is contained in:
Robert Müller 2022-11-30 23:09:45 +01:00
parent 620e3e56db
commit 8da68bf52a
2 changed files with 1 additions and 8 deletions

View file

@ -1361,7 +1361,7 @@ int CMenus::Render()
if(!s_SoundCheck && m_Popup == POPUP_NONE)
{
if(Client()->SoundInitFailed())
m_Popup = POPUP_SOUNDERROR;
PopupMessage(Localize("Sound error"), Localize("The audio device couldn't be initialised."), Localize("Ok"));
s_SoundCheck = true;
}
@ -1575,12 +1575,6 @@ int CMenus::Render()
pExtraText = Localize("File already exists, do you want to overwrite it?");
}
#endif
else if(m_Popup == POPUP_SOUNDERROR)
{
pTitle = Localize("Sound error");
pExtraText = Localize("The audio device couldn't be initialised.");
pButtonText = Localize("Ok");
}
else if(m_Popup == POPUP_PASSWORD)
{
pTitle = Localize("Password incorrect");

View file

@ -728,7 +728,6 @@ public:
POPUP_RENAME_DEMO,
POPUP_RENDER_DEMO,
POPUP_REPLACE_VIDEO,
POPUP_SOUNDERROR,
POPUP_PASSWORD,
POPUP_QUIT,
POPUP_WARNING,