53
53
Scenario(const char* data, const size_t length, int scenarioNum,
54
const std::string& regname,
54
55
const Compression::XorKey* second_level_xor_key);
55
56
Scenario(const FilePos& fp, int scenarioNum,
57
const std::string& regname,
56
58
const Compression::XorKey* second_level_xor_key);
58
60
// Get the scenario number
102
104
Scenario::Scenario(const char* data, const size_t length, int sn,
105
const std::string& regname,
103
106
const Compression::XorKey* second_level_xor_key)
104
107
: header(data, length),
105
script(header, data, length,
106
header.use_xor_2 ? second_level_xor_key : NULL),
108
script(header, data, length, regname,
109
header.use_xor_2, second_level_xor_key),
112
115
Scenario::Scenario(const FilePos& fp, int sn,
116
const std::string& regname,
113
117
const Compression::XorKey* second_level_xor_key)
114
118
: header(fp.data, fp.length),
115
script(header, fp.data, fp.length,
116
header.use_xor_2 ? second_level_xor_key : NULL),
119
script(header, fp.data, fp.length, regname,
120
header.use_xor_2, second_level_xor_key),