From 5b801b6934bf8361af4cee7556351a7fd43150fa Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 23 Jul 2022 19:01:44 +0100 Subject: Document some Portal 2 breakage that needs fixed --- TODO/compat | 2 ++ src/alias.c | 4 ++++ src/con_.c | 1 + 3 files changed, 7 insertions(+) diff --git a/TODO/compat b/TODO/compat index 7f210e8..08d7c7f 100644 --- a/TODO/compat +++ b/TODO/compat @@ -1,3 +1,5 @@ Support more games and engine branches ==== Pretty self-explanatory. + +*Alert! It seems Portal 2 had some stuff broken! Fix before 1.0 release!* diff --git a/src/alias.c b/src/alias.c index 7db5907..9d53e69 100644 --- a/src/alias.c +++ b/src/alias.c @@ -22,6 +22,7 @@ #include "dbg.h" #include "errmsg.h" #include "extmalloc.h" +#include "gametype.h" #include "mem.h" #include "x86.h" @@ -97,6 +98,9 @@ static bool find_alias_head(con_cmdcb alias_cb) { } bool alias_init(void) { + // TODO(compat): no idea why sst_alias_clear crashes in p2, figure out later + if (GAMETYPE_MATCHES(Portal2)) return false; + struct con_cmd *cmd_alias = con_findcmd("alias"); if (!cmd_alias) { errmsg_warnx("couldn't find \"alias\" command"); diff --git a/src/con_.c b/src/con_.c index f259324..cb3db5b 100644 --- a/src/con_.c +++ b/src/con_.c @@ -326,6 +326,7 @@ void con_reg(void *cmd_or_var) { } void con_init(void) { + // FIXME: ConsoleColorPrintf isn't working in Portal 2, possible regression? _con_colourmsgf = VFUNC(_con_iface, ConsoleColorPrintf); dllid = VCALL(_con_iface, AllocateDLLIdentifier); -- cgit v1.2.3