Skip to content

Commit

Permalink
Use the display name for the Platform on the main window
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Mar 9, 2021
1 parent 24d6321 commit 12c22a7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Lib/Launchpad/GamePlatform/BethesdaPlatform.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class BethesdaPlatform extends RegistryLookupGamePlatformBase {
key := "Bethesda"
displayName := "Bethesda"
displayName := "Bethesda.net"
launcherType := "Bethesda"
gameType := "Default"
installDirRegView := 32
Expand Down
2 changes: 1 addition & 1 deletion Lib/Launchpad/GamePlatform/BlizzardPlatform.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class BlizzardPlatform extends RegistryLookupGamePlatformBase {
key := "Blizzard"
displayName := "Blizzard"
displayName := "Battle.net"
launcherType := "Blizzard"
gameType := "Blizzard"
installDirRegView := 32
Expand Down
2 changes: 1 addition & 1 deletion Lib/Launchpad/GamePlatform/EpicPlatform.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class EpicPlatform extends RegistryLookupGamePlatformBase {
key := "Epic"
displayName := "Epic"
displayName := "Epic Store"
launcherType := "Epic"
gameType := "Epic"
installDirRegView := 32
Expand Down
2 changes: 1 addition & 1 deletion Lib/Launchpad/GamePlatform/OriginPlatform.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class OriginPlatform extends RegistryLookupGamePlatformBase {
key := "Origin"
displayName := "Origin"
displayName := "EA Origin"
launcherType := "Origin"
gameType := "Default"
installDirRegView := 32
Expand Down
14 changes: 13 additions & 1 deletion Lib/Launchpad/Window/ManageWindow.ahk
Original file line number Diff line number Diff line change
@@ -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)
}
Expand Down Expand Up @@ -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++
}
Expand Down

0 comments on commit 12c22a7

Please sign in to comment.