aboutsummaryrefslogtreecommitdiff
path: root/scripts/save-video-in-game-folder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/save-video-in-game-folder.sh')
-rwxr-xr-xscripts/save-video-in-game-folder.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/save-video-in-game-folder.sh b/scripts/save-video-in-game-folder.sh
index 694c9d8..3d07d6a 100755
--- a/scripts/save-video-in-game-folder.sh
+++ b/scripts/save-video-in-game-folder.sh
@@ -7,6 +7,7 @@ file_name="$(basename "$filepath")"
file_dir="$(dirname "$filepath")"
game_name=$(gsr-window-name focused || echo "Game")
+game_name="$(echo "$game_name" | tr '/\\' '_')"
target_dir="$file_dir/$game_name"
new_filepath="$target_dir/$file_name"