Marchwind64（超级机器人大战 64 原生重编译版）· Steam Deck 版（实验性）
Marchwind64, Steam Deck edition (experimental). English below.

本程序只供你自己使用，不含 ROM。游戏文字与头像在第一次启动时从你自己的 ROM 导入。请勿转发。

安装（在桌面模式里做一次）
  1. 把这个文件夹解压到任意位置，例如 ~/Games/SRW64。
  2. 把 ROM（日版 Rev 0，.z64 字节序）复制成
       ~/.local/share/srw64-recomp/rom.z64
     也可以放在 marchwind64.sh 旁边，命名为 rom.z64。
  3. 打开 Steam，再双击本文件夹里的 add-to-steam.sh（询问时选「执行」）。它把游戏加进
     Steam 库并配上封面和图标，名字随游戏语言（还没启动过时为简体中文）。
     也可以在 Steam 里选「添加非 Steam 游戏」手动添加 marchwind64.sh，只是没有封面。
  之后回到游戏模式，就能像普通游戏一样从库里启动。不需要改 Steam 输入设置。

按键（Steam Deck 默认手柄模板；游戏自动认出 Deck，提示显示 Deck 的按键）
  A            确认 / 下一页
  B            取消 / 返回
  菜单键 ☰     START
  十字键 / 左摇杆  移动光标
  L1 / R1      L / R（地图上切换我方机体；对白中 L1 打开回看；选移动目的地时按住 R1 跳到最远格）
  X            按住：地图光标加速
  Y            战前确认画面：战斗动画 开 / 关
  L2 / R2      地图上：光标移到上一个 / 下一个敌方机体（L1 / R1 是我方机体）
  L2           对白：自动阅读 开 / 关
  R2           对白：按住快进；R2 + 菜单键 跳过当前段落；战斗中结束演出
  右摇杆       C 键（对白中上下调字号）
  按下左摇杆   切换语言
  按下右摇杆   切换原版 / HD 画面
  视图键 ⧉     打开 / 关闭设置：语言、原版／HD 画面、规则修正、各界面切换、改键
               设置里用十字键移动、A 选择、B 关闭
               标题画面右下角也有设置入口，可直接点触
  键盘（其他 Linux 电脑）照 PCSX2 的默认布局，每个键对应手柄同一位置的键：
    K 确认  L 取消  J 光标加速  I 战斗动画  Enter START  Backspace 设置
    Q / E  L / R   1 / 3  L2 / R2   2 / 4  切换语言 / 原版·HD
    方向键 十字键   WASD 左摇杆   T F G H 右摇杆（C 键）
  设置窗口的「操作」页可以改键盘和手柄的按键。
  字太大或太小：设置窗口「界面」页的「界面大小」（Steam Deck 默认「特大」）。
  界面底部的操作提示会随你最后用的设备显示手柄按键或键盘按键。

存档与设置
  ~/.local/share/srw64-recomp（sessions/ 里保留每次游玩的存档）。
  从 Steam 菜单选「退出游戏」会正常保存退出。

HD 画面
  HD 素材包与 macOS 版是同一个下载。把它解压成
       ~/.local/share/srw64-recomp/hd
  或者放在本文件夹里（和 marchwind64.sh 同级的 hd/），
  里面应当直接有 hd.json 和 art/；两处都有时用前一个。有 HD 包时游戏以 HD 开局，
  设置窗口（视图键）里可以切回原版。包里自带 hd/ 文件夹的自用版无需下载。

其他
  同一程序也能在其他 x86-64 Linux 上运行（glibc 2.35 以上，需要 Vulkan 驱动）。

------------------------------------------------------------------------------
English

For your own use only; no ROM is included. Text and portraits are imported from
your ROM on first launch. Do not redistribute.

Install (once, in Desktop Mode): extract this folder, copy your ROM (Japan, Rev 0,
.z64) to ~/.local/share/srw64-recomp/rom.z64 (or next to marchwind64.sh as rom.z64), then,
with Steam open, double-click add-to-steam.sh (choose Execute): it adds the game to
the library with its artwork, named in the game's language (adding marchwind64.sh by hand
as a non-Steam game also works, without artwork). It then starts from Game Mode; no
Steam Input changes are needed.

Controls (the game recognises the Deck and shows its buttons): A confirm, B back,
Menu = START, D-pad/left stick move, L1/R1 = L/R (on the map: your units; in
dialogue L1 opens the history; hold R1 when choosing where to move to jump to the
farthest square), hold X to speed the map cursor, Y turns the battle animation on
or off on the pre-battle screen, L2/R2 on the map step through the enemy units,
right stick = C buttons (text size in dialogue), press the left stick for the next
language and the right stick for Original/HD, View opens the settings (language,
Original/HD, rules, controls); so does the button at the bottom right of the title
screen. Dialogue: L2 turns automatic reading on or off, hold R2 to fast-forward,
R2 + Menu skips the segment; R2 also ends a battle animation. On a keyboard (other
Linux PCs) the keys follow PCSX2's defaults, each key standing for the controller
button in its place: K confirm, L back, J cursor speed, I battle animation, Enter
START, Backspace settings, Q/E L/R, 1/3 L2/R2, 2/4 language and Original/HD, the
arrows the D-pad, WASD the left stick, T F G H the right stick. The settings
window's Controls page rebinds keys and buttons, and its Interface page sets the
interface size (Largest by default on a Steam Deck). Hints follow the last device
you used.

Saves: ~/.local/share/srw64-recomp. Quitting from the Steam menu saves normally.
HD: unpack the HD pack (the same download as for macOS) as
~/.local/share/srw64-recomp/hd or as hd/ in this folder, next to marchwind64.sh
(hd.json and art/ directly inside; the first wins when both exist); the game then
starts in HD, and the settings window switches back to Original.
Runs on other x86-64 Linux too (glibc 2.35+, a Vulkan driver).


便携设置与存档 / Portable settings and saves
  退出游戏，在 srw64 旁新建 user-data 文件夹即可启用便携模式。
  本地数据优先，缺少的数据从 XDG_DATA_HOME/srw64-recomp 或
  ~/.local/share/srw64-recomp 补入。正常退出后同步回系统用户目录：
  不同存档覆盖前会询问，确认后旧数据留在该目录的 sync-backups/<id>。
  取消则保留两份，不同步。ROM 放在游戏目录内，和 user-data 一起移动。
  便携全新数据默认英语，已有语言设置照常恢复。没有 user-data 的旧安装行为不变。
  文件选择与覆盖提示需要 kdialog 或 zenity；缺少时不会自动批准覆盖。

  Close the game and create user-data beside srw64 to enable portable data.
  Local settings and saves take precedence; missing groups import from the system
  user-data directory (absolute XDG_DATA_HOME, else ~/.local/share/srw64-recomp).
  Normal exit mirrors back to that directory. Different saves require confirmation;
  replaced data is kept in sync-backups/<id>. Cancel keeps both copies without syncing.
  Keep the ROM inside the game folder and move the complete folder together.
  New portable data starts in English; existing/imported language settings are restored.
  Ordinary installations without user-data stay unchanged. Install kdialog or zenity
  for file selection and replacement dialogs. --user-dir stays isolated from auto-sync.
