From eca659d6f11d26e2010e377ca3f49919702916ac Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 5 Oct 2014 04:31:45 +0800 Subject: [PATCH] Win32:Prevent crash without ui_atlas.zim Just exit PPSSPP.Work around #6843 --- UI/NativeApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 3efbdbaf52..55e2550b91 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -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();