From 3cce0e5621dc118b32c4143b42ced51c5328f7c7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 2 Aug 2025 16:15:15 +0100 Subject: Add an abstraction for hooking v1 and v2 commands This is a step towards making command hooks work in OE, once OE is supported. Not the most ideal or efficient thing in the world, but it works okay until we come up with something better, I suppose. Not a fan of the argv copying but avoiding that would make the API a lot less ergonomic. Not the easiest problem to solve, really... --- src/portalisg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/portalisg.c') diff --git a/src/portalisg.c b/src/portalisg.c index b9a85d9..bdc007f 100644 --- a/src/portalisg.c +++ b/src/portalisg.c @@ -36,6 +36,7 @@ static con_cmdcbv2 disconnect_cb; DEF_FEAT_CCMD_HERE(sst_portal_resetisg, "Remove \"ISG\" state and disconnect from the server", 0) { + // TODO(compat): OE? guess it might work by accident due to cdecl, find out disconnect_cb(&(struct con_cmdargs){0}); *isg_flag = false; } -- cgit v1.2.3-54-g00ecf