mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix for read from raw drive on some machines,
must have been a fluke that it worked for me and a few others thanks to shuffle2 and daxtsu for testing patch some linux compile fixes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2360 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -32,13 +32,8 @@ class DriveReader : public SectorReader
|
||||
{
|
||||
private:
|
||||
DriveReader(const char *drive);
|
||||
void SetSectorSize(int blocksize);
|
||||
enum { CACHE_SIZE = 32 };
|
||||
int m_blocksize;
|
||||
u8* cache[CACHE_SIZE];
|
||||
u64 cache_tags[CACHE_SIZE];
|
||||
int cache_age[CACHE_SIZE];
|
||||
void GetBlock(u64 block_num, u8 *out_ptr);
|
||||
|
||||
#ifdef _WIN32
|
||||
HANDLE hDisc;
|
||||
PREVENT_MEDIA_REMOVAL pmrLockCDROM;
|
||||
@ -47,6 +42,7 @@ private:
|
||||
#endif
|
||||
s64 size;
|
||||
u64 *block_pointers;
|
||||
|
||||
public:
|
||||
static DriveReader *Create(const char *drive);
|
||||
~DriveReader();
|
||||
|
Reference in New Issue
Block a user