diff options
| author | 2016-04-13 19:29:16 -0400 | |
|---|---|---|
| committer | 2016-04-13 20:17:17 -0400 | |
| commit | a4120ca66cc6c0f3a8056c6ea247c15f63c7feff (patch) | |
| tree | a0db95eee61ce8070add52e3abd55971be6458df /src/common/file_util.h | |
| parent | file_util: Check for is_trivially_copyable (diff) | |
| download | yuzu-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.h | 9 |
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 | { |
| 177 | public: | 177 | public: |
| 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(); |