mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-28 16:11:38 +00:00
NoGUI: Don’t segfault when the DISPLAY environment variable isn’t set
This commit is contained in:
parent
1a18cad178
commit
1e7ca7f579
@ -118,6 +118,11 @@ class PlatformX11 : public Platform
|
||||
{
|
||||
XInitThreads();
|
||||
dpy = XOpenDisplay(nullptr);
|
||||
if (!dpy)
|
||||
{
|
||||
PanicAlert("No X11 display found");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy),
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowXPos,
|
||||
|
Loading…
x
Reference in New Issue
Block a user