summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fssystem/fssystem_sparse_storage.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/fssystem/fssystem_sparse_storage.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/file_sys/fssystem/fssystem_sparse_storage.h b/src/core/file_sys/fssystem/fssystem_sparse_storage.h
index c1ade7195..6c196ec61 100644
--- a/src/core/file_sys/fssystem/fssystem_sparse_storage.h
+++ b/src/core/file_sys/fssystem/fssystem_sparse_storage.h
@@ -22,7 +22,6 @@ private:
}
virtual size_t Read(u8* buffer, size_t size, size_t offset) const override {
- ASSERT(offset >= 0);
ASSERT(buffer != nullptr || size == 0);
if (size > 0) {
@@ -33,9 +32,6 @@ private:
}
};
-private:
- VirtualFile m_zero_storage;
-
public:
SparseStorage() : IndirectStorage(), m_zero_storage(std::make_shared<ZeroStorage>()) {}
virtual ~SparseStorage() {}
@@ -68,6 +64,9 @@ private:
void SetZeroStorage() {
return this->SetStorage(1, m_zero_storage, 0, std::numeric_limits<s64>::max());
}
+
+private:
+ VirtualFile m_zero_storage;
};
} // namespace FileSys