mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-18 10:50:05 +00:00
Triforce: Code cleanups.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
@@ -18,25 +19,25 @@ public:
|
||||
struct BootID
|
||||
{
|
||||
u32 magic; // 0x00 (Always BTID)
|
||||
uint32_t unknown0[3];
|
||||
uint32_t unknown1[4];
|
||||
char mediaboardType[4]; // 0x20 (GCAM for Triforce)
|
||||
std::array<uint32_t, 3> unknown0;
|
||||
std::array<uint32_t, 4> unknown1;
|
||||
std::array<char, 4> mediaboard_type; // 0x20 (GCAM for Triforce)
|
||||
uint32_t unknown2;
|
||||
uint16_t year; // 0x28
|
||||
uint8_t month; // 0x2A
|
||||
uint8_t day; // 0x2B
|
||||
uint8_t videoMode; // 0x2C unknown bitmask, resolutions + horizontal/vertical
|
||||
uint16_t year; // 0x28
|
||||
uint8_t month; // 0x2A
|
||||
uint8_t day; // 0x2B
|
||||
uint8_t video_mode; // 0x2C unknown bitmask, resolutions + horizontal/vertical
|
||||
uint8_t unknown3;
|
||||
uint8_t type3Compatible; // 0x2E (Type-3 compatible titles have this set to 1)
|
||||
uint8_t type_3_compatible; // 0x2E (Type-3 compatible titles have this set to 1)
|
||||
uint8_t unknown4;
|
||||
char gameId[8]; // 0x30
|
||||
uint32_t regionFlags; // 0x38
|
||||
uint32_t unknown6[9];
|
||||
char manufacturer[0x20]; // 0x60
|
||||
char gameName[0x20]; // 0x80
|
||||
char gameExecutable[0x20]; // 0xA0
|
||||
char testExecutable[0x20]; // 0xC0
|
||||
char creditTypes[8][0x20]; // 0xE0
|
||||
std::array<char, 8> game_id; // 0x30
|
||||
uint32_t region_flags; // 0x38
|
||||
std::array<uint32_t, 9> unknown6;
|
||||
std::array<char, 0x20> manufacturer; // 0x60
|
||||
std::array<char, 0x20> game_name; // 0x80
|
||||
std::array<char, 0x20> game_executable; // 0xA0
|
||||
std::array<char, 0x20> test_executable; // 0xC0
|
||||
std::array<std::array<char, 0x20>, 8> credit_types; // 0xE0
|
||||
};
|
||||
|
||||
std::string GetGameID(const Partition& partition = PARTITION_NONE) const override;
|
||||
@@ -53,4 +54,6 @@ protected:
|
||||
void AddGamePartitionToSyncHash(Common::SHA1::Context* context) const;
|
||||
};
|
||||
|
||||
static_assert(sizeof(VolumeDisc::BootID) == 480);
|
||||
|
||||
} // namespace DiscIO
|
||||
|
||||
Reference in New Issue
Block a user