mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-09 00:28:42 +12:00
Upgrade Lua service intercepts (#775)
Co-authored-by: Théo B. <16072534+LiquidFenrir@users.noreply.github.com>
This commit is contained in:
parent
ce4750e375
commit
c0948f4235
6 changed files with 96 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue