add support for unencrypted gci quests

This commit is contained in:
Martin Michelsen
2021-10-20 23:11:35 -07:00
parent ef1d814ee6
commit a0e23b0580
2 changed files with 116 additions and 32 deletions
+6 -1
View File
@@ -34,7 +34,11 @@ const char* name_for_category(QuestCategory category);
struct Quest {
class Quest {
private:
static std::string decode_gci(const std::string& filename);
public:
int64_t quest_id;
QuestCategory category;
uint8_t episode; // 0 = ep1, 1 = ep2, 2 = ep4, 0xFF = ep3
@@ -42,6 +46,7 @@ struct Quest {
bool joinable;
GameVersion version;
std::string file_basename; // we append -<version>.<bin/dat> when reading
bool gci_format;
std::u16string name;
std::u16string short_description;
std::u16string long_description;