mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-30 23:59:02 +02:00
[chore] It can possible kill someone
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
parent
f0a12777f2
commit
ef45fae40f
2 changed files with 12 additions and 0 deletions
|
|
@ -403,7 +403,11 @@ void IOFile::Open(const fs::path& path, FileAccessMode mode, FileType type, File
|
|||
}
|
||||
|
||||
void IOFile::Close() {
|
||||
#if defined(__APPLE__)
|
||||
// NO IMPLEMENTATION YET
|
||||
#else
|
||||
PlatformUnmap(*this);
|
||||
#endif
|
||||
if (file) {
|
||||
errno = 0;
|
||||
const auto close_result = std::fclose(file) == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue