From 12c22a72e11c14f8195e746f440de6f465f72b04 Mon Sep 17 00:00:00 2001 From: Ben McClure Date: Mon, 8 Mar 2021 20:44:41 -0500 Subject: [PATCH] Use the display name for the Platform on the main window --- Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk | 2 +- Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk | 2 +- Lib/Launchpad/GamePlatform/EpicPlatform.ahk | 2 +- Lib/Launchpad/GamePlatform/OriginPlatform.ahk | 2 +- Lib/Launchpad/Window/ManageWindow.ahk | 14 +++++++++++++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk b/Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk index 21e04c5a..9ac6b6c1 100644 --- a/Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk +++ b/Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk @@ -1,6 +1,6 @@ class BethesdaPlatform extends RegistryLookupGamePlatformBase { key := "Bethesda" - displayName := "Bethesda" + displayName := "Bethesda.net" launcherType := "Bethesda" gameType := "Default" installDirRegView := 32 diff --git a/Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk b/Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk index 532848ed..5cf0696f 100644 --- a/Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk +++ b/Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk @@ -1,6 +1,6 @@ class BlizzardPlatform extends RegistryLookupGamePlatformBase { key := "Blizzard" - displayName := "Blizzard" + displayName := "Battle.net" launcherType := "Blizzard" gameType := "Blizzard" installDirRegView := 32 diff --git a/Lib/Launchpad/GamePlatform/EpicPlatform.ahk b/Lib/Launchpad/GamePlatform/EpicPlatform.ahk index 628a3c37..be3c42a7 100644 --- a/Lib/Launchpad/GamePlatform/EpicPlatform.ahk +++ b/Lib/Launchpad/GamePlatform/EpicPlatform.ahk @@ -1,6 +1,6 @@ class EpicPlatform extends RegistryLookupGamePlatformBase { key := "Epic" - displayName := "Epic" + displayName := "Epic Store" launcherType := "Epic" gameType := "Epic" installDirRegView := 32 diff --git a/Lib/Launchpad/GamePlatform/OriginPlatform.ahk b/Lib/Launchpad/GamePlatform/OriginPlatform.ahk index 197153ac..a3168911 100644 --- a/Lib/Launchpad/GamePlatform/OriginPlatform.ahk +++ b/Lib/Launchpad/GamePlatform/OriginPlatform.ahk @@ -1,6 +1,6 @@ class OriginPlatform extends RegistryLookupGamePlatformBase { key := "Origin" - displayName := "Origin" + displayName := "EA Origin" launcherType := "Origin" gameType := "Default" installDirRegView := 32 diff --git a/Lib/Launchpad/Window/ManageWindow.ahk b/Lib/Launchpad/Window/ManageWindow.ahk index 0e9b10ef..77ad91e0 100644 --- a/Lib/Launchpad/Window/ManageWindow.ahk +++ b/Lib/Launchpad/Window/ManageWindow.ahk @@ -1,9 +1,11 @@ class ManageWindow extends ManageWindowBase { listViewColumns := Array("GAME", "PLATFORM", "STATUS", "API STATUS") launcherManager := "" + platformManager := "" __New(app, windowKey := "", owner := "", parent := "") { this.launcherManager := app.Launchers + this.platformManager := app.Platforms this.lvCount := this.launcherManager.CountEntities() super.__New(app, "Launchpad", windowKey, owner, parent) } @@ -46,7 +48,17 @@ apiStatus := launcher.DataSourceItemKey ? "Linked" : "Not linked" - this.guiObj["ListView"].Add("Icon" . iconNum . focusOption, launcher.Key, launcher.Platform, launcherStatus, apiStatus) + platformName := launcher.Platform + + if (platformName) { + platformObj := this.platformManager.GetItem(platformName) + + if (platformObj) { + platformName := platformObj.platform.displayName + } + } + + this.guiObj["ListView"].Add("Icon" . iconNum . focusOption, launcher.Key, platformName, launcherStatus, apiStatus) iconNum++ index++ }