|
@@ -483,6 +483,10 @@ namespace LOTRO_DAT {
|
|
|
}
|
|
|
dat_state_ = UPDATED;
|
|
|
|
|
|
+ if (orig_dict_.count(file->file_id()) == 0) {
|
|
|
+ orig_dict_[file->file_id()] = new Subfile(this, dictionary_[file->file_id()]->MakeHeaderData());
|
|
|
+ }
|
|
|
+
|
|
|
auto journal = GetFragmentationJournal();
|
|
|
if (journal[0].second != file_size_) {
|
|
|
journal[0].second = file_size_;
|
|
@@ -630,11 +634,6 @@ namespace LOTRO_DAT {
|
|
|
FILE *dict_file = fopen(filename, "rb");
|
|
|
|
|
|
if (dict_file == nullptr) {
|
|
|
- if (locale == ORIGINAL) {
|
|
|
- for (auto file : dictionary_) {
|
|
|
- (*dict)[file.first] = new Subfile(this, file.second->MakeHeaderData());
|
|
|
- }
|
|
|
- }
|
|
|
fprintf(stderr, "WARNING!!! DatFile::InitLocale() - cannot open .dat locale file %s\n", filename);
|
|
|
return;
|
|
|
}
|