support .bin/.bind files in ep3 maps directories

This commit is contained in:
Martin Michelsen
2023-01-19 19:12:37 -08:00
parent 9b136d9444
commit a4f52b9b22
2 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -1422,9 +1422,9 @@ DataIndex::DataIndex(const string& directory, uint32_t behavior_flags)
try {
shared_ptr<MapEntry> entry;
if (ends_with(filename, ".mnmd")) {
if (ends_with(filename, ".mnmd") || ends_with(filename, ".bind")) {
entry.reset(new MapEntry(load_object_file<MapDefinition>(dir + "/" + filename), is_quest));
} else if (ends_with(filename, ".mnm")) {
} else if (ends_with(filename, ".mnm") || ends_with(filename, ".bin")) {
entry.reset(new MapEntry(load_file(dir + "/" + filename), is_quest));
}