From 7d9c96c389473aa04ccca03d8da0556a1bdbb451 Mon Sep 17 00:00:00 2001 From: Metadorius Date: Sun, 22 Mar 2026 02:59:58 +0200 Subject: [PATCH] add feature flags --- Syringe.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Syringe.h b/Syringe.h index e081b1c2..a65800d3 100644 --- a/Syringe.h +++ b/Syringe.h @@ -292,3 +292,15 @@ EXPORT_FUNC(funcname) // CAUTION: funcname must be the same as in DEFINE_HOOK. #define DEFINE_HOOK_AGAIN(hook, funcname, size) \ declhook(hook, funcname, size) + +// Feature flags set by Syringe at injection time. +// DLLs can check these at runtime to verify that the running Syringe +// version supports the features they rely on. Each flag defaults to false +// and is set to true by Syringe after the DLL is loaded into the target +// process. If a DLL is loaded by an older Syringe that does not know about +// feature flags, the values will remain false. +namespace SyringeFeatures +{ + extern "C" __declspec(dllexport) inline bool ESPModification = false; + extern "C" __declspec(dllexport) inline bool ZFPreservation = false; +}