update elden ring lp backup script
This commit is contained in:
@@ -2,8 +2,11 @@
|
|||||||
# by creating a commit and pushing it.
|
# by creating a commit and pushing it.
|
||||||
# After that, OBS, ER Death Counter as well as Elden Ring is started if not already running.
|
# After that, OBS, ER Death Counter as well as Elden Ring is started if not already running.
|
||||||
|
|
||||||
$ER_SAVE_ID = "76561198077851234"
|
|
||||||
$OBS_PATH = "C:\Program Files\obs-studio\bin\64bit\obs64.exe"
|
$OBS_PATH = "C:\Program Files\obs-studio\bin\64bit\obs64.exe"
|
||||||
|
$ERDC_PATH = "C:\Program Files (x86)\ER Death Counter\ER_DeathCounter.exe"
|
||||||
|
$ER_SAVE_ID = "76561198077851234"
|
||||||
|
$ER_LAUCH_PATH = "steam://rungameid/1245620"
|
||||||
|
$ER_PROCESS_NAME = "eldenring"
|
||||||
|
|
||||||
|
|
||||||
function Open-If-Not-Already {
|
function Open-If-Not-Already {
|
||||||
@@ -33,6 +36,6 @@ $timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss"
|
|||||||
git -C "${HOME}\AppData\Roaming\EldenRing\${ER_SAVE_ID}" commit --all --message "backup-${timestamp}"
|
git -C "${HOME}\AppData\Roaming\EldenRing\${ER_SAVE_ID}" commit --all --message "backup-${timestamp}"
|
||||||
git -C "${HOME}\AppData\Roaming\EldenRing\${ER_SAVE_ID}" push origin main
|
git -C "${HOME}\AppData\Roaming\EldenRing\${ER_SAVE_ID}" push origin main
|
||||||
|
|
||||||
Open-If-Not-Already -Path "C:\Program Files\obs-studio\bin\64bit\obs64.exe" -WorkingDirectory (Get-Item "$OBS_PATH").DirectoryName
|
Open-If-Not-Already -Path "$OBS_PATH" -WorkingDirectory (Get-Item "$OBS_PATH").DirectoryName
|
||||||
Open-If-Not-Already -Path "C:\Program Files (x86)\ER Death Counter\ER_DeathCounter.exe"
|
Open-If-Not-Already -Path "$ERDC_PATH"
|
||||||
Open-If-Not-Already -Path "steam://rungameid/1245620" -ProcessName "eldenring"
|
Open-If-Not-Already -Path "$ER_LAUCH_PATH" -ProcessName "$ER_PROCESS_NAME"
|
||||||
Reference in New Issue
Block a user