From 7d4762a4bccf51b3f771c8c2b841241157d24eb0 Mon Sep 17 00:00:00 2001 From: MatejGolian <11446675+MatejGolian@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:16:44 +0100 Subject: [PATCH] Use static __New method for inlitialization --- Includes/Overlays/Engine.ahk | 4 +--- Includes/Overlays/GenericPlugin.ahk | 4 +--- Includes/Overlays/KontaktKompleteKontrol.ahk | 4 +--- Includes/Overlays/Sforzando.ahk | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Includes/Overlays/Engine.ahk b/Includes/Overlays/Engine.ahk index 8274d40..d066f13 100644 --- a/Includes/Overlays/Engine.ahk +++ b/Includes/Overlays/Engine.ahk @@ -2,7 +2,7 @@ Class Engine { - Static Init() { + Static __New() { Plugin.Register("Engine", "^Plugin[0-9A-F]{17}$",, True) Standalone.Register("Engine", "Best Service Engine ahk_class Engine ahk_exe Engine 2.exe") @@ -57,5 +57,3 @@ Class Engine { } } - -Engine.Init() diff --git a/Includes/Overlays/GenericPlugin.ahk b/Includes/Overlays/GenericPlugin.ahk index 2dcb95e..b6a16a2 100644 --- a/Includes/Overlays/GenericPlugin.ahk +++ b/Includes/Overlays/GenericPlugin.ahk @@ -2,7 +2,7 @@ Class GenericPlugin { - Static Init() { + Static __New() { Plugin.Register("Generic Plug-in", ".*",, True, False, True) Plugin.RegisterOverlay("Generic Plug-in", AccessibilityOverlay()) Plugin.SetTimer("Generic Plug-in", ObjBindMethod(GenericPlugin, "DetectPlugin"), 100) @@ -112,5 +112,3 @@ Class GenericPlugin { } } - -GenericPlugin.Init() diff --git a/Includes/Overlays/KontaktKompleteKontrol.ahk b/Includes/Overlays/KontaktKompleteKontrol.ahk index 796fcfb..0bd0bbc 100644 --- a/Includes/Overlays/KontaktKompleteKontrol.ahk +++ b/Includes/Overlays/KontaktKompleteKontrol.ahk @@ -2,7 +2,7 @@ Class KontaktKompleteKontrol { - Static Init() { + Static __New() { Plugin.Register("Kontakt/Komplete Kontrol", "^Qt6[0-9][0-9]QWindowIcon\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}1$",, True) Plugin.SetTimer("Kontakt/Komplete Kontrol", ObjBindMethod(KontaktKompleteKontrol, "DetectPlugin"), 500) @@ -661,5 +661,3 @@ Class KontaktKompleteKontrol { } } - -KontaktKompleteKontrol.Init() diff --git a/Includes/Overlays/Sforzando.ahk b/Includes/Overlays/Sforzando.ahk index c8e219b..3518f79 100644 --- a/Includes/Overlays/Sforzando.ahk +++ b/Includes/Overlays/Sforzando.ahk @@ -2,7 +2,7 @@ Class Sforzando { - Static Init() { + Static __New() { Plugin.Register("sforzando", "^Plugin[0-9A-F]{17}$", ObjBindMethod(Sforzando, "InitPlugin"), True) Standalone.Register("sforzando", "Plogue Art et Technologie, Inc sforzando ahk_class PLGWindowClass ahk_exe sforzando( x64)?.exe", ObjBindMethod(Sforzando, "InitStandalone")) } @@ -79,5 +79,3 @@ Class Sforzando { } } - -Sforzando.Init()