mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(ui): add SystemUnregisterFunctions
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -42,3 +42,9 @@ void SystemRegisterFunctions() {
|
||||
FrameScript_RegisterFunction(func.name, func.method);
|
||||
}
|
||||
}
|
||||
|
||||
void SystemUnregisterFunctions() {
|
||||
for (auto& func : s_SystemFunctions) {
|
||||
FrameScript_UnregisterFunction(func.name);
|
||||
}
|
||||
}
|
||||
@@ -3,4 +3,6 @@
|
||||
|
||||
void SystemRegisterFunctions();
|
||||
|
||||
void SystemUnregisterFunctions();
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user