Created
July 26, 2020 09:48
-
-
Save oorzkws/d0f524cb25c12b39be8f93150480e11c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$BASE = "$env:APPDATA\Factorio\" | |
$MODS = "mods.dev" | |
$DIRS = @( | |
".\omnilib", | |
".\omnimatter", | |
".\omnimatter_compression", | |
".\omnimatter_crystal", | |
".\omnimatter_permutation", | |
".\omnimatter_water", | |
".\omnimatter_wood" | |
) | |
$DIRS | %{ | |
Copy-Item -Path $_ -Destination $BASE\$MODS -Recurse -Force | |
} | |
$PROG = (Get-Content $BASE\factorio-current.log -TotalCount 3)[2] | |
$PROG = ($PROG -split "`"")[1] | |
Start-Process -FilePath $PROG -ArgumentList "--mod-directory `"$BASE$MODS`" --load-game `"$BASE`saves\Test-2.zip" -WorkingDirectory (Split-Path $PROG -Parent) -Wait -NoNewWindow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment