summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileSystemGCWii.cpp
diff options
context:
space:
mode:
authorTres Walsh <tres.walsh@mnmlstc.com>2015-01-11 13:49:26 -0800
committerTres Walsh <tres.walsh@mnmlstc.com>2015-01-11 13:54:20 -0800
commit8ee601d32b3115c53648d0bc7872f209e4e5df4f (patch)
tree3be825331000ac79f54a5ee4d6b6c673b9559d77 /Source/Core/DiscIO/FileSystemGCWii.cpp
parent9e541f6d2deb24c31c644b7556123279599beb1b (diff)
Fix variable name ambiguity
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp
index c94dffe6c2..381d1bdbd4 100644
--- a/Source/Core/DiscIO/FileSystemGCWii.cpp
+++ b/Source/Core/DiscIO/FileSystemGCWii.cpp
@@ -278,7 +278,8 @@ void CFileSystemGCWii::InitFileSystem()
Read32(FSTOffset + 0x8)
};
- if (!Root.IsDirectory()) { return; }
+ if (!Root.IsDirectory())
+ return;
if (m_FileInfoVector.size())
PanicAlert("Wtf?");
@@ -287,10 +288,10 @@ void CFileSystemGCWii::InitFileSystem()
m_FileInfoVector.reserve((size_t)Root.m_FileSize);
for (u32 i = 0; i < Root.m_FileSize; i++)
{
- u64 const Offset = FSTOffset + (i * 0xC);
- u64 const name_offset = Read32(Offset + 0x0);
- u64 const offset = static_cast<u64>(Read32(Offset + 0x4)) << shift;
- u64 const size = Read32(Offset + 0x8);
+ u64 const read_offset = FSTOffset + (i * 0xC);
+ u64 const name_offset = Read32(read_offset + 0x0);
+ u64 const offset = static_cast<u64>(Read32(read_offset + 0x4)) << shift;
+ u64 const size = Read32(read_offset + 0x8);
m_FileInfoVector.emplace_back(name_offset, offset, size);
NameTableOffset += 0xC;
}