summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/Sources/File.c
diff options
context:
space:
mode:
Diffstat (limited to 'SDK/Libraries/CoreSystem/Sources/File.c')
-rw-r--r--SDK/Libraries/CoreSystem/Sources/File.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/SDK/Libraries/CoreSystem/Sources/File.c b/SDK/Libraries/CoreSystem/Sources/File.c
index 7547e7f2..6e0e810a 100644
--- a/SDK/Libraries/CoreSystem/Sources/File.c
+++ b/SDK/Libraries/CoreSystem/Sources/File.c
@@ -38,10 +38,21 @@ CS_EXTERN_C VoidType CSCloseFile(FSRef refCS)
{
CS_MUST_PASS(kSharedApplication);
- kSharedApplication->Invoke(kSharedApplication, refCS, kFlushFile);
+ CSFlushFile(refCS);
+
kSharedApplication->Invoke(kSharedApplication, kCallCloseFile, refCS);
}
+/// @brief Flush file
+/// @param refCS the file reference.
+/// @return
+CS_EXTERN_C VoidType CSFlushFile(FSRef refCS)
+{
+ CS_MUST_PASS(kSharedApplication);
+
+ kSharedApplication->Invoke(kSharedApplication, refCS, kFlushFile);
+}
+
/// @brief Check if filesystem path is valid.
/// @param path
/// @return