mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
DiscIO: Prefix class member variables with "m_"
This commit is contained in:
@ -41,19 +41,6 @@ protected:
|
||||
// Multi-block reads are not cached.
|
||||
class SectorReader : public IBlobReader
|
||||
{
|
||||
private:
|
||||
enum { CACHE_SIZE = 32 };
|
||||
int m_blocksize;
|
||||
u8* cache[CACHE_SIZE];
|
||||
u64 cache_tags[CACHE_SIZE];
|
||||
int cache_age[CACHE_SIZE];
|
||||
|
||||
protected:
|
||||
void SetSectorSize(int blocksize);
|
||||
virtual void GetBlock(u64 block_num, u8 *out) = 0;
|
||||
// This one is uncached. The default implementation is to simply call GetBlockData multiple times and memcpy.
|
||||
virtual bool ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8 *out_ptr);
|
||||
|
||||
public:
|
||||
virtual ~SectorReader();
|
||||
|
||||
@ -61,6 +48,19 @@ public:
|
||||
const u8 *GetBlockData(u64 block_num);
|
||||
virtual bool Read(u64 offset, u64 size, u8 *out_ptr) override;
|
||||
friend class DriveReader;
|
||||
|
||||
protected:
|
||||
void SetSectorSize(int blocksize);
|
||||
virtual void GetBlock(u64 block_num, u8 *out) = 0;
|
||||
// This one is uncached. The default implementation is to simply call GetBlockData multiple times and memcpy.
|
||||
virtual bool ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8 *out_ptr);
|
||||
|
||||
private:
|
||||
enum { CACHE_SIZE = 32 };
|
||||
int m_blocksize;
|
||||
u8* m_cache[CACHE_SIZE];
|
||||
u64 m_cache_tags[CACHE_SIZE];
|
||||
int m_cache_age[CACHE_SIZE];
|
||||
};
|
||||
|
||||
// Factory function - examines the path to choose the right type of IBlobReader, and returns one.
|
||||
|
Reference in New Issue
Block a user