mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Replace POPUP_SOUNDERROR
with generic message popup
This commit is contained in:
parent
620e3e56db
commit
8da68bf52a
|
@ -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");
|
||||
|
|
|
@ -728,7 +728,6 @@ public:
|
|||
POPUP_RENAME_DEMO,
|
||||
POPUP_RENDER_DEMO,
|
||||
POPUP_REPLACE_VIDEO,
|
||||
POPUP_SOUNDERROR,
|
||||
POPUP_PASSWORD,
|
||||
POPUP_QUIT,
|
||||
POPUP_WARNING,
|
||||
|
|
Loading…
Reference in a new issue