Games: revamped add games feature (#492)

Adding and managing your own (non-Steam) games moves out of the Steam
settings into the Games tab, and works like Steam's own non-Steam
Properties.

- A + beside "Games N" opens a compact in-app picker: the storage first,
  then that storage's root, every folder, .exe files only. Picking an exe
  adds the game with its name, art, Custom badge and Steam shortcut.
- "Add all games in this folder" adds every game folder inside at once.
  A summary opens immediately and fills in as each game is found, with a
  "?" where the exe was a close call and a red X to remove a game.
- An edit button on each Custom game opens its editor: Name, Target
  (ranked exes, Other exe…), Start in, Launch options, the four pieces of
  art with thumbnails, and Remove. Edits go through the same Steam
  shortcut, so the appid never changes and nothing duplicates.
- Art chooser per piece: images in the game folder, Steam's official art,
  SteamGridDB alternatives, your own image, or back to automatic.
- Finding the exe: up to five folders deep, every exe scored (name match,
  Unreal -Shipping builds, bin folders and size up; launchers, crash
  reporters, installers, redistributables and depth down).
- Real titles from the game's files (Steam manifest, GOG info, the exe's
  version info), keeping the folder's spacing when both spell the same
  title, underscores read as spaces.
- Art: the exact Steam appid when the game names one, strict name
  matches otherwise, Steam's hashed asset paths for newer games,
  SteamGridDB as a fallback (built-in key from the SGDB_API_KEY secret,
  optional own key in Setup, sealed with the Keystore), and a cover made
  from the exe's icon when nothing else has one.
- Removing a game is instant and keeps its files; adding it again brings
  it back. Steam's shortcut list is rewritten once, in the background.
- The Games section is gone from Steam settings; folders added before
  keep listing their games. Artwork switch and SteamGridDB key are in
  Setup.
This commit is contained in:
The412Banner authored and GitHub committed 2026-10-09 19:50:03 -04:00
1 parent d99ed8e00b
commit d250b43eb9
45 files changed
+4175 -295

No files matched your search

+42 -13
View File
@@ -41,9 +41,7 @@
<string name="hud_fg_failed">%1$s:引擎失敗</string>
<string name="hud_fg_needs_lossless">%1$s:需要 Lossless Scaling</string>
<string name="hud_fg_starting">%1$s %2$s · 正在啟動</string>
<string name="added_games_import_hint">一個包含多個子資料夾的資料夾,每個子資料夾對應一個 Windows 遊戲。你在 Steam 上擁有的遊戲會在 Steam 重啟後使用對應的 Steam 項目,其餘遊戲會成為非 Steam 捷徑。第二收藏庫設為自動時,Steam 也可以將遊戲安裝到此資料夾。</string>
<string name="second_library_import_hint">新增一個 Steam 收藏庫,並掃描其中的 Windows 遊戲。已擁有的遊戲會使用對應的 Steam 項目,其餘遊戲會成為非 Steam 捷徑。</string>
<string name="added_games_forget_hint">「忘記」會在下次工作階段中移除這些捷徑。但檔案仍保留在磁碟上。</string>
<string name="game_env_title">遊戲環境</string>
<string name="game_env_hint">Proton 遊戲的環境變數。</string>
<string name="game_env_edit">編輯</string>
@@ -299,16 +297,18 @@
<string name="mode_steam_repair_hint">下次啟動 Steam 時重新下載 Steam 用戶端。如果 Steam 一直停在載入畫面,請使用此功能。遊戲、登入狀態和設定都會保留。</string>
<string name="mode_steam_repair_queued">下次啟動 Steam 時會重新下載 Steam 用戶端。</string>
<string name="mode_steam_repair_button">修復</string>
<string name="mode_added_games">已新增的遊戲</string>
<string name="mode_added_none">未找到包含 .exe 的遊戲資料夾</string>
<string name="mode_games_folder">遊戲資料夾</string>
<string name="mode_games_folder_another">另一個遊戲資料夾</string>
<string name="mode_added_art">來自 Steam 的圖片</string>
<string name="mode_added_art">圖片</string>
<string name="mode_sgdb_key">SteamGridDB API 金鑰</string>
<string name="mode_sgdb_key_yours">你的金鑰</string>
<string name="mode_sgdb_edit">編輯…</string>
<string name="mode_added_art_hint">按資料夾名稱補全缺少的圖片。遊戲資料夾中的 cover.jpg、hero.jpg、logo.png 或 icon.png 優先使用。</string>
<string name="mode_added_launches">啟動 %1$s</string>
<string name="mode_added_launches_in">啟動 %1$s · 位於 %2$s</string>
<string name="mode_added_choose">選擇其他檔案…</string>
<string name="mode_added_exe_note">預設使用與資料夾同名的 .exe,否則使用最大的 .exe。</string>
<string name="summary_remove_game">Remove %1$s</string>
<string name="mode_added_remove_confirm">移除?</string>
<string name="games_add">新增遊戲</string>
<string name="games_add_title">新增遊戲:</string>
<string name="games_pick_exe_title">選擇 exe:</string>
<string name="games_add_unreachable">工作階段無法存取此位置</string>
<string name="mode_added_exe_check">請檢查此 exe</string>
<string name="wincomp_title">Windows 元件</string>
<string name="wincomp_pad_hint">按 LB / RB 在各區段之間切換。</string>
<string name="wincomp_card_none">無</string>
@@ -1123,8 +1123,6 @@
<string name="main_removing_named">正在移除 %1$s…</string>
<string name="main_forgetting_named">正在忘記 %1$s…</string>
<string name="main_pick_game_storage">選擇遊戲儲存資料夾</string>
<string name="main_pick_added_games">選擇存放你自己遊戲的資料夾</string>
<string name="main_pick_game_exe">選擇遊戲的 .exe</string>
<string name="main_pick_decky_zip">選擇 Decky 外掛程式 ZIP</string>
<string name="main_storage_not_usable">無法使用:%1$s</string>
@@ -2048,4 +2046,35 @@
<string name="device_info_copied">已複製。</string>
<string name="force_ssbs_title">強制 SSBS</string>
<string name="force_ssbs_hint">讓一項 Wine 會不斷關閉的 CPU 速度設定保持開啟。在 Snapdragon 8 Elite 上可能讓 Windows 遊戲更快;在較舊的晶片上變化不大。下次啟動遊戲時生效。</string>
<string name="common_close">關閉</string>
<string name="common_back">返回</string>
<string name="common_edit">編輯</string>
<string name="games_add_all">新增此資料夾中的所有遊戲</string>
<string name="games_added_none">此資料夾中沒有新遊戲</string>
<string name="edit_name">名稱</string>
<string name="edit_target">目標</string>
<string name="edit_start_in">開始位置</string>
<string name="edit_launch_options">啟動選項</string>
<string name="edit_artwork">圖片</string>
<string name="edit_other_exe">其他 exe…</string>
<string name="edit_remove">移除</string>
<string name="art_cover">封面</string>
<string name="art_background">背景</string>
<string name="art_logo">標誌</string>
<string name="art_icon">圖示</string>
<string name="art_src_folder">遊戲資料夾</string>
<string name="art_src_steam">Steam</string>
<string name="art_src_sgdb">SteamGridDB</string>
<string name="art_src_file">你的檔案</string>
<string name="art_src_exe">來自 exe</string>
<string name="art_src_auto">自動</string>
<string name="art_pick_image">選擇圖片…</string>
<string name="art_pick_title">選擇圖片:%1$s</string>
<string name="art_reset">重設為自動</string>
<plurals name="games_added_n">
<item quantity="other">已新增 %1$d 個遊戲</item>
</plurals>
<plurals name="games_already_n">
<item quantity="other">%1$d 個已在遊戲中</item>
</plurals>
</resources>