mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Fixed compilation of the Linux version. Also some small cleanups.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@568 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
89fa3804f1
commit
a112da66ea
2 changed files with 45 additions and 51 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <cstdio>
|
||||
#endif
|
||||
|
||||
namespace DiscIO
|
||||
|
@ -31,18 +33,21 @@ class PlainFileReader : public IBlobReader
|
|||
{
|
||||
#ifdef _WIN32
|
||||
HANDLE hFile;
|
||||
s64 size;
|
||||
PlainFileReader(HANDLE hFile_);
|
||||
#else
|
||||
FILE* file_;
|
||||
PlainFileReader(FILE* file__);
|
||||
#endif
|
||||
s64 size;
|
||||
|
||||
public:
|
||||
static PlainFileReader* Create(const char* filename);
|
||||
~PlainFileReader();
|
||||
u64 GetDataSize() const { return size; }
|
||||
u64 GetRawSize() const { return size; }
|
||||
bool Read(u64 offset, u64 size, u8* out_ptr);
|
||||
bool Read(u64 offset, u64 nbytes, u8* out_ptr);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // _FILE_BLOB_H
|
||||
#endif // _FILE_BLOB_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue