summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 72b80be8a..293c30941 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -1,5 +1,5 @@
1// Copyright 2013 Dolphin Emulator Project 1// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
2// Licensed under GPLv2 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#pragma once 5#pragma once
@@ -27,6 +27,9 @@ enum {
27 D_STATESAVES_IDX, 27 D_STATESAVES_IDX,
28 D_SCREENSHOTS_IDX, 28 D_SCREENSHOTS_IDX,
29 D_SDMC_IDX, 29 D_SDMC_IDX,
30 D_SAVEDATA_IDX,
31 D_SYSDATA_IDX,
32 D_SYSSAVEDATA_IDX,
30 D_HIRESTEXTURES_IDX, 33 D_HIRESTEXTURES_IDX,
31 D_DUMP_IDX, 34 D_DUMP_IDX,
32 D_DUMPFRAMES_IDX, 35 D_DUMPFRAMES_IDX,
@@ -202,11 +205,11 @@ public:
202 return WriteArray(reinterpret_cast<const char*>(data), length); 205 return WriteArray(reinterpret_cast<const char*>(data), length);
203 } 206 }
204 207
205 bool IsOpen() { return NULL != m_file; } 208 bool IsOpen() { return nullptr != m_file; }
206 209
207 // m_good is set to false when a read, write or other function fails 210 // m_good is set to false when a read, write or other function fails
208 bool IsGood() { return m_good; } 211 bool IsGood() { return m_good; }
209 operator void*() { return m_good ? m_file : NULL; } 212 operator void*() { return m_good ? m_file : nullptr; }
210 213
211 std::FILE* ReleaseHandle(); 214 std::FILE* ReleaseHandle();
212 215