Compare commits

...

2 commits

Author SHA1 Message Date
Cere
ae33901201 replaced cp with rsync 2024-07-08 04:50:12 -04:00
Cere
913c0a4940 fixed launcher tweak 2024-07-08 04:50:03 -04:00
2 changed files with 4 additions and 4 deletions

View file

@ -34,13 +34,13 @@ prelaunch () {
# Assume Save Data needs to be restored!
if [ -f "$STCS_SAVEPATH" ]; then
#echo "Savedata $STCS_SAVEPATH is a file!"
cp "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)" "$STCS_SAVEPATH"
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)" "$STCS_SAVEPATH"
fi
if [ -d "$STCS_SAVEPATH" ]; then
#echo "Savedata $STCS_SAVEPATH is a folder!"
rsync -az "$STCS_SYNCED_SAVADATA_PATH/$(basename $STCS_SAVEPATH)/" "$STCS_SAVEPATH/"
fi
cp "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
rsync -az "$STCS_SYNCED_TIMESTAMP_PATH" "$STCS_CACHED_TIMESTAMP_PATH"
fi
echo "[CereSaves] prelaunch complete"
}
@ -54,7 +54,7 @@ postlaunch () {
# Back up Save Data
if [ -f "$STCS_SAVEPATH" ]; then
#echo "Savedata $STCS_SAVEPATH is a file!"
cp "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
rsync -az "$STCS_SAVEPATH" "$STCS_SYNCED_SAVADATA_PATH/"
fi
if [ -d "$STCS_SAVEPATH" ]; then
#echo "Savedata $STCS_SAVEPATH is a folder!"

View file

@ -3,5 +3,5 @@
"name": "CereSaves",
"description": "A Janky Cloud Save Manager",
"url": "https://gitdab.com/cere/CereSaves",
"command": "/home/cere/Code/CereSaves/stcs-wrapper.sh ${command}"
"command": "/home/user/.local/bin/stcs-wrapper.sh ${command}"
}