diff options
author | Lioncash <mathew1800@gmail.com> | 2016-04-14 01:29:16 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2016-04-14 02:17:17 +0200 |
commit | a4120ca66cc6c0f3a8056c6ea247c15f63c7feff (patch) | |
tree | a0db95eee61ce8070add52e3abd55971be6458df /src/common/file_util.h | |
parent | file_util: Check for is_trivially_copyable (diff) | |
download | yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.gz yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.bz2 yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.lz yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.xz yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.tar.zst yuzu-a4120ca66cc6c0f3a8056c6ea247c15f63c7feff.zip |
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 { public: IOFile(); - explicit IOFile(std::FILE* file); IOFile(const std::string& filename, const char openmode[]); ~IOFile(); @@ -245,13 +244,7 @@ public: // m_good is set to false when a read, write or other function fails bool IsGood() const { return m_good; } - operator void*() { return m_good ? m_file : nullptr; } - - std::FILE* ReleaseHandle(); - - std::FILE* GetHandle() { return m_file; } - - void SetHandle(std::FILE* file); + explicit operator bool() const { return IsGood(); } bool Seek(s64 off, int origin); u64 Tell(); |