aboutsummaryrefslogtreecommitdiff
path: root/src/FATStorage.cpp
diff options
context:
space:
mode:
authorJesse Talavera <jesse@jesse.tg>2023-12-26 10:34:04 -0500
committerGitHub <noreply@github.com>2023-12-26 16:34:04 +0100
commitd55a384c8807cd0962399dac69e8ee1a9d5c53fd (patch)
treed6a75dcb78f9ff108d3776a2f38a85992ec39304 /src/FATStorage.cpp
parent740489f7a4a848bd3f96f1c911a6c7db5f6cc27f (diff)
Apply some quick hotfixes (#1931)
Diffstat (limited to 'src/FATStorage.cpp')
-rw-r--r--src/FATStorage.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/FATStorage.cpp b/src/FATStorage.cpp
index 52011a8..9a1a9ad 100644
--- a/src/FATStorage.cpp
+++ b/src/FATStorage.cpp
@@ -32,14 +32,8 @@ using namespace Platform;
using std::string;
FATStorage::FATStorage(const std::string& filename, u64 size, bool readonly, const std::optional<string>& sourcedir) :
- FilePath(filename),
- FileSize(size),
- ReadOnly(readonly),
- SourceDir(sourcedir)
+ FATStorage(FATStorageArgs { filename, size, readonly, sourcedir })
{
- Load(filename, size, sourcedir);
-
- File = Platform::OpenLocalFile(FilePath, FileMode::ReadWriteExisting);
}
FATStorage::FATStorage(const FATStorageArgs& args) noexcept :
@@ -55,7 +49,7 @@ FATStorage::FATStorage(FATStorageArgs&& args) noexcept :
{
Load(FilePath, FileSize, SourceDir);
- File = nullptr;
+ File = Platform::OpenLocalFile(FilePath, FileMode::ReadWriteExisting);
}
FATStorage::FATStorage(FATStorage&& other) noexcept