summaryrefslogtreecommitdiffstats
path: root/src/common/chunk_file.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-12 00:17:15 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-17 16:35:45 +0200
commit6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc (patch)
treedd5cdcd8b1f9822a019362b44a44ec9505adff8a /src/common/chunk_file.h
parentCommon: Return the number of items read/written in IOFile’s methods instead of a boolean. (diff)
downloadyuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar.gz
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar.bz2
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar.lz
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar.xz
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.tar.zst
yuzu-6b7b36a8745ddfd0e24fa51ef74dbc3058b3dacc.zip
Diffstat (limited to 'src/common/chunk_file.h')
-rw-r--r--src/common/chunk_file.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.h
index 2b0f120e6..7a3b537c7 100644
--- a/src/common/chunk_file.h
+++ b/src/common/chunk_file.h
@@ -671,7 +671,7 @@ public:
_failureReason->clear();
_failureReason->append("LoadStateWrongVersion");
- if (!File::Exists(_rFilename)) {
+ if (!FileUtil::Exists(_rFilename)) {
_failureReason->clear();
_failureReason->append("LoadStateDoesntExist");
ERROR_LOG(COMMON, "ChunkReader: File doesn't exist");
@@ -679,7 +679,7 @@ public:
}
// Check file size
- const u64 fileSize = File::GetSize(_rFilename);
+ const u64 fileSize = FileUtil::GetSize(_rFilename);
static const u64 headerSize = sizeof(SChunkHeader);
if (fileSize < headerSize)
{
@@ -687,7 +687,7 @@ public:
return ERROR_BAD_FILE;
}
- File::IOFile pFile(_rFilename, "rb");
+ FileUtil::IOFile pFile(_rFilename, "rb");
if (!pFile)
{
ERROR_LOG(COMMON,"ChunkReader: Can't open file for reading");
@@ -765,7 +765,7 @@ public:
{
INFO_LOG(COMMON, "ChunkReader: Writing %s" , _rFilename.c_str());
- File::IOFile pFile(_rFilename, "wb");
+ FileUtil::IOFile pFile(_rFilename, "wb");
if (!pFile)
{
ERROR_LOG(COMMON,"ChunkReader: Error opening file for write");