mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Fix some vertical alignments
ie. uses spaces for alignment.
This commit is contained in:
@ -121,8 +121,8 @@ bool CFileSystemGCWii::ExportFile(const char* _rFullPath, const char* _rExportFi
|
||||
bool CFileSystemGCWii::ExportApploader(const char* _rExportFolder) const
|
||||
{
|
||||
u32 AppSize = Read32(0x2440 + 0x14);// apploader size
|
||||
AppSize += Read32(0x2440 + 0x18); // + trailer size
|
||||
AppSize += 0x20; // + header size
|
||||
AppSize += Read32(0x2440 + 0x18); // + trailer size
|
||||
AppSize += 0x20; // + header size
|
||||
DEBUG_LOG(DISCIO,"AppSize -> %x", AppSize);
|
||||
|
||||
std::vector<u8> buffer(AppSize);
|
||||
@ -150,8 +150,8 @@ u32 CFileSystemGCWii::GetBootDOLSize() const
|
||||
// Iterate through the 7 code segments
|
||||
for (u8 i = 0; i < 7; i++)
|
||||
{
|
||||
offset = Read32(DolOffset + 0x00 + i * 4);
|
||||
size = Read32(DolOffset + 0x90 + i * 4);
|
||||
offset = Read32(DolOffset + 0x00 + i * 4);
|
||||
size = Read32(DolOffset + 0x90 + i * 4);
|
||||
if (offset + size > DolSize)
|
||||
DolSize = offset + size;
|
||||
}
|
||||
@ -159,8 +159,8 @@ u32 CFileSystemGCWii::GetBootDOLSize() const
|
||||
// Iterate through the 11 data segments
|
||||
for (u8 i = 0; i < 11; i++)
|
||||
{
|
||||
offset = Read32(DolOffset + 0x1c + i * 4);
|
||||
size = Read32(DolOffset + 0xac + i * 4);
|
||||
offset = Read32(DolOffset + 0x1c + i * 4);
|
||||
size = Read32(DolOffset + 0xac + i * 4);
|
||||
if (offset + size > DolSize)
|
||||
DolSize = offset + size;
|
||||
}
|
||||
|
@ -79,19 +79,19 @@ u8 GetSysMenuRegion(u16 _TitleVersion)
|
||||
{
|
||||
switch(_TitleVersion)
|
||||
{
|
||||
case 128: case 192: case 224: case 256:
|
||||
case 288: case 352: case 384: case 416:
|
||||
case 448: case 480: case 512:
|
||||
case 128: case 192: case 224: case 256:
|
||||
case 288: case 352: case 384: case 416:
|
||||
case 448: case 480: case 512:
|
||||
return 'J';
|
||||
case 97: case 193: case 225: case 257:
|
||||
case 289: case 353: case 385: case 417:
|
||||
case 449: case 481: case 513:
|
||||
case 97: case 193: case 225: case 257:
|
||||
case 289: case 353: case 385: case 417:
|
||||
case 449: case 481: case 513:
|
||||
return 'E';
|
||||
case 130: case 162: case 194: case 226:
|
||||
case 258: case 290: case 354: case 386:
|
||||
case 418: case 450: case 482: case 514:
|
||||
case 130: case 162: case 194: case 226:
|
||||
case 258: case 290: case 354: case 386:
|
||||
case 418: case 450: case 482: case 514:
|
||||
return 'P';
|
||||
case 326: case 390: case 454: case 486:
|
||||
case 326: case 390: case 454: case 486:
|
||||
case 518:
|
||||
return 'K';
|
||||
default:
|
||||
|
@ -356,9 +356,9 @@ void CVolumeDirectory::BuildFST()
|
||||
m_dataStartAddress = ROUND_UP(FST_ADDRESS + m_fstSize, 0x8000ull);
|
||||
u64 curDataAddress = m_dataStartAddress;
|
||||
|
||||
u32 fstOffset = 0; // offset within FST data
|
||||
u32 nameOffset = 0; // offset within name table
|
||||
u32 rootOffset = 0; // offset of root of FST
|
||||
u32 fstOffset = 0; // Offset within FST data
|
||||
u32 nameOffset = 0; // Offset within name table
|
||||
u32 rootOffset = 0; // Offset of root of FST
|
||||
|
||||
// write root entry
|
||||
WriteEntryData(fstOffset, DIRECTORY_ENTRY, 0, 0, totalEntries);
|
||||
|
@ -25,8 +25,8 @@ public:
|
||||
std::string GetUniqueID() const;
|
||||
std::string GetMakerID() const;
|
||||
std::vector<std::string> GetNames() const;
|
||||
u32 GetFSTSize() const { return 0; }
|
||||
std::string GetApploaderDate() const { return "0"; }
|
||||
u32 GetFSTSize() const { return 0; }
|
||||
std::string GetApploaderDate() const { return "0"; }
|
||||
ECountry GetCountry() const;
|
||||
u64 GetSize() const;
|
||||
u64 GetRawSize() const;
|
||||
|
@ -82,7 +82,7 @@ bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const
|
||||
|
||||
// increase buffers
|
||||
_Length -= CopySize;
|
||||
_pBuffer += CopySize;
|
||||
_pBuffer += CopySize;
|
||||
_ReadOffset += CopySize;
|
||||
}
|
||||
|
||||
|
@ -187,10 +187,10 @@ bool IsWbfsBlob(const char* filename)
|
||||
u8 magic[4] = {0, 0, 0, 0};
|
||||
f.ReadBytes(&magic, 4);
|
||||
|
||||
return (magic[0] == 'W') &&
|
||||
(magic[1] == 'B') &&
|
||||
(magic[2] == 'F') &&
|
||||
(magic[3] == 'S');
|
||||
return (magic[0] == 'W') &&
|
||||
(magic[1] == 'B') &&
|
||||
(magic[2] == 'F') &&
|
||||
(magic[3] == 'S');
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user