Skip to content

Commit

Permalink
Update D2Loader.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
shupershuff authored Aug 25, 2024
1 parent c237fb6 commit 8e98ddb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions D2Loader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ Function ValidationAndSetup {
PressTheAnyKey
}
if ($Script:Config.RememberWindowLocations -eq $True){
if ((Test-Path -Path ($workingdirectory + 'WindowMover.ps1')) -ne $True){
if ((Test-Path -Path ($Script:WorkingDirectory + '\WindowMover.ps1')) -ne $True){
$WindowMoverUrl = "https://raw.githubusercontent.com/shupershuff/Diablo2RLoader/main/WindowMover.ps1"
Invoke-WebRequest -Uri $WindowMoverUrl -OutFile "$WorkingDirectory\WindowMover.ps1"
}
Expand Down Expand Up @@ -1483,8 +1483,8 @@ Function Inventory {#Info screen
PressTheAnyKey
}
Function WindowMover { #Used to get window locations and place them in the same screen locations at launch. Code courtesy of Sir-Wilhelm and Microsoft.
if ($Script:WindowMoverGoodToGo -ne $True){
$Script:WindowMoverGoodToGo = $True
if ($Script:WindowClassLoaded -ne $True){
$Script:WindowClassLoaded = $True
. "$Script:WorkingDirectory\WindowMover.ps1"
}
}
Expand Down Expand Up @@ -3395,7 +3395,7 @@ Function Processing {
$SettingsJSON = ($SettingsProfilePath + "Settings.json")
$files = Get-ChildItem -Path $SettingsProfilePath -Filter "settings.*.json"
$Counter = 1
if ((Test-Path -Path ($SettingsProfilePath+ "Settings" + $id.id +".json")) -ne $true){#if somehow settings<ID>.json doesn't exist yet make one from the current settings.json file.
if ((Test-Path -Path ($SettingsProfilePath + "Settings" + $id.id +".json")) -ne $true){#if somehow settings<ID>.json doesn't exist yet make one from the current settings.json file.
try {
Copy-Item $SettingsJSON ($SettingsProfilePath + "Settings"+ $id.id + ".json") -ErrorAction Stop
}
Expand Down

0 comments on commit 8e98ddb

Please sign in to comment.