summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorGravatar Lioncash2016-04-13 19:29:16 -0400
committerGravatar Lioncash2016-04-13 20:17:17 -0400
commita4120ca66cc6c0f3a8056c6ea247c15f63c7feff (patch)
treea0db95eee61ce8070add52e3abd55971be6458df /src/common/file_util.h
parentfile_util: Check for is_trivially_copyable (diff)
downloadyuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.gz
yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.xz
yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.zip
file_util: Don't expose IOFile internals through the API
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index dd151575f..8f72fb4e2 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -176,7 +176,6 @@ class IOFile : public NonCopyable
176{ 176{
177public: 177public:
178 IOFile(); 178 IOFile();
179 explicit IOFile(std::FILE* file);
180 IOFile(const std::string& filename, const char openmode[]); 179 IOFile(const std::string& filename, const char openmode[]);
181 180
182 ~IOFile(); 181 ~IOFile();
@@ -245,13 +244,7 @@ public:
245 244
246 // m_good is set to false when a read, write or other function fails 245 // m_good is set to false when a read, write or other function fails
247 bool IsGood() const { return m_good; } 246 bool IsGood() const { return m_good; }
248 operator void*() { return m_good ? m_file : nullptr; } 247 explicit operator bool() const { return IsGood(); }
249
250 std::FILE* ReleaseHandle();
251
252 std::FILE* GetHandle() { return m_file; }
253
254 void SetHandle(std::FILE* file);
255 248
256 bool Seek(s64 off, int origin); 249 bool Seek(s64 off, int origin);
257 u64 Tell(); 250 u64 Tell();