mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-28 01:00:33 +00:00
Log when opening a file fails
This commit is contained in:
parent
f76c778118
commit
dae1d500da
@ -98,6 +98,7 @@ Platform::FileHandle *Platform::OpenFile(const std::string& path, FileMode mode,
|
||||
handle->type = type;
|
||||
|
||||
if (!handle->file) {
|
||||
Log(LogLevel::Error, "Attempted to open %s \"%s\" in FileMode 0x%x, but failed", FileTypeName(type), path.c_str(), mode);
|
||||
delete handle;
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user