summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/FileHandlerARC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DiscIO/Src/FileHandlerARC.cpp')
-rw-r--r--Source/Core/DiscIO/Src/FileHandlerARC.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/Core/DiscIO/Src/FileHandlerARC.cpp b/Source/Core/DiscIO/Src/FileHandlerARC.cpp
index f1918f6431..a9e4beee5d 100644
--- a/Source/Core/DiscIO/Src/FileHandlerARC.cpp
+++ b/Source/Core/DiscIO/Src/FileHandlerARC.cpp
@@ -20,7 +20,7 @@
#include "FileHandlerARC.h"
#include "StringUtil.h"
#include "Blob.h"
-
+#include "FileUtil.h"
#define ARC_ID 0x55aa382d
@@ -144,16 +144,9 @@ CARCFile::ExportFile(const std::string& _rFullPath, const std::string& _rExportF
return(false);
}
- FILE* pFile = fopen(_rExportFilename.c_str(), "wb");
-
- if (pFile == NULL)
- {
- return(false);
- }
+ File::IOFile pFile(_rExportFilename, "wb");
- fwrite(&m_pBuffer[pFileInfo->m_Offset], (size_t) pFileInfo->m_FileSize, 1, pFile);
- fclose(pFile);
- return(true);
+ return pFile.WriteBytes(&m_pBuffer[pFileInfo->m_Offset], (size_t) pFileInfo->m_FileSize);
}