mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 15:19:56 +09:00
Prefer window title for game name rather than class, fix game names with slash not saving to correct dir
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user