Skip to content

Commit

Permalink
Fix launch time UTC vs local
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Apr 18, 2021
1 parent ed610fb commit 22f0329
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/LaunchpadLauncher/Game/GameBase.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class GameBase {
}
}
} else {
if (this.config["GameHasLoadingWindow"] && !this.isLoadingWindowFinished) {
if (!this.isLoadingWindowFinished) {
loadingWinId := this.LoadingWindowIsOpen()

if (loadingWinId) {
Expand Down Expand Up @@ -165,16 +165,19 @@ class GameBase {
}

if (!steamOpenCondition.Evaluate()) {
MsgBox("Steam is not open...")
SetTimer(this.overlayCallback, 0)
return
}

if (overlayAttachedCondtion.Evaluate()) {
MsgBox("Overlay attached...")
SetTimer(this.overlayCallback, 0)
return
}

if (DateDiff(A_Now, this.launchTime, "S") >= this.launcherConfig["OverlayWait"]) {
MsgBox("Launching overlay!")
this.StartOverlay()
return
}
Expand Down Expand Up @@ -269,7 +272,7 @@ class GameBase {
RunGameAction(progress := "") {
runMethod := this.config["GameRunMethod"]

this.launchTime := A_NowUTC
this.launchTime := A_Now

this.pid := 0

Expand Down

0 comments on commit 22f0329

Please sign in to comment.