ASYLUM: Throw an error when a resource pack cannot be opened
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@533 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
This commit is contained in:
parent
ea952cc33d
commit
71125b9916
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ ResourcePack::~ResourcePack() {
|
|||
}
|
||||
|
||||
void ResourcePack::init(Common::String filename) {
|
||||
_packFile.open(filename);
|
||||
if (!_packFile.open(filename))
|
||||
error("[ResourcePack::init] Could not open resource file: %s", filename.c_str());
|
||||
|
||||
uint32 entryCount = _packFile.readUint32LE();
|
||||
_resources.resize(entryCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue