Skip to content

Commit

Permalink
Merge pull request H-uru#112 from Deledrius/resource_error
Browse files Browse the repository at this point in the history
Show notification when missing required resource data file.

Closes H-uru#110
  • Loading branch information
branan committed Jan 8, 2012
2 parents 4b8c0a8 + f463969 commit 045feb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Plasma/Apps/plClient/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 045feb4

Please sign in to comment.