Browse Source

Show notification when missing required resource data file.

Joseph Davies 13 years ago
parent
commit
f4639698e4
  1. 5
      Sources/Plasma/Apps/plClient/winmain.cpp

5
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;

Loading…
Cancel
Save