From 9b8b17290c5a99fe3f50a9dc4bcf1b4304d139e0 Mon Sep 17 00:00:00 2001 From: Xanfre Date: Wed, 13 Nov 2024 22:25:15 -0600 Subject: [PATCH 1/2] Add missing Thief-specific data directories --- Source/ModManager.cpp | 5 ++++- Source/ModManager.hpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/ModManager.cpp b/Source/ModManager.cpp index 7c379eb..52cf5e9 100644 --- a/Source/ModManager.cpp +++ b/Source/ModManager.cpp @@ -1474,11 +1474,14 @@ void ModManager::resetStates() } } -const std::array ModManager::dataDirectories_ = +const std::array ModManager::dataDirectories_ = { { "bitmap", "book", + "books", + "camera", + "default", "editor", "fam", "fonts", diff --git a/Source/ModManager.hpp b/Source/ModManager.hpp index 4a0bb1e..0c3f42d 100644 --- a/Source/ModManager.hpp +++ b/Source/ModManager.hpp @@ -106,7 +106,7 @@ class ModManager void collectMisFileToModMapping(Mod& mod, std::unordered_map>& misFileToMods); void createLogFile(); - static const std::array dataDirectories_; + static const std::array dataDirectories_; static const std::array dataFiles_; ApplicationConfig& config_; From 2749796f18ad9e7691318ebfd229c758efa5effd Mon Sep 17 00:00:00 2001 From: Xanfre Date: Wed, 13 Nov 2024 23:03:59 -0600 Subject: [PATCH 2/2] Fix script files not being properly detected --- Source/ModManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ModManager.cpp b/Source/ModManager.cpp index 52cf5e9..3c03aaf 100644 --- a/Source/ModManager.cpp +++ b/Source/ModManager.cpp @@ -1510,7 +1510,7 @@ const std::array ModManager::dataFiles_ = "shkres.res", "skeldata.res", "texture.res", - "*.nut" + "*.nut", "*.osm" } }; \ No newline at end of file