mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 13:59:57 +00:00
Raise exception on FileSystem::openReadRaw
This commit is contained in:
parent
e0548d1d3c
commit
a702d9639b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue