mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-15 04:38:57 +02:00
[chore] It can possible kill someone
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
parent
c21a410db7
commit
5566e62c5b
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