From f4639698e4657865b4583dcad652b3972628cce1 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Wed, 4 Jan 2012 23:20:49 -0800 Subject: [PATCH] Show notification when missing required resource data file. --- Sources/Plasma/Apps/plClient/winmain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 8bdc7b85..f2f9f5e8 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -709,6 +709,11 @@ bool InitClient( HWND hWnd ) resMgr->SetDataPath("dat"); hsgResMgr::Init(resMgr); + if(!plFileUtils::FileExists("resource.dat")) + { + hsMessageBox("Required file 'resource.dat' not found.", "Error", hsMessageBoxNormal); + return false; + } plClientResMgr::Instance().ILoadResources("resource.dat"); gClient = TRACKED_NEW plClient;