diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-09-01 15:48:02 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-09-01 15:48:02 -0400 |
| commit | 1977ea42ae71172a2fda0f2ae1a0b8b60b07e20e (patch) | |
| tree | dbce5fcbb2c65f96bf5b7600b2d3e45698371912 /Source/Core/DiscIO/Blob.cpp | |
| parent | 5cc0bda3d53fc3edf037f85784cba09f7322d096 (diff) | |
DiscIO: Prefix class member variables with "m_"
Diffstat (limited to 'Source/Core/DiscIO/Blob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Blob.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/DiscIO/Blob.cpp b/Source/Core/DiscIO/Blob.cpp index 7a4c5a8469..2e2eacc722 100644 --- a/Source/Core/DiscIO/Blob.cpp +++ b/Source/Core/DiscIO/Blob.cpp @@ -27,15 +27,15 @@ void SectorReader::SetSectorSize(int blocksize) { for (int i = 0; i < CACHE_SIZE; i++) { - cache[i] = new u8[blocksize]; - cache_tags[i] = (u64)(s64) - 1; + m_cache[i] = new u8[blocksize]; + m_cache_tags[i] = (u64)(s64) - 1; } m_blocksize = blocksize; } SectorReader::~SectorReader() { - for (u8*& block : cache) + for (u8*& block : m_cache) { delete [] block; } @@ -44,15 +44,15 @@ SectorReader::~SectorReader() const u8 *SectorReader::GetBlockData(u64 block_num) { // TODO : Expand usage of the cache to more than one block :P - if (cache_tags[0] == block_num) + if (m_cache_tags[0] == block_num) { - return cache[0]; + return m_cache[0]; } else { - GetBlock(block_num, cache[0]); - cache_tags[0] = block_num; - return cache[0]; + GetBlock(block_num, m_cache[0]); + m_cache_tags[0] = block_num; + return m_cache[0]; } } |
