Skip to content

Commit

Permalink
Update D2Loader.ps1
Browse files Browse the repository at this point in the history
Fixed account label issue for current config being loaded
  • Loading branch information
shupershuff authored May 25, 2023
1 parent a9ad4e2 commit 7ab87c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions D2Loader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Servers:
#>

param($AccountUsername,$PW,$region) #used to capture paramters sent to the script, if anyone even wants to do that.
$CurrentVersion = "1.4.0"
$CurrentVersion = "1.4.1"

###########################################################################################################################################
# Script itself
Expand Down Expand Up @@ -726,7 +726,8 @@ Function Processing {
}
}
try {Copy-item ($SettingsProfilePath + "settings"+ $Script:AccountID + ".json") $SettingsJSON -ErrorAction Stop #overwrite settings.json with settings<ID>.json (<ID> being the account ID). This means any changes to settings in settings.json will be lost the next time an account is loaded by the script.
write-host ("Custom game settings (settings.json) being used for " + $id.accountlabel) -foregroundcolor green
$CurrentLabel = ($Script:AccountOptionsCSV | where-object {$_.id -eq $Script:AccountID}).accountlabel
write-host ("Custom game settings (settings.json) being used for " + $CurrentLabel) -foregroundcolor green
start-sleep -milliseconds 100
}
catch {
Expand Down

0 comments on commit 7ab87c5

Please sign in to comment.