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:
Julien Templier 2010-11-10 12:08:54 +00:00 committed by Eugene Sandulenko
parent ea952cc33d
commit 71125b9916
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -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);