diff --git a/.Templates/Generic/Background.ps1 b/.Templates/Generic/Background.ps1 index 2aa0883..f46523a 100644 --- a/.Templates/Generic/Background.ps1 +++ b/.Templates/Generic/Background.ps1 @@ -21,11 +21,13 @@ $cloudName = "SteamCloudify for $gameName" $databaseURL = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/$($gameName.Replace(' ', '%20')).json" $updateLink = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/SteamCloudSync.exe" [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null +[System.Windows.Forms.Application]::EnableVisualStyles() $config = Get-Content "$env:appdata\$cloudName\CloudConfig.json" | ConvertFrom-Json $steamPath = $config.steamPath $steamid = $config.steamID $gamepath = $config.gamepath +$fail = $false cd $gamepath $exehash=Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudName.exe" while (1) { @@ -55,6 +57,15 @@ while (1) { [System.Windows.Forms.MessageBox]::Show( "SteamCloudify uninstalled successfully!", "Uninstalled!", "Ok", "Information" ) exit } + try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" + } catch { + $fail = $true + } + if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. Until one of those actions have been completed you will be unable to launch $gamename", "SteamCloudify", "Ok", "Warning") + $fail = $true + } if ($(Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudname.exe").Hash -ne $exehash.Hash) { exit } diff --git a/.Templates/Generic/SteamCloudSync.ps1 b/.Templates/Generic/SteamCloudSync.ps1 index f1e22a0..cecee0e 100644 --- a/.Templates/Generic/SteamCloudSync.ps1 +++ b/.Templates/Generic/SteamCloudSync.ps1 @@ -269,10 +269,14 @@ if ((Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds - $config.lastBackup = (Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds $config | ConvertTo-Json | Format-Json | Set-Content "$env:appdata\$cloudName\CloudConfig.json" } - -$startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" -if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6) { - [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") +$fail = $false +try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" +} catch { + $fail = $true +} +if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") exit } $cloudFiles = Get-ChildItem -Path "$steamPath\steamapps\common\Steam Controller Configs\$steamid\config\$steamAppID\" -Include ($gameSaveExtensions | ForEach-Object { "*$_.vdf" }) -File -Recurse diff --git a/.Templates/Saves in game folder/Background.ps1 b/.Templates/Saves in game folder/Background.ps1 index f7fdf2f..36e5ac5 100644 --- a/.Templates/Saves in game folder/Background.ps1 +++ b/.Templates/Saves in game folder/Background.ps1 @@ -25,12 +25,14 @@ $cloudName = "SteamCloudify for $gameName" $databaseURL = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/$($gameName.Replace(' ', '%20')).json" $updateLink = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/SteamCloudSync.exe" [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null +[System.Windows.Forms.Application]::EnableVisualStyles() $config = Get-Content "$env:appdata\$cloudName\CloudConfig.json" | ConvertFrom-Json $steamPath = $config.steamPath $steamid = $config.steamID $gamepath = $config.gamepath $gameSaveFolder | iex +$fail = $false cd $gamepath $exehash=Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudName.exe" while (1) { @@ -60,6 +62,15 @@ while (1) { [System.Windows.Forms.MessageBox]::Show( "SteamCloudify uninstalled successfully!", "Uninstalled!", "Ok", "Information" ) exit } + try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" + } catch { + $fail = $true + } + if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. Until one of those actions have been completed you will be unable to launch $gamename", "SteamCloudify", "Ok", "Warning") + $fail = $true + } if ($(Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudname.exe").Hash -ne $exehash.Hash) { exit } diff --git a/.Templates/Saves in game folder/SteamCloudSync.ps1 b/.Templates/Saves in game folder/SteamCloudSync.ps1 index b529614..514ee43 100644 --- a/.Templates/Saves in game folder/SteamCloudSync.ps1 +++ b/.Templates/Saves in game folder/SteamCloudSync.ps1 @@ -275,10 +275,14 @@ if ((Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds - $config.lastBackup = (Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds $config | ConvertTo-Json | Format-Json | Set-Content "$env:appdata\$cloudName\CloudConfig.json" } - -$startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" -if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6) { - [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") +$fail = $false +try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" +} catch { + $fail = $true +} +if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") exit } $cloudFiles = Get-ChildItem -Path "$steamPath\steamapps\common\Steam Controller Configs\$steamid\config\$steamAppID\" -Include ($gameSaveExtensions | ForEach-Object { "*$_.vdf" }) -File -Recurse diff --git a/.Templates/Unity/Background.ps1 b/.Templates/Unity/Background.ps1 index 946fe01..dc38b81 100644 --- a/.Templates/Unity/Background.ps1 +++ b/.Templates/Unity/Background.ps1 @@ -20,11 +20,13 @@ $cloudName = "SteamCloudify for $gameName" $databaseURL = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/$($gameName.Replace(' ', '%20')).json" $updateLink = "https://aldin101.github.io/SteamCloudify/$($gameName.Replace(' ', '%20'))/SteamCloudSync.exe" [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null +[System.Windows.Forms.Application]::EnableVisualStyles() $config = Get-Content "$env:appdata\$cloudName\CloudConfig.json" | ConvertFrom-Json $steamPath = $config.steamPath $steamid = $config.steamID $gamepath = $config.gamepath +$fail = $false cd $gamepath $exehash=Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudName.exe" while (1) { @@ -54,6 +56,15 @@ while (1) { [System.Windows.Forms.MessageBox]::Show( "SteamCloudify uninstalled successfully!", "Uninstalled!", "Ok", "Information" ) exit } + try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" + } catch { + $fail = $true + } + if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. Until one of those actions have been completed you will be unable to launch $gamename", "SteamCloudify", "Ok", "Warning") + $fail = $true + } if ($(Get-FileHash -Algorithm MD5 "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\$cloudname.exe").Hash -ne $exehash.Hash) { exit } diff --git a/.Templates/Unity/SteamCloudSync.ps1 b/.Templates/Unity/SteamCloudSync.ps1 index 42ce7eb..788f3cb 100644 --- a/.Templates/Unity/SteamCloudSync.ps1 +++ b/.Templates/Unity/SteamCloudSync.ps1 @@ -270,10 +270,14 @@ if ((Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds - $config.lastBackup = (Get-Date).ToUniversalTime().Subtract((Get-Date "1/1/1970")).TotalSeconds $config | ConvertTo-Json | Format-Json | Set-Content "$env:appdata\$cloudName\CloudConfig.json" } - -$startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" -if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6) { - [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") +$fail = $false +try { + $startup = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder" -Name "SteamCloudify for $gameName.exe" +} catch { + $fail = $true +} +if ($($startup)."steamcloudify for $gamename.exe"[0] -ne 2 -and $($startup)."steamcloudify for $gamename.exe"[0] -ne 6 -and $fail -eq $false) { + [System.Windows.Forms.MessageBox]::Show("SteamCloudify is not allowed to run at startup. This means that if $gamename updates or the game files are validated SteamCloudify will be unable to re-patch the game.`n`nThis will cause your save data to stop syncing and might even result in data loss.`n`n`Please re-enable SteamCloudify in Task Manger's startup tab or uninstall SteamCloudify. After either of those actions are completed you will be able to launch the game again.", "SteamCloudify", "Ok", "Warning") exit } $choice = "Yes" diff --git a/Get To The Orange Door/Resources/Background.rc b/Get To The Orange Door/Resources/Background.rc index 5f87fb6..0f7822a 100644 --- a/Get To The Orange Door/Resources/Background.rc +++ b/Get To The Orange Door/Resources/Background.rc @@ -1,7 +1,7 @@ 1 VERSIONINFO -FILEVERSION 1,0,0,0 -PRODUCTVERSION 1,0,0,0 +FILEVERSION 1,0,1,0 +PRODUCTVERSION 1,0,1,0 FILEOS 0x40004 FILETYPE 0x1 { @@ -11,12 +11,12 @@ BLOCK "StringFileInfo" { VALUE "CompanyName", "Aldin101" VALUE "FileDescription", "SteamCloudify Background Task " - VALUE "FileVersion", "1.0.0" + VALUE "FileVersion", "1.0.1" VALUE "InternalName", "SteamCloudBackground " VALUE "LegalCopyright", "Aldin101" VALUE "OriginalFilename", "SteamCloudBackground.exe" VALUE "ProductName", "SteamCloudify" - VALUE "ProductVersion", "1.0.0" + VALUE "ProductVersion", "1.0.1" } } diff --git a/Get To The Orange Door/Resources/CloudSync.rc b/Get To The Orange Door/Resources/CloudSync.rc index 9574115..2cab651 100644 --- a/Get To The Orange Door/Resources/CloudSync.rc +++ b/Get To The Orange Door/Resources/CloudSync.rc @@ -1,7 +1,7 @@ 1 VERSIONINFO -FILEVERSION 1,0,0,0 -PRODUCTVERSION 1,0,0,0 +FILEVERSION 1,0,1,0 +PRODUCTVERSION 1,0,1,0 FILEOS 0x40004 FILETYPE 0x1 { @@ -11,12 +11,12 @@ BLOCK "StringFileInfo" { VALUE "CompanyName", "Aldin101" VALUE "FileDescription", "SteamCloudify launcher " - VALUE "FileVersion", "1.0.0" + VALUE "FileVersion", "1.0.1" VALUE "InternalName", "SteamCloudSync " VALUE "LegalCopyright", "Aldin101" VALUE "OriginalFilename", "SteamCloudSync.exe" VALUE "ProductName", "SteamCloudify" - VALUE "ProductVersion", "1.0.0" + VALUE "ProductVersion", "1.0.1" } } diff --git a/Get To The Orange Door/Resources/Offline.rc b/Get To The Orange Door/Resources/Offline.rc index e2e0101..2220ec5 100644 --- a/Get To The Orange Door/Resources/Offline.rc +++ b/Get To The Orange Door/Resources/Offline.rc @@ -1,7 +1,7 @@ 1 VERSIONINFO -FILEVERSION 1,0,0,0 -PRODUCTVERSION 1,0,0,0 +FILEVERSION 1,0,1,0 +PRODUCTVERSION 1,0,1,0 FILEOS 0x40004 FILETYPE 0x1 { @@ -11,12 +11,12 @@ BLOCK "StringFileInfo" { VALUE "CompanyName", "Aldin101" VALUE "FileDescription", "SteamCloudify Offline Installer " - VALUE "FileVersion", "1.0.0" + VALUE "FileVersion", "1.0.1" VALUE "InternalName", "SteamCloudOffline " VALUE "LegalCopyright", "Aldin101" VALUE "OriginalFilename", "SteamCloudify Offline Installer.exe" VALUE "ProductName", "SteamCloudify" - VALUE "ProductVersion", "1.0.0" + VALUE "ProductVersion", "1.0.1" } }