mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): add SystemUnregisterFunctions
This commit is contained in:
parent
c0ec4aed44
commit
95a8f4287f
@ -42,3 +42,9 @@ void SystemRegisterFunctions() {
|
|||||||
FrameScript_RegisterFunction(func.name, func.method);
|
FrameScript_RegisterFunction(func.name, func.method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SystemUnregisterFunctions() {
|
||||||
|
for (auto& func : s_SystemFunctions) {
|
||||||
|
FrameScript_UnregisterFunction(func.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -3,4 +3,6 @@
|
|||||||
|
|
||||||
void SystemRegisterFunctions();
|
void SystemRegisterFunctions();
|
||||||
|
|
||||||
|
void SystemUnregisterFunctions();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user