diff --git a/src/Quest.cc b/src/Quest.cc index 816dbc46..5cf0cd9a 100644 --- a/src/Quest.cc +++ b/src/Quest.cc @@ -138,6 +138,10 @@ string decrypt_gci_or_vms_v2_data_section( } } + // Note: Other PSO save files have the round 2 seed at the end of the data, + // not at the beginning. Presumably they did this because the system, + // character, and Guild Card files are a constant size, but download quest + // files can vary in size. using HeaderT = typename conditional, PSOMemCardFileEncryptedHeader>::type; auto* header = reinterpret_cast(decrypted.data()); PSOV2Encryption round2_crypt(header->round2_seed);