@@ -44,6 +44,13 @@ namespace RTE {
44
44
// / <returns>The total number of loaded DataModules.</returns>
45
45
int GetTotalModuleCount () const { return static_cast <int >(m_LoadedDataModules.size ()); }
46
46
47
+ // / <summary>
48
+ // / Gets whether the specified mod is disabled in the settings.
49
+ // / </summary>
50
+ // / <param name="moduleName">Mod to check.</param>
51
+ // / <returns>Whether the module is disabled via settings.</returns>
52
+ bool IsModuleEnabled (const std::string_view &moduleName) const ;
53
+
47
54
// / <summary>
48
55
// / Gets whether a module name is of an official DataModule.
49
56
// / </summary>
@@ -82,6 +89,12 @@ namespace RTE {
82
89
#pragma endregion
83
90
84
91
#pragma region DataModule Info Getters
92
+ // / <summary>
93
+ // / Gets the DataModule names that are disabled and should not be loaded at startup.
94
+ // / </summary>
95
+ // / <returns>Map of mods which are disabled.</returns>
96
+ std::unordered_set<std::string> & GetDisabledDataModuleNames () { return m_DisabledDataModuleNames; }
97
+
85
98
// / <summary>
86
99
// / Gets the ID of a loaded DataModule.
87
100
// / </summary>
@@ -118,21 +131,6 @@ namespace RTE {
118
131
std::string GetFullModulePath (const std::string &modulePath) const ;
119
132
#pragma endregion
120
133
121
- #pragma region DataModule Management
122
- // / <summary>
123
- // / Gets the DataModule names that are disabled and should not be loaded at startup.
124
- // / </summary>
125
- // / <returns>Map of mods which are disabled.</returns>
126
- std::unordered_set<std::string> & GetDisabledDataModuleNames () { return m_DisabledDataModuleNames; }
127
-
128
- // / <summary>
129
- // / Gets whether the specified mod is disabled in the settings.
130
- // / </summary>
131
- // / <param name="moduleName">Mod to check.</param>
132
- // / <returns>Whether the module is disabled via settings.</returns>
133
- bool IsModuleEnabled (const std::string_view &moduleName) const ;
134
- #pragma endregion
135
-
136
134
#pragma region Contrete Methods
137
135
// / <summary>
138
136
// / Reads an entire DataModule and adds it to this. NOTE that official modules can't be loaded after any non-official ones!
0 commit comments