Skip to content

Commit 10cb133

Browse files
committed
sort mods alphabetically, better warning for unsupported types
1 parent 5d96a9d commit 10cb133

File tree

11 files changed

+140106
-19
lines changed

11 files changed

+140106
-19
lines changed

compile_commands.json

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

include/ModSettings/ModSettings.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ union ModVariableType {
2828
uint32_t u32;
2929
int32_t i32;
3030
float f32;
31+
// not yet supported
32+
// CName cname;
3133
};
3234

3335
typedef std::function<void (CName categoryName, CName propertyName, ModVariableType value)> runtime_class_callback_t;
@@ -49,6 +51,7 @@ struct Variable {
4951
ModSettingDependency dependency;
5052
};
5153

54+
// updating ModVariableType for CName will change this
5255
RED4EXT_ASSERT_SIZE(Variable, 152);
5356

5457
extern "C" MOD_SETTINGS_DLLDIR void AddVariable(Variable *variable);

0 commit comments

Comments
 (0)