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

            EventManager <ExtensionLoadEvent> .InvokeAll(loadEvent);
        }