add decoder for Ep3 trial download quests

This commit is contained in:
Martin Michelsen
2023-09-26 12:12:41 -07:00
parent a4961ad69d
commit 63f6aff4ed
3 changed files with 53 additions and 32 deletions
+5 -1
View File
@@ -87,7 +87,7 @@ void PSOGCIFileHeader::check() const {
if (this->developer_id[0] != '8' || this->developer_id[1] != 'P') {
throw runtime_error("GCI file is not for a Sega game");
}
if (this->game_id[0] != 'G') {
if ((this->game_id[0] != 'G') && (this->game_id[0] != 'D')) {
throw runtime_error("GCI file is not for a GameCube game");
}
if (this->game_id[1] != 'P') {
@@ -106,6 +106,10 @@ bool PSOGCIFileHeader::is_ep3() const {
return (this->game_id[2] == 'S');
}
bool PSOGCIFileHeader::is_trial() const {
return (this->game_id[0] == 'D');
}
uint32_t compute_psogc_timestamp(
uint16_t year,
uint8_t month,