Upgrade Lua service intercepts (#775)

Co-authored-by: Théo B. <16072534+LiquidFenrir@users.noreply.github.com>
This commit is contained in:
wheremyfoodat 2025-07-07 11:52:57 +03:00 committed by GitHub
parent ce4750e375
commit c0948f4235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 96 additions and 35 deletions

View file

@ -48,7 +48,8 @@ class LuaManager {
}
}
bool signalInterceptedService(const std::string& service, u32 function, u32 messagePointer);
bool signalInterceptedService(const std::string& service, u32 function, u32 messagePointer, int callbackRef);
void removeInterceptedService(const std::string& service, u32 function, int callbackRef);
};
#else // Lua not enabled, Lua manager does nothing
@ -62,6 +63,7 @@ class LuaManager {
void loadString(const std::string& code) {}
void reset() {}
void signalEvent(LuaEvent e) {}
bool signalInterceptedService(const std::string& service, u32 function, u32 messagePointer) { return false; }
bool signalInterceptedService(const std::string& service, u32 function, u32 messagePointer, int callbackRef) { return false; }
void removeInterceptedService(const std::string& service, u32 function, int callbackRef) {}
};
#endif