Skip to content

Commit

Permalink
Use static __New method for inlitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejGolian committed Mar 17, 2024
1 parent 019baae commit 7d4762a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions Includes/Overlays/Engine.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -57,5 +57,3 @@ Class Engine {
}

}

Engine.Init()
4 changes: 1 addition & 3 deletions Includes/Overlays/GenericPlugin.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -112,5 +112,3 @@ Class GenericPlugin {
}

}

GenericPlugin.Init()
4 changes: 1 addition & 3 deletions Includes/Overlays/KontaktKompleteKontrol.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -661,5 +661,3 @@ Class KontaktKompleteKontrol {
}

}

KontaktKompleteKontrol.Init()
4 changes: 1 addition & 3 deletions Includes/Overlays/Sforzando.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down Expand Up @@ -79,5 +79,3 @@ Class Sforzando {
}

}

Sforzando.Init()

0 comments on commit 7d4762a

Please sign in to comment.