VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
87 stars 3 forks source link

Replace title excludes with a better way to exclude the launcher window itself #220

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 3 years ago

Replace title excludes with a better way to exclude the launcher window itself

https://github.com/VolantisDev/Launchpad/blob/1e40f2202876698443d8c119b5e1d7b254eeff8b/Lib/LaunchpadLauncher/Game/GameBase.ahk#L114


        winId := 0

        if (this.config["GameProcessType"] == "Title") {
            ; TODO: Replace title excludes with a better way to exclude the launcher window itself
            winId := WinExist(this.config["GameProcessId"],, " - Launchpad")
        } else if (this.config["GameProcessType"] == "Class") {
            winId := WinExist("ahk_class " . this.config["GameProcessId"],, " - Launchpad")

f2885ce2fda4dc73cae01f1900de890972a94419