feat(ui): add SystemUnregisterFunctions

This commit is contained in:
fallenoak 2026-01-26 16:37:50 -06:00
parent c0ec4aed44
commit 95a8f4287f
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -3,4 +3,6 @@
void SystemRegisterFunctions(); void SystemRegisterFunctions();
void SystemUnregisterFunctions();
#endif #endif