diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-21 22:19:36 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-21 22:36:32 +0100 |
commit | 693ec1fd3a18eb0293394ff3306b9a84bf9206d7 (patch) | |
tree | b32d4964816620e61b3e4e6337fd3e3d5d40411d /src | |
parent | 374c423719065b11a986d200d705df2b88977f9b (diff) |
Disable fastfwd outside L4D so SPT doesn't break
Diffstat (limited to 'src')
-rw-r--r-- | src/fastfwd.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |