Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $SaveGameFolder = [Environment]::GetFolderPath("MyDocuments") + "\My Games\FarmingSimulator2022"
- If ($($args[0]) -gt 0) {
- $SaveGameNumber = $($args[0])
- $xmlFile = $SaveGameFolder + "\savegame" + $SaveGameNumber + "\careerSavegame.xml"
- [xml]$doc = Get-Content $xmlFile
- $doc.careerSavegame.mod | Sort-Object -Property modName | % { $_.modName + " | " + $_.title }
- } else {
- echo "Found these save games in $SaveGameFolder :"
- Get-ChildItem $SaveGameFolder -Filter savegame? |
- Foreach-Object {
- echo $_.BaseName
- }
- echo "Call script with a savegame number to view mods"
- echo "Example: ./fs17mods.ps1 1"
- }
Add Comment
Please, Sign In to add comment