Merge pull request #6977 from sum2012/UI_Crash

Win32:Prevent crash without ui_atlas.zim
This commit is contained in:
Henrik Rydgård 2014-10-05 00:05:49 +02:00
commit 3eec3a1497

View File

@ -541,6 +541,10 @@ void NativeInitGraphics() {
#endif
PanicAlert("Failed to load ui_atlas.zim.\n\nPlace it in the directory \"assets\" under your PPSSPP directory.");
ELOG("Failed to load ui_atlas.zim");
#ifdef _WIN32
UINT ExitCode = 0;
ExitProcess(ExitCode);
#endif
}
uiContext = new UIContext();