dolphin/Source/Core/Core/IOS/FS
Léo Lam 391644dbb5
IOS/FS: Add a scoped FD class to make it harder to leak FDs
This changes FileSystemProxy::Open to return a file descriptor wrapper
that will ensure the FD is closed when it goes out of scope.

By using such a wrapper we make it more difficult to forget to close
file descriptors.

This fixes a leak in ReadBootContent. I should have added such a class
from the beginning... In practice, I don't think this would have caused
any obvious issue because ReadBootContent is only called after an IOS
relaunch -- which clears all FDs -- and most titles do not get close
to the FD limit.
2021-04-01 21:34:58 +02:00
..
HostBackend rename Common/File to Common/IOFile 2021-01-27 14:29:48 -08:00
FileSystem.h WiiUtils: Check hashes to determine if a title is installed and up-to-date 2020-12-06 01:53:55 +01:00
FileSystemCommon.cpp rename Core/IOS/FS/FileSystem.cpp to FileSystemCommon.cpp 2021-01-27 14:29:48 -08:00
FileSystemProxy.cpp IOS/FS: Add a scoped FD class to make it harder to leak FDs 2021-04-01 21:34:58 +02:00
FileSystemProxy.h IOS/FS: Add a scoped FD class to make it harder to leak FDs 2021-04-01 21:34:58 +02:00