Raise exception on FileSystem::openReadRaw

This commit is contained in:
Mathew Velasquez 2015-11-17 11:16:37 -05:00
parent 0c64b6c4b5
commit 0b04d60ce0
1 changed files with 2 additions and 1 deletions

View File

@ -650,7 +650,8 @@ void FileSystem::openReadRaw(SDL_RWops &ops,
bool freeOnClose)
{
PHYSFS_File *handle = PHYSFS_openRead(filename);
assert(handle);
if (!handle)
throw Exception(Exception::NoFileError, "%s", filename);
initReadOps(handle, ops, freeOnClose);
}