mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
Simplify fs::file::get_handle
Via fs::file_base::get_native_handle method
This commit is contained in:
parent
9736773c04
commit
a54d9c527f
2 changed files with 16 additions and 12 deletions
|
@ -65,12 +65,6 @@ namespace fs
|
|||
s64 ctime;
|
||||
};
|
||||
|
||||
// Native handle getter
|
||||
struct get_native_handle
|
||||
{
|
||||
virtual native_handle get() = 0;
|
||||
};
|
||||
|
||||
// File handle base
|
||||
struct file_base
|
||||
{
|
||||
|
@ -83,6 +77,7 @@ namespace fs
|
|||
virtual u64 write(const void* buffer, u64 size) = 0;
|
||||
virtual u64 seek(s64 offset, seek_mode whence) = 0;
|
||||
virtual u64 size() = 0;
|
||||
virtual native_handle get_native_handle();
|
||||
};
|
||||
|
||||
// Directory entry (TODO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue