From 693ec1fd3a18eb0293394ff3306b9a84bf9206d7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 May 2024 22:19:36 +0100 Subject: Disable fastfwd outside L4D so SPT doesn't break --- src/fastfwd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fastfwd.c b/src/fastfwd.c index fb16e13..92d7623 100644 --- a/src/fastfwd.c +++ b/src/fastfwd.c @@ -185,6 +185,13 @@ next: NEXT_INSN(p, name); return 0; } +PREINIT { + // currently only used for l4d quick reset stuff, and conflicts with SPT's + // tas_pause hook. so, disable for non-L4D games for now, to be polite. + // TODO(compat): come up with a real solution for this if/when required + return GAMETYPE_MATCHES(L4Dbased); +} + INIT { void *hldsapi = factory_engine("VENGINE_HLDS_API_VERSION002", 0); if (!hldsapi) { -- cgit v1.2.3