summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/file_sdmc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys/file_sdmc.cpp')
-rw-r--r--src/core/file_sys/file_sdmc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/file_sys/file_sdmc.cpp b/src/core/file_sys/file_sdmc.cpp
index 76e7f5d3d..3ef2b0c0e 100644
--- a/src/core/file_sys/file_sdmc.cpp
+++ b/src/core/file_sys/file_sdmc.cpp
@@ -76,6 +76,17 @@ size_t File_SDMC::GetSize() const {
}
/**
+ * Set the size of the file in bytes
+ * @param size New size of the file
+ * @return true if successful
+ */
+bool File_SDMC::SetSize(const u64 size) const {
+ file->Resize(size);
+ file->Flush();
+ return true;
+}
+
+/**
* Close the file
* @return true if the file closed correctly
*/