mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
IOFile: Make origin parameter to Seek() an enum class.
This commit is contained in:
parent
c2d8191fbb
commit
36cfcb530f
26 changed files with 116 additions and 78 deletions
|
@ -13,6 +13,13 @@
|
|||
|
||||
namespace File
|
||||
{
|
||||
enum class SeekOrigin
|
||||
{
|
||||
Begin,
|
||||
Current,
|
||||
End,
|
||||
};
|
||||
|
||||
// simple wrapper for cstdlib file functions to
|
||||
// hopefully will make error checking easier
|
||||
// and make forgetting an fclose() harder
|
||||
|
@ -89,7 +96,7 @@ public:
|
|||
std::FILE* GetHandle() { return m_file; }
|
||||
void SetHandle(std::FILE* file);
|
||||
|
||||
bool Seek(s64 off, int origin);
|
||||
bool Seek(s64 offset, SeekOrigin origin);
|
||||
u64 Tell() const;
|
||||
u64 GetSize() const;
|
||||
bool Resize(u64 size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue