Win32:Prevent crash without ui_atlas.zim

Just exit PPSSPP.Work around #6843
This commit is contained in:
sum2012 2014-10-05 04:31:45 +08:00
parent 8a2ad025c7
commit eca659d6f1

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();