From c15101df02685a5d26f4b130f7b559eb7ed7f74f Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 15 Nov 2025 20:24:41 +0000 Subject: Deal with CON_HIDDEN not existing in OE Pretty hacky for now, but not the worst thing in the world. Can always be tidied up later. --- src/build/gluegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/build') diff --git a/src/build/gluegen.c b/src/build/gluegen.c index 5d02f48..6a859d3 100644 --- a/src/build/gluegen.c +++ b/src/build/gluegen.c @@ -749,6 +749,7 @@ F( " feats.preinit_%.*s = _feat_preinit_%.*s();", _( "}") _( "") _( "static inline void initfeatures() {") +_( " int _hiddenflag = GAMETYPE_MATCHES(OE) ? 0 : _CON_NE_HIDDEN;") for (int i = 0; i < nfeatures; ++i) { // N.B.: this *should* be 0-indexed! const char *else_ = ""; s16 mod = feat_initorder[i]; @@ -813,7 +814,7 @@ F( " if (status_%.*s != FEAT_SKIP) {", modname.len, modname.s) F( " con_regvar(%.*s);", cvar_names[i].len, cvar_names[i].s) -F( " if (status_%.*s != FEAT_OK) %.*s->base.flags |= CON_HIDDEN;", +F( " if (status_%.*s != FEAT_OK) %.*s->base.flags |= _hiddenflag;", modname.len, modname.s, cvar_names[i].len, cvar_names[i].s) _( " }") } -- cgit v1.2.3-54-g00ecf