|
@@ -31,15 +31,15 @@ namespace LOTRO_DAT {
|
|
|
binary_data.emplace_back(file_data.CutData(24));
|
|
|
text_data.emplace_back(u"");
|
|
|
options.emplace_back(YAML::Node());
|
|
|
- options[0]["file_id"] = file_id();
|
|
|
- options[0]["extension"] = Extension();
|
|
|
+ options[0]["fid"] = file_id();
|
|
|
+ options[0]["ext"] = Extension();
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
BinaryData JpgSubfile::MakeForImport(const BinaryData &old_data, const BinaryData &binary_data, const std::u16string &text_data,
|
|
|
const YAML::Node &options) {
|
|
|
- if (!options["extension"] || options["extension"].as<std::string>() != Extension() ||
|
|
|
- !options["file_id"] || options["file_id"].as<long long>() != file_id()) {
|
|
|
+ if (!options["ext"] || options["ext"].as<std::string>() != Extension() ||
|
|
|
+ !options["fid"] || options["fid"].as<long long>() != file_id()) {
|
|
|
throw DatException("Bad DdsSubfile::MakeForImport() - invalid options data!", IMPORT_EXCEPTION);
|
|
|
}
|
|
|
return old_data.CutData(0, 40) + binary_data;
|