Raise exception on FileSystem::openReadRaw
This commit is contained in:
parent
0c64b6c4b5
commit
0b04d60ce0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue