internal static void OSQuitPrefix() { if (Settings.IsInExtensionMode) { var unloadEvent = new ExtensionLoadEvent(ExtensionLoader.ActiveExtensionInfo, true); EventManager <ExtensionLoadEvent> .InvokeAll(unloadEvent); } }
internal static void OnBackButtonPressPostfix(int myID, bool __result) { if (myID == 7900040 && __result) { var unloadEvent = new ExtensionLoadEvent(ExtensionLoader.ActiveExtensionInfo, true); EventManager <ExtensionLoadEvent> .InvokeAll(unloadEvent); } }
internal static void ExtensionLoadPostfix(ExtensionInfo info) { var loadEvent = new ExtensionLoadEvent(info, false); EventManager <ExtensionLoadEvent> .InvokeAll(loadEvent); }