Compare commits

...

2 Commits

Author SHA1 Message Date
2dd9853261 Merge branch 'main' of https://timerix.ddns.net/git/Lunya-sh/UplinkSE 2026-02-02 18:02:36 +01:00
416759047a Added App.config 2026-02-02 17:57:42 +01:00
3 changed files with 1 additions and 34 deletions

1
create-symlink.sh Normal file
View File

@@ -0,0 +1 @@
ln -s /mnt/c/Users/Lunar/Games/Steam/steamapps/common/SpaceEngineers/Bin64 ./

View File

@@ -1,34 +0,0 @@
$SE_PATH = ""
#DETECT SE INSTALLATION
function DetectGamepath{
#CHECK FOR STEAM INSTALLATION
if(Test-Path -Path HKLM:\SOFTWARE\WOW6432Node\Valve\Steam)
{
#GET STEAM PATH FROM REGISTRY
$SteamInstallPath = Get-ItemPropertyValue -Path HKLM:\SOFTWARE\WOW6432Node\Valve\Steam -Name InstallPath
#READ .vdf WITH GAME DRIVE LOCATIONS
$libraryfolders = ("{`n" + ((Get-Content -Path $SteamInstallPath'\steamapps\libraryfolders.vdf' | Out-String) `
<#COMMIT REGEXAGE TO CONVERT VALVE FORMAT TO JSON#> `
-replace '"\t\t"', '": "' <# "KEY": "VALUE" #> `
-replace '"\r\n\s*{', '": {' <# "OBJECT": { #> `
-replace '"\r\n', "`",`n" <# "VALUE", #> `
-replace '",\n(\t+)\}', "`"`n`$1}" <# "VALUE" #> `
-replace '}(\r\n\s*")','},$1') <# }, #> `
+ "}" | ConvertFrom-Json).libraryfolders
#FIND A DRIVE THAT CONTAINS APPID OF 244850 WHICH IS SPACE ENGINEERS AS WE ALL KNOW
foreach ($drive in $libraryfolders.psobject.Properties)
{
if($drive.Value.apps.PSobject.Properties.name -contains "244850")
{
$SE_PATH = $drive.Value.path + '\steamapps\common\SpaceEngineers\Bin64'
}
}
ValidateGamepath
}else{
#STEAM LIKELY NOT INSTALLED
Write-Output "Steam not detected"
}
}
Copy-Item