Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
Merge upstream NotProton main (prefix rebuild on build switch)
raymondchins57e17071ebaf
diff --cc AGENTS.mdindex 1dc32c6,0000000..3b6385bmode 100644,000000..100644--- a/AGENTS.md+++ b/AGENTS.md@@@ -1,106 -1,0 +1,106 @@@+# Bridgeplay++Bridgeplay runs Windows-only Steam games on Apple Silicon Macs inside the native macOS Steam+client. It turns on Steam Play in Mac Steam and runs games through CodeWeavers' WineCX with+Apple's Game Porting Toolkit (D3DMetal), DXMT or DXVK. It is a GPL-3.0 fork of+[NotProton](https://github.com/NotProtonNot/NotProton). The user-facing overview is in+[README.md](README.md). `docs/DEVELOPING.md` is still the upstream README, so don't take build+steps from it.++## Where code lives++| Path | What it is | Runs in |+|---|---|---|+| `app/` | SwiftUI app and CLI (Swift package, Sparkle updates). Sets up Steam, engines and runners. Tests are in `app/Tests/` | Its own process |+| `dylib/` | `notproton.dylib`: hooks, Steam web UI patches, compat tool registration, and the game `run` script (`dylib/feats/compat_run.sh`). See [dylib/AGENTS.md](dylib/AGENTS.md) | Steam client and Steam Helper |+| `signatures/macos.arm64/` | Byte signatures the dylib resolves per Steam build | Read by the dylib |+| `lsteamclient/`, `steam-shim/`, `bridge/` | Proton's steamclient bridge and `steam.exe`, built against the Wine tree that `bridge/` sets up | Wine |+| `ntdll-patch/` | Detours patched into the engine's `ntdll.dll`; the prebuilt `detour*.bin` live in `app/Sources/BridgeplayApp/Resources/` | Wine |+| `*-patch/` (win32u, winemac, winebus, winecoreaudio, wined3d, ws2_32, ngx-signer) | Patches for single WineCX/WineHQ files. The rebuilt binaries are committed in `app/Sources/BridgeplayApp/Resources/` | Wine |+| `nvapi-shim/` | Windows `nvapi64.dll` that lets games use DLSS (answered by MetalFX) | Wine |+| `overlay-shim/` | HDR, Metal 4 and frame generation | Game process |+| `controllers/` | DualSense Bluetooth bridge and Steam Input rumble | Game process, plus a broker process |+| `native-launch/`, `native-shim/` | Launch wrapper and gamepad shim for native Mac games | Native game process |+| `helpers/` | Small tools the dylib and run script call (icons, app info, game host, shortcuts) | Command line |+| `gamefixes/` | Per-game defaults, `<appid>.conf`. Format: [docs/GAMEFIXES.md](docs/GAMEFIXES.md) | Read by the run script |+| `installer/`, `scripts/` | The `Install.command` installer, plus build, test and release scripts | — |+| `fonts/`, `vendor/` | Proton's font build; vendored cJSON (Dobby is cloned, see [vendor/README.md](vendor/README.md)) | — |+| `compat/` | Game compatibility list, generated from `compat/games.json`. Don't edit `compat/README.md` by hand | — |++More docs: [docs/WINECX.md](docs/WINECX.md) (engine, patch build recipes and pins),+[docs/DXMT.md](docs/DXMT.md), [docs/dualsense-bluetooth.md](docs/dualsense-bluetooth.md),+[docs/game-mode-host.md](docs/game-mode-host.md) and [docs/RELEASING.md](docs/RELEASING.md).++## Build and check++A full build needs an Apple Silicon Mac with Xcode 27. Prerequisites, caches and timings+are in [docs/BUILD-LOCAL.md](docs/BUILD-LOCAL.md). The lint workflow runs only `make scriptcheck`+and `make runcheck` (shellcheck 0.11.0) on Linux. The `app` workflow decides on Linux whether a change is+docs-only (`.github/docs-only-paths`) and ends in the `app gate` job; everything else runs on macOS.++```sh+scripts/build-local.sh # full build in CI order; --checks also runs checks and Swift tests+```++Or build step by step, in the order `.github/workflows/app.yml` uses:++```sh+git clone https://github.com/jmpews/Dobby.git vendor/dobby+git -C vendor/dobby checkout 5dfc8546954ce3b3198132ab13fddb89ee92cdd7 # DOBBY_COMMIT in app.yml+make dobby+make all overlay-shim iconmaker appinfo+make bridge # Wine tree, lsteamclient, steam.exe (slow on first run)+make fonts # needs fontforge, gpatch, afdko, fonttools+make app-payload app # out/Bridgeplay.app+```++The checks the workflows run (`make -s <target>`):++- **Lint:** `scriptcheck`, `runcheck`+- **App:** `mincheck`, `l10ncheck`, `app-tests` (the Swift tests)+- **C and shell suites:** `sigcheck`, `callscheck`, `webpatch-fixtures`, `peicon-fixtures`,- `panel-behavior`, `spawn-env`, `activatecheck`, `compatcheck`, `compatsvc-check`,++ `panel-behavior`, `spawn-env`, `activatecheck`, `compatcheck`, `compatsvc-check`, `prefixstate-check`,+ `shortcutcheck`, `launch-shell`, `envcheck`, `buildcheck`, `settingscheck`, `routecheck`,+ `bridgecheck`, `envpasscheck`, `prefixnotecheck`, `gamedrivecheck`, `launchercheck`, `seedcheck`, `gamefixescheck`, `versioncheck`, `cicheck`,+ `compat-reported-check`+- **Hardware-free device checks:** `game-host-check`, `dualsense-check`, `steam-rumble-check`++`make tests-list` prints the test paths. A check whose tool or input is missing prints+`skipped` and exits 0: that is not a pass. Install the tool, or say the check didn't run.++To try a change against your own Steam, run `make deploy` after `make fonts`. It copies+the dylib into `Steam.app` and installs the signatures, fonts and helpers into+`~/Library/Application Support/bridgeplay/`; restart Steam afterwards. Logs go to+`~/Library/Application Support/bridgeplay/bridgeplay.log`.++## Rules++- **Large changes:** open an issue first. Check closed issues and PRs for duplicate work.+ Changes that belong upstream go to NotProton.+- **PR descriptions** are written by the contributor in their own words. Don't generate one.+- **Comments:** keep them short. Comment where the code is hard to follow, not where it is+ obvious.+- **Run the checks your change touches** before opening a PR.+- **Licence:** contributions are GPL-3.0. Files under other licences are listed in+ [NOTICE](NOTICE) and keep their terms.+- **The hard parts interact in subtle ways:** code inside Steam, the run script,+ lsteamclient, Wine patches and game saves. Design for several Steam accounts on one Mac,+ several Steam library folders (including external drives), several macOS users sharing+ one `/Applications/Steam.app`, and volumes that are case-sensitive or not APFS. The app+ must not rewrite `Steam.app` or Steam's config files while Steam is running (Steam+ rewrites `config.vdf` when it quits). Never lose a game's save or prefix data.+- **Wine patches:** a patch change is not finished until the binary it produces is+ rebuilt with the recipe in [docs/WINECX.md](docs/WINECX.md) or the patch folder's+ README. Then update its sha256 pins (in `docs/WINECX.md` and+ `app/Sources/BridgeplayApp/Model/FreeEngineWinecx.swift`) and its entry in+ [NOTICE](NOTICE). Don't commit a binary without its patch.+- **Legacy names stay:** existing installs depend on `notproton.dylib`, the `NOTPROTON_*`+ variables, `com.notproton.*` identifiers and the fallback to the old `notproton` support+ folders. Don't rename them. User-facing names are Bridgeplay's (`BRIDGEPLAY_*`).+- **Localization:** user-facing app strings are localized (en, it, zh-Hans) in+ `app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings`. `make l10ncheck`+ checks them.+- **Versions:** version bumps are separate `chore(release)` commits made with+ `scripts/bump-version.sh`; see [docs/RELEASING.md](docs/RELEASING.md).+- **Commits:** Conventional Commits, e.g. `feat(setup): …`, `fix(migration): …`,+ `docs: …`.diff --cc Makefileindex 6f56410,f181576..ff0783a--- a/Makefile+++ b/Makefile@@@ -73,10 -71,9 +74,10 @@@ DEPS := $(OBJS:.o=.dtests-list overlay-shim overlay-shim-install overlay-shim-tests \overlay-shim-bench iconmaker icon \appinfo helpers-install ntdll-resolve bridge runcheck compatcheck \- compatsvc-check shortcutcheck scriptcheck envcheck buildcheck settingscheck routecheck bridgecheck envpasscheck prefixnotecheck gamedrivecheck \- compatsvc-check prefixstate-check shortcutcheck scriptcheck envcheck buildcheck settingscheck routecheck bridgecheck gamedrivecheck launchercheck launch-shell activatecheck FORCE++ compatsvc-check prefixstate-check shortcutcheck scriptcheck envcheck buildcheck settingscheck routecheck bridgecheck envpasscheck prefixnotecheck gamedrivecheck \+ gamefixescheck launchercheck padcheck launch-shell activatecheck stamp-check versioncheck cicheck compat-reported-check FORCE-APP_PAYLOAD := app/Sources/NotProtonApp/Resources/payload+APP_PAYLOAD := app/Sources/BridgeplayApp/Resources/payloadall: $(TARGET) $(APP_PAYLOAD)@@@ -413,9 -384,9 +422,10 @@@ panel-behaviornode $(PANEL_TESTS)/launch-options.js $(OUT_DIR)/panel-emit && \node $(PANEL_TESTS)/shell.js $(OUT_DIR)/panel-emit && \node $(PANEL_TESTS)/migration.js $(OUT_DIR)/panel-emit && \+ node $(PANEL_TESTS)/effective.js $(OUT_DIR)/panel-emit && \node $(PANEL_TESTS)/localization.js $(OUT_DIR)/panel-emit && \node $(PANEL_TESTS)/fex.js $(OUT_DIR)/panel-emit && \+ node $(PANEL_TESTS)/prefix-row.js $(OUT_DIR)/panel-emit && \echo "==> panel behavior: renders as expected, no stale arguments"CX_ROOT ?= /Applications/CrossOver Preview.app@@@ -738,54 -612,31 +748,63 @@@ app-payload: $(TARGET) $(OVERLAY_SHIM)echo "$$stamp" > "$(APP_PAYLOAD)/build-time"@echo "==> Staged app payload in $(APP_PAYLOAD)"-APP_BUNDLE := $(OUT_DIR)/NotProton.app-APP_BUNDLE_PAYLOAD := $(APP_BUNDLE)/Contents/Resources/NotProtonApp_NotProtonApp.bundle/Contents/Resources/payload-APP_ZIP := $(OUT_DIR)/NotProton.zip-APP_VERSION := $(shell sed -n 's/^\#define NOTPROTON_VERSION "\(.*\)"/\1/p' dylib/version.h)--APP_SIGN_ID ?= --+APP_BUNDLE := $(OUT_DIR)/Bridgeplay.app+APP_BUNDLE_PAYLOAD := $(APP_BUNDLE)/Contents/Resources/BridgeplayApp_BridgeplayApp.bundle/Contents/Resources/payload+APP_ZIP := $(OUT_DIR)/Bridgeplay.zip+# dylib/version.h: Bridgeplay semver for CFBundleShortVersionString, the release counter+# for CFBundleVersion (Sparkle orders updates by it; 32 is newer than the old 1.1.9.31),+# and the NotProton release it is based on. See docs/RELEASING.md.+APP_VERSION := $(shell sed -n 's/^\#define BRIDGEPLAY_VERSION "\(.*\)"/\1/p' dylib/version.h)+APP_BUILD := $(shell sed -n 's/^\#define BRIDGEPLAY_BUILD \([0-9][0-9]*\)$$/\1/p' dylib/version.h)+APP_UPSTREAM := $(shell sed -n 's/^\#define NOTPROTON_VERSION "\(.*\)"/\1/p' dylib/version.h)++# The app's code signing identity. Ad hoc (-) by default, so any checkout builds; a release+# uses a stable self-signed identity (BRIDGEPLAY_SIGN_IDENTITY, see docs/RELEASING.md) so the+# designated requirement, and the macOS permissions keyed to it, survive updates.+APP_SIGN_ID ?= $(or $(BRIDGEPLAY_SIGN_IDENTITY),-)++# Every Mach-O file in the bundled payload, path:identifier. `make app` signs them with+# APP_SIGN_ID under these identifiers before the app's own signature, so a release gives+# each one a certificate-based designated requirement as well. The build rules above keep+# signing ad hoc for tests and `make deploy`. Existing com.notproton.* identifiers stay.+PAYLOAD_SIGN_IDS := \+ notproton.dylib:com.bridgeplay.notproton \+ overlay-shim.dylib:com.bridgeplay.overlay-shim \+ iconmaker:com.bridgeplay.iconmaker \+ appinfo:com.bridgeplay.appinfo \+ game-host.dylib:com.notproton.game-host \+ prepare-game-loader:com.notproton.game-metadata \+ controllers/dualsense/bridge.dylib:com.notproton.dualsense.bridge \+ controllers/dualsense/broker:com.notproton.dualsense.broker \+ controllers/dualsense/launch:com.notproton.dualsense.launch \+ controllers/steam-input/rumble.dylib:com.notproton.steam-input.rumble \+ bridge/x86_64-unix-lsteamclient.so:com.bridgeplay.lsteamclient \+ bridge/aarch64-unix-lsteamclient.so:com.bridgeplay.lsteamclient++# The icon name must match CFBundleIconFile/CFBundleIconName in app/Info.plist.+ICON_NAME := Bridgeplay+ICON_MARK := helpers/icon/bridgeplay-mark.svg+ICONGEN := $(OUT_DIR)/icongen+ICON_DOC := $(OUT_DIR)/$(ICON_NAME).icon+ICON_DIR := $(OUT_DIR)/icon+ICON_CAR := $(ICON_DIR)/Assets.car++# Licence texts copied into Contents/Resources: GPL-3.0, NOTICE and every+# third-party licence the bundle needs (LICENSE.dobby, LICENSE.sparkle, ...).+APP_LICENSES := LICENSE $(sort $(wildcard LICENSE.*)) NOTICE+ .PHONY: prefix-command-install+ # Records an app bundle that is already built. Building it here would make every deploy+ # build the whole app.+ prefix-command-install:- @if [ ! -x "$(APP_BUNDLE)/Contents/MacOS/NotProtonApp" ]; then \++ @if [ ! -x "$(APP_BUNDLE)/Contents/MacOS/BridgeplayApp" ]; then \+ echo "==> no $(APP_BUNDLE) yet, run make app for rebuilds from Steam"; exit 0; fi; \+ mkdir -p "$(SUPPORT_DIR)" && \- printf '%s' "$(CURDIR)/$(APP_BUNDLE)/Contents/MacOS/NotProtonApp" > "$(SUPPORT_DIR)/app-executable.new" && \++ printf '%s' "$(CURDIR)/$(APP_BUNDLE)/Contents/MacOS/BridgeplayApp" > "$(SUPPORT_DIR)/app-executable.new" && \+ mv -f "$(SUPPORT_DIR)/app-executable.new" "$(SUPPORT_DIR)/app-executable"-ICONGEN := $(OUT_DIR)/icongen-ICON_DOC := $(OUT_DIR)/NotProton.icon-ICON_DIR := $(OUT_DIR)/icon-ICON_CAR := $(ICON_DIR)/Assets.car-icon: $(ICON_CAR)-$(ICONGEN): helpers/icon.swift+$(ICONGEN): helpers/icon/icongen.swift@mkdir -p $(OUT_DIR)swiftc -O -o $@ $<@echo "==> Built $@"@@@ -887,92 -703,3 +906,92 @@@ rebuild: clean al-include $(DEPS)FORCE:++# np-native: Steam launch-option wrapper for native macOS games (arm64+# preferred, Steam's DYLD_INSERT_LIBRARIES kept). Installed later to+# ~/.bridgeplay/np-native.+NP_NATIVE := $(OUT_DIR)/np-native/np-native+NP_NATIVE_SRC := native-launch/np-native.c++.PHONY: np-native np-native-tests++np-native: $(NP_NATIVE)++$(NP_NATIVE): $(NP_NATIVE_SRC)+ @mkdir -p $(dir $@)+ $(CC) -arch arm64 -arch x86_64 -mmacosx-version-min=11.0 -std=c17 -O2 \+ -Wall -Wextra -Werror $< -framework CoreFoundation -o $@+ codesign -s - -f $@+ @echo "==> Built $@ ($$(lipo -archs $@))"++np-native-tests: $(NP_NATIVE)+ @if [ ! -f native-launch/tests/run.sh ]; then $(call SKIP,np-native-tests,native-launch/tests/run.sh); exit 0; fi; \+ sh native-launch/tests/run.sh $(NP_NATIVE)++.PHONY: native-shim-tests+native-shim-tests:+ @if [ ! -f native-shim/tests/run.sh ]; then $(call SKIP,native-shim-tests,native-shim/tests/run.sh); exit 0; fi; \+ sh native-shim/tests/run.sh++# Every check .github/workflows/app.yml runs, after `make app`.+# scripts/build-local.sh --checks runs this same target, so a local release build+# and CI gate on one list. Each check runs even when an earlier one failed.+# overlay-shim-tests is left out: it needs a Metal GPU and real frame timing.+CI_CHECKS := mincheck l10ncheck \+ sigcheck callscheck webpatch-fixtures peicon-fixtures panel-behavior spawn-env \- activatecheck compatcheck compatsvc-check shortcutcheck launch-shell envcheck \++ activatecheck compatcheck compatsvc-check prefixstate-check shortcutcheck launch-shell envcheck \+ buildcheck settingscheck routecheck bridgecheck envpasscheck prefixnotecheck gamedrivecheck launchercheck \+ seedcheck gamefixescheck versioncheck cicheck padcheck compat-reported-check np-native-tests native-shim-tests \+ app-tests native-installercheck game-host-check dualsense-check steam-rumble-check++# app.yml runs the checks that need the built app in its build job and the rest in a+# parallel job; both lists together are CI_CHECKS.+CI_CHECKS_BUILT := mincheck l10ncheck app-tests+CI_CHECKS_SOURCE := $(filter-out $(CI_CHECKS_BUILT),$(CI_CHECKS))++.PHONY: ci-checks ci-checks-built ci-checks-source+ci-checks-built:+ @$(MAKE) -s ci-checks CI_CHECKS="$(CI_CHECKS_BUILT)"+ci-checks-source:+ @$(MAKE) -s ci-checks CI_CHECKS="$(CI_CHECKS_SOURCE)"+# The checks run side by side, CHECK_JOBS at a time (CHECK_JOBS=1 runs them one by one).+# Each one's output goes to $(CHECK_LOGS)/<check>.log and is printed whole, in list order,+# once all have finished. The slowest start first.+CHECK_JOBS ?= $(shell sysctl -n hw.ncpu 2>/dev/null || echo 4)+CHECK_LOGS := $(OUT_DIR)/check-logs+CI_CHECKS_FIRST := app-tests dualsense-check panel-behavior launchercheck gamefixescheck+CI_CHECKS_ORDERED := $(filter $(CI_CHECKS_FIRST),$(CI_CHECKS)) $(filter-out $(CI_CHECKS_FIRST),$(CI_CHECKS))++ci-checks:+ @rm -rf $(CHECK_LOGS) && mkdir -p $(CHECK_LOGS); \+ echo "==> ci-checks: $(words $(CI_CHECKS)) checks, $(CHECK_JOBS) at a time"; \+ $(MAKE) -s -j$(CHECK_JOBS) $(addprefix ci-run/,$(CI_CHECKS_ORDERED)); \+ failed=""; \+ for t in $(CI_CHECKS); do \+ rc=1; secs=?; \+ if [ -f $(CHECK_LOGS)/$$t.rc ]; then read -r rc secs <$(CHECK_LOGS)/$$t.rc; fi; \+ echo "==> [check] make -s $$t ($${secs}s)"; \+ cat $(CHECK_LOGS)/$$t.log 2>/dev/null; \+ if [ "$$rc" != 0 ]; then echo "==> [check] $$t failed with exit $$rc"; failed="$$failed $$t"; fi; \+ done; \+ skipped=$$(cd $(CHECK_LOGS) && grep -l '^==> [^ ]*: .*skipped' $(addsuffix .log,$(CI_CHECKS)) 2>/dev/null | sed 's/\.log$$//' | tr '\n' ' '); \+ [ -z "$$skipped" ] || echo "==> ci-checks: skipped, so not passed: $$skipped"; \+ if [ -n "$$failed" ]; then echo "==> ci-checks failed:$$failed" >&2; exit 1; fi; \+ if [ -n "$$skipped" ]; then echo "==> ci-checks: none failed, $$(echo $$skipped | wc -w | tr -d ' ') skipped"; \+ else echo "==> ci-checks: all $(words $(CI_CHECKS)) checks passed"; fi++# One check for ci-checks: always succeeds, leaving the exit status and seconds in <check>.rc+ci-run/%:+ @start=$$(date +%s); rc=0; \+ $(MAKE) -s $* >$(CHECK_LOGS)/$*.log 2>&1 </dev/null || rc=$$?; \+ secs=$$(($$(date +%s) - start)); \+ echo "$$rc $$secs" >$(CHECK_LOGS)/$*.rc; \+ if [ $$rc -eq 0 ]; then echo "--> $* passed in $${secs}s"; else echo "--> $* FAILED in $${secs}s"; fi++.PHONY: native-installer native-installercheck+native-installer:+ sh scripts/package-native-installer.sh++native-installercheck:+ sh scripts/test-native-installer.sh+ sh scripts/test-installer-cleanup.shdiff --cc app/Sources/BridgeplayApp/Model/PrefixRebuild.swiftindex b0965b3,4b54b09..6edd005--- a/app/Sources/BridgeplayApp/Model/PrefixRebuild.swift+++ b/app/Sources/BridgeplayApp/Model/PrefixRebuild.swift@@@ -78,13 -96,7 +96,14 @@@ extension PrefixTools)}+ let rerun = InstallScriptMarkers.clear(+ userReg: fresh.appending(path: "user.reg"),+ installDirectory: PrefixStore.installDirectory(of: prefix))+ if !rerun.isEmpty {+ AppLog.note("rebuild \(prefix.appID) Steam will rerun: \(rerun.joined(separator: ", "))")+ }++ progress(.finishing)let parked = fm.fileExists(atPath: prefix.pfx.path(percentEncoded: false))let previous = backupSlot(in: prefix.root, at: now)if parked {diff --cc app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstringsindex 7fad923,90f0a13..f9cdec7--- a/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings+++ b/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings@@@ -2239,7 -2140,39 +2239,39 @@@}}},- "Could not lock the installation at %@: %@." : {++ "Bridgeplay is rebuilding the prefix for %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",- "value" : "Impossibile bloccare l'installazione in %1$@: %2$@."++ "value" : "Bridgeplay sta ricostruendo il prefisso di %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",- "value" : "无法锁定 %@ 处的安装:%@。"++ "value" : "Bridgeplay 正在重建 %@ 的游戏容器。"+ }+ }+ }+ },- "Could not remove prefix template %@: %@ Refresh to retry." : {++ "Bridgeplay is rebuilding this game's prefix." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",- "value" : "Impossibile rimuovere il modello di prefisso %1$@: %2$@ Aggiorna per riprovare."++ "value" : "Bridgeplay sta ricostruendo il prefisso di questo gioco."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",- "value" : "无法移除容器模板 %@:%@ 请刷新后重试。"++ "value" : "Bridgeplay 正在重建此游戏的游戏容器。"+ }+ }+ }+ },- "Could not write files." : {+ "Bridgeplay is still moving its files to the new Bridgeplay folders." : {"localizations" : {"it" : {"stringUnit" : {@@@ -2650,1002 -2586,7 +2682,1018 @@@"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "已删除“%@”的游戏容器。下次启动该游戏时,Steam 将创建新容器。"+ "value" : "选择"+ }+ }+ }+ },+ "Choose Bridgeplay. Steam Play's engine picker is at the top, Bridgeplay's settings below it." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scegli Bridgeplay. In alto c'è il selettore del motore di Steam Play, sotto ci sono le impostazioni di Bridgeplay."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "选择“Bridgeplay”。顶部是 Steam Play 的引擎选择,下方是 Bridgeplay 的设置。"+ }+ }+ }+ },+ "Choose a Windows program to run in %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scegli un programma Windows da eseguire in %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "选择要在“%@”中运行的 Windows 程序。"+ }+ }+ }+ },+ "Choose…" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scegli…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "选择…"+ }+ }+ }+ },+ "Cleaning up" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Pulizia"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在清理"+ }+ }+ }+ },+ "Clear Steam's controller permission so macOS asks for it again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Azzera il permesso dei controller di Steam, così macOS lo chiede di nuovo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "清除 Steam 的控制器权限,让 macOS 重新询问授权。"+ }+ }+ }+ },+ "Clone CrossOver" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copia di CrossOver"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "复制 CrossOver"+ }+ }+ }+ },+ "Close" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Chiudi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "关闭"+ }+ }+ }+ },+ "Close Steam before continuing." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Chiudi Steam prima di continuare."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请先关闭 Steam,再继续。"+ }+ }+ }+ },+ "Compatibility Tool" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Strumento di compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容工具"+ }+ }+ }+ },+ "Compatibility tool is already set up." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lo strumento di compatibilità è già configurato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容工具已设置,无需重复操作。"+ }+ }+ }+ },+ "Compatibility tool ready." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Strumento di compatibilità pronto."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容工具已就绪。"+ }+ }+ }+ },+ "Compatibility tool ready. %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Strumento di compatibilità pronto. %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容工具已就绪。%@"+ }+ }+ }+ },+ "Component list unreadable." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elenco dei componenti illeggibile."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法读取组件列表。"+ }+ }+ }+ },+ "Components" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Componenti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "组件"+ }+ }+ }+ },+ "Configuring Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Configurazione di Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在配置 Steam"+ }+ }+ }+ },+ "Confirm the Steam update" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Conferma l'aggiornamento di Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "确认 Steam 更新"+ }+ }+ }+ },+ "Continue" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Continua"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "继续"+ }+ }+ }+ },+ "Continue Anyway" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Continua comunque"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "仍然继续"+ }+ }+ }+ },+ "Controller" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "手柄"+ }+ }+ }+ },+ "Controller layer" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Livello controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器层"+ }+ }+ }+ },+ "Controller permission" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Permesso dei controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器权限"+ }+ }+ }+ },+ "Controller permission reset. Restart Steam so macOS asks again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Permesso dei controller azzerato. Riavvia Steam perché macOS lo chieda di nuovo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器权限已重置。请重启 Steam,让 macOS 重新询问权限。"+ }+ }+ }+ },+ "Controller permission reset. macOS asks again when Steam starts." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Permesso dei controller azzerato. macOS lo chiederà di nuovo all'avvio di Steam."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器权限已重置。下次启动 Steam 时,macOS 将重新询问权限。"+ }+ }+ }+ },+ "Controllers" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器"+ }+ }+ }+ },+ "Controllers may not work" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I controller potrebbero non funzionare"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器可能无法使用"+ }+ }+ }+ },+ "Copies on other drives %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copie su altri dischi %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "其他磁盘上的副本 %@"+ }+ }+ }+ },+ "Copy %@ again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copia di nuovo %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "重新复制 %@。"+ }+ }+ }+ },+ "Copy %@ and set up its compatibility tool." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copia %@ e configura il suo strumento di compatibilità."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "复制 %@ 并设置其兼容工具。"+ }+ }+ }+ },+ "Copy the built bridge files" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copia dei file del bridge"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "复制已构建的桥接文件"+ }+ }+ }+ },+ "Copying %@ failed. %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La copia di %1$@ non è riuscita. %2$@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "复制 %@ 失败。%@"+ }+ }+ }+ },+ "Copying Wine" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Copia di Wine"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在拷贝 Wine"+ }+ }+ }+ },++ "Copying your files…" : {++ "localizations" : {++ "it" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "Copia dei tuoi file…"++ }++ },++ "zh-Hans" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "正在复制你的文件…"++ }++ }++ }++ },+ "Could not check installed files." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile controllare i file installati."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法检查已安装的文件。"+ }+ }+ }+ },+ "Could not clean prefix templates at %@: %@ Refresh to retry." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile pulire i modelli di prefisso in %1$@: %2$@ Aggiorna per riprovare."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法清理 %@ 处的容器模板:%@ 请刷新后重试。"+ }+ }+ }+ },+ "Could not lock the installation at %@: %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile bloccare l'installazione in %1$@: %2$@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法锁定 %@ 处的安装:%@。"+ }+ }+ }+ },+ "Could not remove prefix template %@: %@ Refresh to retry." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile rimuovere il modello di prefisso %1$@: %2$@ Aggiorna per riprovare."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法移除容器模板 %@:%@ 请刷新后重试。"+ }+ }+ }+ },+ "Could not write files." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Impossibile scrivere i file."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法写入文件。"+ }+ }+ }+ },+ "CrossOver" : {+ "shouldTranslate" : false+ },+ "CrossOver app not found." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "App CrossOver non trovata."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未找到 CrossOver 应用。"+ }+ }+ }+ },+ "CrossOver does not appear to be activated." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "CrossOver non sembra attivato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "CrossOver 似乎尚未激活。"+ }+ }+ }+ },+ "CrossOver is activated." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "CrossOver è attivato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "CrossOver 已激活。"+ }+ }+ }+ },+ "CrossOver itself is not removed." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "CrossOver non viene rimosso."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "不会移除 CrossOver 原应用。"+ }+ }+ }+ },+ "Customization" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Personalizzazione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "自定义"+ }+ }+ }+ },+ "Delete" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除"+ }+ }+ }+ },+ "Delete %lld Backups" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina %lld backup"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除 %lld 个备份"+ }+ }+ }+ },+ "Delete %lld Prefixes" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina %lld prefissi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除 %lld 个游戏容器"+ }+ }+ }+ },+ "Delete %lld backups?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare %lld backup?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除 %lld 个备份?"+ }+ }+ }+ },+ "Delete %lld prefixes?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare %lld prefissi?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除 %lld 个游戏容器?"+ }+ }+ }+ },+ "Delete All" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina tutti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "全部删除"+ }+ }+ }+ },+ "Delete Backup" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina backup"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除备份"+ }+ }+ }+ },+ "Delete Bridgeplay's copy of this build." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina la copia di Bridgeplay di questa build."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除 Bridgeplay 保存的此版本副本。"+ }+ }+ }+ },+ "Delete Prefix" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina prefisso"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除游戏容器"+ }+ }+ }+ },+ "Delete backup?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare il backup?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除备份?"+ }+ }+ }+ },+ "Delete every backup that rebuilds have kept." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina tutti i backup conservati dalle ricostruzioni."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除重建时保留的所有备份。"+ }+ }+ }+ },+ "Delete prefix" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminazione del prefisso"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除游戏容器"+ }+ }+ }+ },+ "Delete prefix?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare il prefisso?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除游戏容器?"+ }+ }+ }+ },+ "Delete the backup for %@?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare il backup di %@?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除“%@”的备份?"+ }+ }+ }+ },+ "Delete the prefix for %@?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminare il prefisso di %@?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除“%@”的游戏容器?"+ }+ }+ }+ },+ "Delete the selected backups." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Elimina i backup selezionati."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "删除所选备份。"+ }+ }+ }+ },+ "Deleted %lld backups across %lld prefixes." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminati %1$lld backup di %2$lld prefissi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已删除 %2$lld 个游戏容器的 %1$lld 个备份。"+ }+ }+ }+ },+ "Deleted %lld backups for %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminati %1$lld backup di %2$@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已删除“%2$@”的 %1$lld 个备份。"+ }+ }+ }+ },+ "Deleted %lld prefixes. Steam will make a new prefix if a game is launched again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminati %lld prefissi. Steam creerà un nuovo prefisso se un gioco viene riavviato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已删除 %lld 个游戏容器。下次启动游戏时,Steam 将创建新容器。"+ }+ }+ }+ },+ "Deleted the backup for %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminato il backup di %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已删除“%@”的备份。"+ }+ }+ }+ },+ "Deleted the prefix for %@. Steam will make a new prefix if the game is launched again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Eliminato il prefisso di %@. Steam creerà un nuovo prefisso se il gioco viene riavviato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已删除“%@”的游戏容器。下次启动该游戏时,Steam 将创建新容器。"}}}@@@ -3655,2407 -2596,7 +3703,2423 @@@"it" : {"stringUnit" : {"state" : "translated",- "value" : "Distacco da Steam"+ "value" : "Distacco da Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在解除与 Steam 的关联"+ }+ }+ }+ },+ "Didn't run" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non partiva"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法运行"+ }+ }+ }+ },+ "Disable hidraw" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Disable hidraw"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "停用 hidraw"+ }+ }+ }+ },+ "Do not run. Their anti-cheat needs a Windows driver." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non funzionano. Il loro anti-cheat richiede un driver di Windows."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法运行。其反作弊程序需要 Windows 驱动程序。"+ }+ }+ }+ },+ "Don't Ask About This Game" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non chiedere più per questo gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "不再询问此游戏"+ }+ }+ }+ },+ "Done" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fatto"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已完成"+ }+ }+ }+ },+ "Done." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fatto."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已完成。"+ }+ }+ }+ },+ "Done. Your controller keeps working after updates." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fatto. Il controller continua a funzionare anche dopo gli aggiornamenti."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已完成。更新后,你的控制器仍可正常使用。"+ }+ }+ }+ },+ "Download it from Apple" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scaricalo da Apple"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "从 Apple 下载"+ }+ }+ }+ },+ "Download missing Valve binaries." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scarica i binari di Valve mancanti."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载缺失的 Valve 组件。"+ }+ }+ }+ },+ "Downloaded missing components." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Componenti mancanti scaricati."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已下载缺失的组件。"+ }+ }+ }+ },+ "Downloading Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download di Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在下载 Steam"+ }+ }+ }+ },+ "Downloading from %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download da %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在从 %@ 下载"+ }+ }+ }+ },+ "Downloading from %@: %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download da %1$@: %2$@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在从 %1$@ 下载:%2$@"+ }+ }+ }+ },+ "Downloading from %@: %@, about %@ left" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download da %1$@: %2$@, circa %3$@ rimanenti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在从 %1$@ 下载:%2$@,大约还剩 %3$@"+ }+ }+ }+ },+ "Downloading missing components" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download dei componenti mancanti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在下载缺失的组件"+ }+ }+ }+ },+ "Drag the .dmg onto this window, or choose it." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Trascina il file .dmg su questa finestra, oppure sceglilo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "将 .dmg 文件拖到此窗口,或点击选择文件。"+ }+ }+ }+ },+ "Drawn the way Steam shows them. Changes apply the next time the game starts. Not sure? Leave a setting as it is: Bridgeplay picks what works for each game." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mostrate come le mostra Steam. Le modifiche si applicano al prossimo avvio del gioco. Non sei sicuro? Lascia l'impostazione com'è: Bridgeplay sceglie ciò che funziona per ogni gioco."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "按 Steam 的显示方式呈现。更改将在下次启动游戏时生效。不确定?保持原样即可:Bridgeplay 会为每个游戏选择合适的设置。"+ }+ }+ }+ },+ "Draws at your display's full Retina resolution instead of half. Sharper, heavier on the GPU." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Disegna alla piena risoluzione Retina dello schermo invece che a metà. Più nitido, più pesante per la GPU."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "以显示器完整的 Retina 分辨率绘制,而不是一半。更清晰,GPU 负担更重。"+ }+ }+ }+ },+ "DualSense, Xbox, GameSir and other pads work without a mapping screen. The first time a game uses one, allow Steam in Input Monitoring." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "DualSense, Xbox, GameSir e altri pad funzionano senza una schermata di mappatura. La prima volta che un gioco ne usa uno, consenti Steam in Monitoraggio input."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "DualSense、Xbox、GameSir 等手柄无需映射界面即可使用。游戏首次使用手柄时,请在“输入监控”中允许 Steam。"+ }+ }+ }+ },+ "Engine" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Motore"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "引擎"+ }+ }+ }+ },+ "Engines" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Motori"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "引擎"+ }+ }+ }+ },+ "Enter at least one verb, like vcrun2022." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inserisci almeno un verbo, ad esempio vcrun2022."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请至少输入一个组件,例如 vcrun2022。"+ }+ }+ }+ },+ "Enter the Winetricks verbs to install in %@, separated by spaces." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inserisci i verbi di Winetricks da installare in %@, separati da spazi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "输入要安装到“%@”中的 Winetricks 组件,用空格分隔。"+ }+ }+ }+ },+ "Every setting on the Bridgeplay tab" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tutte le impostazioni della scheda Bridgeplay"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bridgeplay 标签页上的所有设置"+ }+ }+ }+ },+ "Extracting" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Estrazione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在解压"+ }+ }+ }+ },+ "Failed" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non riuscito"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "操作失败"+ }+ }+ }+ },+ "Fast-motion fallback (skips frames that would smear)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ripiego per movimento veloce (salta i fotogrammi che sfocherebbero)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "快速运动回退(跳过会产生拖影的帧)"+ }+ }+ }+ },+ "Fetch Valve Binaries" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scarica binari di Valve"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载 Valve 组件"+ }+ }+ }+ },+ "Fetch the Valve binaries" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Download dei binari di Valve"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载 Valve 组件"+ }+ }+ }+ },+ "Find Bridgeplay's components" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricerca dei componenti di Bridgeplay"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "查找 Bridgeplay 组件"+ }+ }+ }+ },+ "Finishing the update to Bridgeplay 3" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Completamento dell'aggiornamento a Bridgeplay 3"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在完成向 Bridgeplay 3 的更新"+ }+ }+ }+ },+ "Finishing up" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Completamento"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在完成收尾工作"+ }+ }+ }+ },++ "Finishing…" : {++ "localizations" : {++ "it" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "Completamento…"++ }++ },++ "zh-Hans" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "正在完成…"++ }++ }++ }++ },+ "For Every Game" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Per tutti i giochi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "所有游戏"+ }+ }+ }+ },+ "For every game" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Per tutti i giochi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "所有游戏"+ }+ }+ }+ },+ "For example: no sound, crashes when a level loads" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Per esempio: niente audio, si chiude quando carica un livello"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "例如:没有声音,加载关卡时崩溃"+ }+ }+ }+ },+ "Frame Generation (Experimental. Adds input lag)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Generazione fotogrammi (sperimentale. Aggiunge input lag)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "帧生成(实验性。会增加输入延迟)"+ }+ }+ }+ },+ "Free space" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Spazio libero"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "可用空间"+ }+ }+ }+ },+ "Game" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏"+ }+ }+ }+ },+ "Game Porting Toolkit" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Game Porting Toolkit"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Game Porting Toolkit"+ }+ }+ }+ },+ "Game Recording" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Registrazione di gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏录制"+ }+ }+ }+ },+ "Game Versions & Betas" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Versioni e beta del gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏版本与测试版"+ }+ }+ }+ },+ "Games that offer Vulkan as a rendering option run it through MoltenVK, without DLSS. Prefer DirectX 11 or 12." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I giochi che offrono Vulkan come opzione di rendering lo eseguono tramite MoltenVK, senza DLSS. Meglio scegliere DirectX 11 o 12."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "提供 Vulkan 渲染选项的游戏会通过 MoltenVK 运行,且不支持 DLSS。建议选择 DirectX 11 或 12。"+ }+ }+ }+ },+ "Games with kernel anti-cheat" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Giochi con anti-cheat a livello kernel"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "使用内核级反作弊的游戏"+ }+ }+ }+ },+ "General" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Generale"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "常规"+ }+ }+ }+ },+ "Good to know" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Da sapere"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "须知"+ }+ }+ }+ },+ "Graphics" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Grafica"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "图形"+ }+ }+ }+ },+ "Guide" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Guida"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "指南"+ }+ }+ }+ },+ "Has issues" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Con problemi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "有问题"+ }+ }+ }+ },+ "Hides raw HID devices from the game, so pads only show up through SDL. Try it if a game sees one controller twice or ignores yours." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nasconde al gioco i dispositivi HID grezzi, così i pad appaiono solo tramite SDL. Provalo se un gioco vede un controller due volte o ignora il tuo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "对游戏隐藏原始 HID 设备,手柄只会通过 SDL 显示。如果游戏把同一个手柄识别成两个,或忽略你的手柄,可以试试。"+ }+ }+ }+ },+ "High Resolution" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Alta risoluzione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "高分辨率"+ }+ }+ }+ },+ "How did each game run? Games you already answered for this version of Bridgeplay, games you asked not to be asked about, and games already verified on a Mac like yours are left out." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Com'è andato ogni gioco? Sono esclusi i giochi a cui hai già risposto per questa versione di Bridgeplay, quelli per cui hai chiesto di non essere più interpellato e quelli già verificati su un Mac come il tuo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "每个游戏运行得怎么样?已在此 Bridgeplay 版本中回答过的游戏、你要求不再询问的游戏,以及已在与你相同的 Mac 上验证过的游戏不会列出。"+ }+ }+ }+ },+ "How finely motion is tracked between frames. Performance is the lightest, Quality the most precise, Balanced in between." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Quanto è fine il tracciamento del movimento tra i fotogrammi. Prestazioni è il più leggero, Qualità il più preciso, Bilanciato sta nel mezzo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "帧之间运动追踪的精细程度。“性能”最轻量,“画质”最精确,“均衡”介于两者之间。"+ }+ }+ }+ },+ "How the game's DirectX reaches your GPU. Automatic picks per game. D3DMetal (Apple's Game Porting Toolkit) runs DirectX 11 and 12 and is the default. DXMT runs DirectX 10 and 11 directly on Metal. DXVK runs DirectX 9 to 11 through Vulkan. WineD3D is Wine's own translation, for very old games." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Come il DirectX del gioco raggiunge la tua GPU. Automatico sceglie per ogni gioco. D3DMetal (il Game Porting Toolkit di Apple) esegue DirectX 11 e 12 ed è l'opzione predefinita. DXMT esegue DirectX 10 e 11 direttamente su Metal. DXVK esegue DirectX da 9 a 11 tramite Vulkan. WineD3D è la traduzione di Wine, per i giochi molto vecchi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏的 DirectX 如何到达你的 GPU。“自动”会按游戏选择。D3DMetal(Apple 的 Game Porting Toolkit)运行 DirectX 11 和 12,为默认选项。DXMT 直接在 Metal 上运行 DirectX 10 和 11。DXVK 通过 Vulkan 运行 DirectX 9 到 11。WineD3D 是 Wine 自带的转换层,适用于很老的游戏。"+ }+ }+ }+ },+ "If Bridgeplay is installed there, it will stay installed. Continue anyway?" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Se Bridgeplay è installato lì, resterà installato. Continuare comunque?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "如果 Bridgeplay 安装在那里,它将保持安装状态。仍要继续吗?"+ }+ }+ }+ },+ "If macOS shows the switch, turn it on. Setup carries on by itself." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Se macOS mostra l'interruttore, attivalo. La configurazione prosegue da sola."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "如果 macOS 显示了该开关,请将其开启。设置会自动继续。"+ }+ }+ }+ },+ "In your Mac's Steam." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nel Steam del tuo Mac."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在你 Mac 上的 Steam 中。"+ }+ }+ }+ },+ "In your Steam library, right-click the game and choose Properties…" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nella libreria di Steam, fai clic con il tasto destro sul gioco e scegli Proprietà…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在 Steam 游戏库中,右键点击游戏,然后选择“属性…”。"+ }+ }+ }+ },+ "Install" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装"+ }+ }+ }+ },+ "Install Bridgeplay" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione di Bridgeplay"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装 Bridgeplay"+ }+ }+ }+ },+ "Install Bridgeplay into Steam below, or run the Setup Assistant." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa Bridgeplay in Steam qui sotto, oppure avvia l'Assistente di configurazione."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请在下方将 Bridgeplay 安装到 Steam,或运行设置助理。"+ }+ }+ }+ },+ "Install Bridgeplay into Steam." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa Bridgeplay in Steam."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "将 Bridgeplay 安装到 Steam。"+ }+ }+ }+ },+ "Install Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装 Steam"+ }+ }+ }+ },+ "Install Steam, or choose where your copy is." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa Steam, oppure scegli dove si trova la tua copia."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请安装 Steam,或选择你的 Steam 所在位置。"+ }+ }+ }+ },+ "Install the WineCX engine below to finish." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa il motore WineCX qui sotto per completare."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请在下方安装 WineCX 引擎以完成设置。"+ }+ }+ }+ },+ "Install the newer Bridgeplay into Steam below." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa in Steam qui sotto la versione più recente di Bridgeplay."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请在下方将较新版本的 Bridgeplay 安装到 Steam。"+ }+ }+ }+ },+ "Installation is blocked. Refresh Status and use the Bridgeplay app that installed this build." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "L'installazione è bloccata. Aggiorna lo Stato e usa l'app Bridgeplay che ha installato questa build."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装已被阻止。请刷新“状态”页面,并使用此前安装此版本的 Bridgeplay 应用。"+ }+ }+ }+ },+ "Installed" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装"+ }+ }+ }+ },+ "Installed Files" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "File installati"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装文件"+ }+ }+ }+ },+ "Installed content could not be verified. Refresh the Status view for the files that still need attention." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non è stato possibile verificare il contenuto installato. Aggiorna la vista Stato per vedere i file che richiedono ancora attenzione."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法验证已安装的内容。请刷新“状态”页面,查看仍需处理的文件。"+ }+ }+ }+ },+ "Installed files differ from this build." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I file installati sono diversi da questa build."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装的文件与此版本不一致。"+ }+ }+ }+ },+ "Installed into Steam." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installato in Steam."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装到 Steam。"+ }+ }+ }+ },+ "Installed." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装。"+ }+ }+ }+ },+ "Installing" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装"+ }+ }+ }+ },+ "Installing Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione di Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装 Steam"+ }+ }+ }+ },+ "Installing and setting up wait until the move is done. Skipping leaves your files in the old notproton folders and tries again at the next launch." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "L'installazione e la configurazione attendono la fine dello spostamento. Se lo salti, i file restano nelle vecchie cartelle notproton e si riprova al prossimo avvio."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装和设置会等到移动完成后再进行。若跳过,文件将保留在旧的 notproton 文件夹中,并在下次启动时重试。"+ }+ }+ }+ },+ "Installing compatibility tool" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione dello strumento di compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装兼容工具"+ }+ }+ }+ },+ "Installing components" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione dei componenti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装组件"+ }+ }+ }+ },+ "Installing signatures" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installazione delle firme"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装签名数据库"+ }+ }+ }+ },+ "It will replace the DLLs used by CrossOver with ones that match your compatibility tool." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sostituisce le DLL usate da CrossOver con quelle adatte al tuo strumento di compatibilità."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它会将 CrossOver 使用的 DLL 替换为与当前兼容工具匹配的版本。"+ }+ }+ }+ },+ "Its output was still open when it exited, so none was captured." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il suo output era ancora aperto quando è uscito, quindi non è stato registrato nulla."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "进程退出后输出通道仍未关闭,因此未能捕获输出。"+ }+ }+ }+ },+ "Keeping the shipped %@ failed. " : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Conservare %@ incluso non è riuscito. "+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法保留随附的 %@。"+ }+ }+ }+ },+ "Keeps your controller working after Bridgeplay updates. Adds a certificate for this Mac to your login keychain. If macOS then asks for your password, choose Always Allow." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mantiene il controller funzionante dopo gli aggiornamenti di Bridgeplay. Aggiunge un certificato per questo Mac al portachiavi di login. Se poi macOS chiede la password, scegli Consenti sempre."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "让控制器在 Bridgeplay 更新后仍可正常使用。会将此 Mac 的证书添加到你的登录钥匙串。如果 macOS 随后要求输入密码,请选择“始终允许”。"+ }+ }+ }+ },+ "Last played %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ultima partita %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "上次游玩:%@"+ }+ }+ }+ },+ "Last played %@, for %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ultima partita %1$@, per %2$@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "上次游玩:%1$@,时长 %2$@"+ }+ }+ }+ },+ "Last used" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ultimo uso"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "上次使用"+ }+ }+ }+ },+ "Launch Log" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Log di avvio"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "启动日志"+ }+ }+ }+ },+ "Let games read controllers directly (Recommended on Mac. Turn off only for Steam Input remapping)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lascia che i giochi leggano direttamente i controller (consigliato su Mac, disattiva solo per la rimappatura di Steam Input)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "允许游戏直接读取控制器(Mac 上推荐,仅在需要 Steam Input 按键映射时关闭)"+ }+ }+ }+ },+ "Lets the game offer NVIDIA DLSS. Apple's MetalFX does the upscaling, and DLSS Frame Generation runs on MetalFX too. Turn DLSS on in the game's own settings as well." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Permette al gioco di offrire NVIDIA DLSS. L'upscaling è fatto da MetalFX di Apple, e anche la Frame Generation DLSS gira su MetalFX. Attiva DLSS anche nelle impostazioni del gioco."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "让游戏提供 NVIDIA DLSS 选项。放大由 Apple 的 MetalFX 完成,DLSS 帧生成也基于 MetalFX 运行。同时请在游戏自己的设置中开启 DLSS。"+ }+ }+ }+ },+ "Library" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Libreria"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏库"+ }+ }+ }+ },+ "Line %lld %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Riga %1$lld %2$@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "第 %lld 行:%@"+ }+ }+ }+ },+ "Line %lld has an unknown origin %@. Known: %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La riga %1$lld ha un'origine sconosciuta %2$@. Note: %3$@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "第 %lld 行包含未知来源 %@。已知来源:%@。"+ }+ }+ }+ },+ "Line %lld is not an origin and a path: %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La riga %1$lld non è un'origine con un percorso: %2$@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "第 %lld 行不是有效的来源和路径:%@"+ }+ }+ }+ },+ "Line %lld repeats %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La riga %1$lld ripete %2$@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "第 %lld 行重复声明了 %@。"+ }+ }+ }+ },+ "Linked." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Collegato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已关联。"+ }+ }+ }+ },+ "List the backups again and update their sizes." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rielenca i backup e aggiorna le loro dimensioni."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "重新列出备份并更新大小。"+ }+ }+ }+ },+ "List the prefixes again and update their sizes." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rielenca i prefissi e aggiorna le loro dimensioni."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "重新列出游戏容器并更新大小。"+ }+ }+ }+ },+ "Location" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Posizione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "位置"+ }+ }+ }+ },+ "Looking for backups" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricerca dei backup"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在查找备份"+ }+ }+ }+ },+ "Looking for prefixes" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricerca dei prefissi"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在查找游戏容器"+ }+ }+ }+ },+ "Make WineCX Steam's default" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Imposta WineCX come predefinito di Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "将 WineCX 设为 Steam 的默认引擎"+ }+ }+ }+ },+ "Manage" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Gestisci"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "管理"+ }+ }+ }+ },+ "Metal HUD" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Metal HUD"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Metal 性能监视器"+ }+ }+ }+ },+ "MetalFX Upscaling (Samples from the resolution the game is set to)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Upscaling MetalFX (ingrandisce l'immagine dalla risoluzione impostata nel gioco)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "MetalFX 超分辨率(以游戏设置的分辨率为采样来源)"+ }+ }+ }+ },+ "Missing components: %@. Run make app-payload and build the app again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Componenti mancanti: %@. Esegui make app-payload e compila di nuovo l'app."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "缺少组件:%@。请运行 make app-payload,然后重新构建应用。"+ }+ }+ }+ },+ "Missing." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mancante."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "缺失。"+ }+ }+ }+ },+ "Missing: %@. Install to restore these files for your macOS user." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mancano: %@. Installa per ripristinare questi file per il tuo utente macOS."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "缺少:%@。请点击“安装”,为当前 macOS 用户恢复这些文件。"+ }+ }+ }+ },+ "Mode" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Modalità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "模式"+ }+ }+ }+ },+ "More" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Altro"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更多"+ }+ }+ }+ },+ "More actions" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Altre azioni"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更多操作"+ }+ }+ }+ },+ "More actions, %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Altre azioni, %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更多操作,%@"+ }+ }+ }+ },+ "Moving to the Bridgeplay folders failed" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Spostamento nelle cartelle di Bridgeplay non riuscito"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "移动到 Bridgeplay 文件夹失败"+ }+ }+ }+ },+ "Native Mac games" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Giochi nativi per Mac"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "原生 Mac 游戏"+ }+ }+ }+ },+ "Needs rebuilding" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Da ricostruire"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "需要重建"+ }+ }+ }+ },+ "Never" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mai"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "从未使用"+ }+ }+ }+ },+ "No Backups" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessun backup"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "暂无备份"+ }+ }+ }+ },+ "No Prefixes" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessun prefisso"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "暂无游戏容器"+ }+ }+ }+ },+ "No compatibility tool at %@. Use Set Up Compatibility Tool first." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessuno strumento di compatibilità in %@. Usa prima Configura strumento di compatibilità."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@ 处没有兼容工具。请先执行“设置兼容工具”。"+ }+ }+ }+ },+ "No compatibility tool is set up." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessuno strumento di compatibilità configurato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未设置兼容工具。"+ }+ }+ }+ },+ "No file at %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessun file in %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@ 处没有文件。"+ }+ }+ }+ },+ "No longer installed" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non più installato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已卸载"+ }+ }+ }+ },+ "No supported Wine engine found. Download the free WineHQ or WineCX engine first." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessun motore Wine supportato trovato. Scarica prima il motore gratuito WineHQ o WineCX."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未找到受支持的 Wine 引擎。请先下载免费的 WineHQ 或 WineCX 引擎。"+ }+ }+ }+ },+ "None" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessuno"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无"+ }+ }+ }+ },+ "None found. Download the free WineHQ or WineCX engine, or use CrossOver (%@)." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessuno trovato. Scarica il motore gratuito WineHQ o WineCX, oppure usa CrossOver (%@)."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未找到。请下载免费的 WineHQ 或 WineCX 引擎,或使用 CrossOver(%@)。"+ }+ }+ }+ },+ "Not Now" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non ora"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "暂不"+ }+ }+ }+ },+ "Not installed." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non installato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未安装。"+ }+ }+ }+ },+ "Not set up yet" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non ancora configurato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未设置"+ }+ }+ }+ },+ "Not set up. Bridgeplay still works, but after each update you'll need to allow your controller again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non configurato. Bridgeplay funziona comunque, ma dopo ogni aggiornamento dovrai consentire di nuovo il controller."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未设置。Bridgeplay 仍可使用,但每次更新后你都需要重新允许控制器。"+ }+ }+ }+ },+ "Not yet deployed." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non ancora installati."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未部署。"+ }+ }+ }+ },+ "Nothing left to report." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non c'è altro da segnalare."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "没有需要报告的游戏了。"+ }+ }+ }+ },+ "OK" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "OK"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "好"+ }+ }+ }+ },+ "Off" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Disattivato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "关闭"+ }+ }+ }+ },+ "On by default. Mac Steam has no virtual gamepad for Windows games, so games read the pad themselves. Turn it off only to use Steam Input's button remapping." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Attivo per impostazione predefinita. Steam per Mac non ha un gamepad virtuale per i giochi Windows, quindi i giochi leggono il pad da soli. Disattivalo solo per usare la rimappatura dei tasti di Steam Input."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "默认开启。Mac 版 Steam 没有适用于 Windows 游戏的虚拟手柄,所以游戏自己读取手柄。仅在需要 Steam Input 的按键映射时才关闭。"+ }+ }+ }+ },+ "Only on native Mac games, next to Metal HUD and Frame Generation. Raw HID suits Unity, SDL and Unreal games, GameController uses Apple's framework, and Off leaves controllers alone." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Solo per i giochi nativi per Mac, accanto a Metal HUD e Generazione fotogrammi. Raw HID va bene per i giochi Unity, SDL e Unreal, GameController usa il framework di Apple e Disattivato lascia stare i controller."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "仅限原生 Mac 游戏,位于 Metal HUD 和帧生成旁边。Raw HID 适合 Unity、SDL 和 Unreal 游戏,GameController 使用 Apple 的框架,关闭则不处理控制器。"+ }+ }+ }+ },+ "Open %@" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apertura di %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开%@"+ }+ }+ }+ },+ "Open Apple Downloads" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri i download di Apple"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开 Apple 下载页面"+ }+ }+ }+ },+ "Open CrossOver to activate it." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri CrossOver per attivarlo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请打开 CrossOver 完成激活。"+ }+ }+ }+ },+ "Open Input Monitoring" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri Monitoraggio input"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开“输入监控”"+ }+ }+ }+ },+ "Open Log" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri il log"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开日志"+ }+ }+ }+ },+ "Open Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开 Steam"+ }+ }+ }+ },+ "Open Steam and press Play on any Windows game." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri Steam e premi Gioca su un qualsiasi gioco Windows."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开 Steam,然后在任意 Windows 游戏上点击“开始游戏”。"+ }+ }+ }+ },+ "Open Steam, install a Windows game and press Play. Status, Prefixes and Prefix Backups in this window change engines, fix a game or undo everything." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri Steam, installa un gioco Windows e premi Gioca. Da Stato, Prefissi e Backup dei prefissi in questa finestra puoi cambiare motore, sistemare un gioco o annullare tutto."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开 Steam,安装一款 Windows 游戏并点击“开始游戏”。在此窗口的“状态”“游戏容器”和“游戏容器备份”中,你可以切换引擎、修复游戏或撤销所有更改。"+ }+ }+ }+ },+ "Open System Settings" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apri Impostazioni di Sistema"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "打开系统设置"+ }+ }+ }+ },+ "Opened %@ in %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Aperto %1$@ in %2$@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已在“%2$@”中打开%1$@。"+ }+ }+ }+ },+ "Optional. If you skip it, games use DXMT, which runs DirectX 10 and 11 games only. You can add the toolkit later from Status." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Facoltativo. Se lo salti, i giochi usano DXMT, che esegue solo giochi DirectX 10 e 11. Potrai aggiungere il toolkit più tardi da Stato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "可选。若跳过,游戏将使用 DXMT,它只能运行 DirectX 10 和 11 游戏。你之后可以在“状态”中添加该工具包。"+ }+ }+ }+ },+ "Overlay shim" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Shim dell'overlay"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏叠加层适配组件"+ }+ }+ }+ },+ "Patch ntdll" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Patch di ntdll"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "修补 ntdll"+ }+ }+ }+ },+ "Patch the compatibility tool" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Patch dello strumento di compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "修补兼容工具"+ }+ }+ }+ },+ "Patched components are missing." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mancano componenti con la patch."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "缺少已修补的组件。"+ }+ }+ }+ },+ "Patching" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Applicazione della patch"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在应用补丁"+ }+ }+ }+ },+ "Please run CrossOver and try again." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Avvia CrossOver e riprova."}},"zh-Hans" : {@@@ -6503,103 -3044,7 +6567,135 @@@"it" : {"stringUnit" : {"state" : "translated",- "value" : "Sostituisce le DLL usate da CrossOver con quelle adatte al tuo strumento di compatibilità."+ "value" : "Ricostruire il prefisso di %1$@%2$@?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "重建“%@”的游戏容器%@?"+ }+ }+ }+ },++ "Rebuilding the prefix" : {++ "localizations" : {++ "it" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "Ricostruzione del prefisso"++ }++ },++ "zh-Hans" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "正在重建游戏容器"++ }++ }++ }++ },++ "Rebuilding…" : {++ "localizations" : {++ "it" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "Ricostruzione…"++ }++ },++ "zh-Hans" : {++ "stringUnit" : {++ "state" : "translated",++ "value" : "正在重建…"++ }++ }++ }++ },+ "Rebuilt %lld prefixes." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricostruiti %lld prefissi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已重建 %lld 个游戏容器。"+ }+ }+ }+ },+ "Rebuilt %lld prefixes. Each original is kept beside the game's prefix. Check that your saves are present in the games, then delete the backups to save space." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricostruiti %lld prefissi. Ogni originale è conservato accanto al prefisso del gioco. Controlla che i salvataggi siano presenti nei giochi, poi elimina i backup per liberare spazio."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已重建 %lld 个游戏容器。各原容器均保存在对应游戏容器旁。请先进入游戏确认存档正常,再删除备份以释放空间。"+ }+ }+ }+ },+ "Rebuilt the prefix for %@." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricostruito il prefisso di %@."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已重建“%@”的游戏容器。"+ }+ }+ }+ },+ "Rebuilt the prefix for %@. The original is at %@. Check that your save is present in the game, then delete the backup to save space." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricostruito il prefisso di %1$@. L'originale è in %2$@. Controlla che il salvataggio sia presente nel gioco, poi elimina il backup per liberare spazio."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已重建“%@”的游戏容器。原容器保存在 %@。请先进入游戏确认存档正常,再删除备份以释放空间。"+ }+ }+ }+ },+ "Record prefix build" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Registra la build del prefisso"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "记录容器版本"+ }+ }+ }+ },+ "Recreate prefix" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ricostruzione del prefisso"}},"zh-Hans" : {diff --cc app/Sources/BridgeplayApp/Support/Launch.swiftindex 61f43f3,48ee491..9629bff--- a/app/Sources/BridgeplayApp/Support/Launch.swift+++ b/app/Sources/BridgeplayApp/Support/Launch.swift@@@ -3,42 -3,143 +3,181 @@@ import Foundatio@mainenum Launch {static func main() {- if CommandLine.arguments.dropFirst().first == RebuildPrefixCommand.flag {- // Out of the launching process group, so stopping the game in Steam cannot take- // the rebuild with it.- _ = setsid()+ // A game launch is waiting on this one: post and leave before anything else runs.+ if let parts = NotifyCommand.requested() { NotifyCommand.run(parts) }++ let rebuilding = CommandLine.arguments.dropFirst().first == RebuildPrefixCommand.flag++ // Out of the launching process group, so stopping the game in Steam cannot take++ // the rebuild with it.++ if rebuilding { _ = setsid() }+ // Before anything opens the support folder: the 3.0.0 move needs the old one intact.+ MainActor.assumeIsolated { MigrationLaunch.shared.runAtLaunch() }+ #if DEBUG+ if CommandLine.arguments.dropFirst().contains(SetupPreviewApp.flag) {+ SetupPreviewApp.main()+ return+ }+ #endif+ // The command line paths log as well, so a scripted run leaves the same trail.+ AppLog.start()+ MainActor.assumeIsolated { MigrationLaunch.shared.logLaunchResult() }++ if rebuilding {++ AppLog.note("command line: \(RebuildPrefixCommand.flag)")++ refuseWhileMigrating()+ let arguments = Array(CommandLine.arguments.dropFirst(2))+ if RebuildProgressCommand.requested { RebuildProgressCommand.run(arguments) }+ do {+ try RebuildPrefixCommand.run(arguments)- exit(0)++ exit(AppLog.finished(0))+ } catch {++ AppLog.note("rebuild prefix failed: \(error.localizedDescription)")+ FileHandle.standardError.write(Data("\(error.localizedDescription)\n".utf8))- exit(1)++ exit(AppLog.finished(1))+ }+ }if CommandLine.arguments.dropFirst().contains(RemoveEverythingCommand.flag) {+ AppLog.note("command line: \(RemoveEverythingCommand.flag)")RemoveEverythingCommand.run()}- NotProtonApp.main()+ if CommandLine.arguments.dropFirst().contains(InstallIntoSteamCommand.flag) {+ AppLog.note("command line: \(InstallIntoSteamCommand.flag)")+ refuseWhileMigrating()+ InstallIntoSteamCommand.run()+ }+ if CommandLine.arguments.dropFirst().contains(SetupWinecxCommand.flag) {+ AppLog.note("command line: \(SetupWinecxCommand.flag)")+ refuseWhileMigrating()+ SetupWinecxCommand.run()+ }+ BridgeplayApp.main()+ }++ // The installs write the new support folder, which the pending 3.0 move must find as+ // it left it, so they wait for it like the app's own buttons do.+ private static func refuseWhileMigrating() {+ guard let refusal = MainActor.assumeIsolated({ MigrationLaunch.shared.refusal }) else { return }+ AppLog.note("command line refused: the 3.0 folder move is pending")+ FileHandle.standardError.write(Data("\(refusal)\n".utf8))+ exit(AppLog.finished(1))}}++ enum RebuildPrefixCommand {+ static let flag = "--rebuild-prefix"+ static let executableRecord = "app-executable"++ struct Request {+ let prefix: WinePrefix+ let tool: InstalledTool+ let keepBackup: Bool+ }++ static func request(_ arguments: [String], tools: [InstalledTool]) throws -> Request {+ func refused(_ detail: String) -> StepFailure {+ StepFailure(step: "Rebuild prefix", detail: detail)+ }+ guard arguments.count == 5,+ ["keep-backup", "discard-backup"].contains(arguments[4]),+ arguments[0].hasPrefix("/")+ else { throw refused("Invalid rebuild arguments.") }+ let root = URL(filePath: arguments[0]).standardizedFileURL+ let appID = root.lastPathComponent+ let compatdata = root.deletingLastPathComponent()+ let steamapps = compatdata.deletingLastPathComponent()+ guard !appID.isEmpty, appID.utf8.allSatisfy({ (48...57).contains($0) }),+ compatdata.lastPathComponent == "compatdata", steamapps.lastPathComponent == "steamapps",+ FileManager.default.fileExists(atPath: root.appending(path: "pfx").path(percentEncoded: false))+ else { throw refused("The game prefix could not be found under steamapps/compatdata.") }+ guard let tool = tools.first(where: {+ $0.name == arguments[1] && $0.build == arguments[2] && $0.tool.flavor.rawValue == arguments[3]- }) else { throw refused("The selected compatibility tool is unavailable. Set it up in NotProton first.") }++ }) else { throw refused("The selected compatibility tool is unavailable. Set it up in Bridgeplay first.") }+ let library = SteamLibrary(root: steamapps.deletingLastPathComponent())+ return Request(+ prefix: WinePrefix(appID: appID, name: PrefixStore.appName(appID: appID, in: library),+ library: library, lastUsed: nil),+ tool: tool, keepBackup: arguments[4] == "keep-backup"+ )+ }++ // Phase, then this process's pid. The dylib reads it for the Compatibility page and takes- // a pid that is gone as a rebuild that died.++ // a pid that is gone as a rebuild that died. The notproton-* names are shared with the++ // dylib and the run script.+ static let statusName = "notproton-rebuild"+ static let rebuildLockName = ".notproton-rebuild.lock"++ static func run(+ _ arguments: [String], tools: () -> [InstalledTool] = { CompatToolList.installed() },+ observe: (String?, RebuildPhase) -> Void = { _, _ in }+ ) throws {+ let name = try request(arguments, tools: tools()).prefix.name+ let status = arguments.first.flatMap(statusFile)+ // One rebuild per prefix. A second one exits before it can overwrite the first one's+ // progress with a failure that is not the first one's.+ let held = try status.map { try claimRebuild(beside: $0) } ?? -1+ defer { if held >= 0 { FileLock.release(held) } }+ func report(_ phase: String) {+ guard let status else { return }+ try? atomicReplace(status, with: Data("\(phase)\n\(getpid())\n".utf8), step: "Record rebuild progress")+ }+ report(RebuildPhase.settingUp.rawValue)+ observe(name, .settingUp)+ do {+ // Another game's rebuild or an install holds this. Waiting keeps the page on+ // "Rebuilding prefix" rather than failing a rebuild that only had to queue.+ let lock = try DeploymentContent.acquireInstallationLock(waiting: true)+ defer { lock.release() }+ let request = try request(arguments, tools: tools())+ let kept = try PrefixTools.recreate(+ request.prefix, as: request.tool, keepBackup: request.keepBackup,+ progress: { report($0.rawValue); observe(name, $0) })+ // A rebuild answers the crash the run script was tracking.+ try? FileManager.default.removeItem(at: request.prefix.root.appending(path: "notproton-switch"))+ report(kept != nil ? "done-backup" : "done")+ } catch {+ report("failed")+ throw error+ }+ }++ static func claimRebuild(beside status: URL) throws -> Int32 {+ let path = status.deletingLastPathComponent().appending(path: rebuildLockName)+ let fd = open(path.path(percentEncoded: false), O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC, 0o600)+ var claimed = fd >= 0 && flock(fd, LOCK_EX | LOCK_NB) == 0+ let deadline = ProcessInfo.processInfo.systemUptime + 1+ while fd >= 0 && !claimed && errno == EWOULDBLOCK && ProcessInfo.processInfo.systemUptime < deadline {+ Thread.sleep(forTimeInterval: 0.02)+ claimed = flock(fd, LOCK_EX | LOCK_NB) == 0+ }+ guard claimed else {+ if fd >= 0 { close(fd) }+ throw StepFailure(step: "Rebuild prefix", detail: "Another rebuild of this prefix is running.")+ }+ return fd+ }++ static func statusFile(_ path: String) -> URL? {+ guard path.hasPrefix("/") else { return nil }+ let root = URL(filePath: path).standardizedFileURL+ var isDirectory: ObjCBool = false+ guard root.deletingLastPathComponent().lastPathComponent == "compatdata",+ root.deletingLastPathComponent().deletingLastPathComponent().lastPathComponent == "steamapps",+ !root.lastPathComponent.isEmpty,+ root.lastPathComponent.utf8.allSatisfy({ (48...57).contains($0) }),+ FileManager.default.fileExists(atPath: root.path(percentEncoded: false), isDirectory: &isDirectory),+ isDirectory.boolValue+ else { return nil }+ return root.appending(path: statusName)+ }++ static func recordExecutable(_ executable: URL, in support: URL) throws {+ // A translocated copy or a mounted disk image is gone by the next launch, so nothing+ // recorded from there would still run.+ let readOnly = (try? executable.resourceValues(forKeys: [.volumeIsReadOnlyKey]))?.volumeIsReadOnly == true+ if readOnly || executable.pathComponents.contains("AppTranslocation") {- AppLog.note("install: NotProton runs from \(executable.path), so Steam cannot start rebuilds")++ AppLog.note("install: Bridgeplay runs from \(executable.path), so Steam cannot start rebuilds")+ try? FileManager.default.removeItem(at: support.appending(path: executableRecord))+ return+ }+ try atomicReplace(support.appending(path: executableRecord),- with: Data(executable.path(percentEncoded: false).utf8), step: "Record NotProton app")++ with: Data(executable.path(percentEncoded: false).utf8), step: "Record Bridgeplay app")+ }+ }diff --cc app/Sources/BridgeplayApp/Support/RebuildProgressWindow.swiftindex 0000000,1a6b650..5853cb6mode 000000,100644..100644--- a/app/Sources/BridgeplayApp/Support/RebuildProgressWindow.swift+++ b/app/Sources/BridgeplayApp/Support/RebuildProgressWindow.swift@@@ -1,0 -1,121 +1,121 @@@+ import AppKit++ // A rebuild started from Play runs while Steam shows the game as running, with nothing+ // else on screen saying why it has not started. The Compatibility page shows its own+ // progress, so only the run script asks for this.+ enum RebuildProgressCommand {+ static let environmentKey = "NOTPROTON_REBUILD_WINDOW"++ static var requested: Bool { ProcessInfo.processInfo.environment[environmentKey] == "1" }++ // Never returns. The rebuild runs off the main thread, which AppKit needs for the window.+ static func run(_ arguments: [String]) -> Never {+ MainActor.assumeIsolated {+ let app = NSApplication.shared+ app.setActivationPolicy(.accessory)+ let window = RebuildProgressWindow()+ DispatchQueue.main.async { MainActor.assumeIsolated { window.present() } }+ Thread.detachNewThread {+ var code: Int32 = 0+ do {+ try RebuildPrefixCommand.run(arguments, observe: { name, phase in+ DispatchQueue.main.async {+ MainActor.assumeIsolated { window.show(game: name, phase: phase) }+ }+ })+ } catch {+ FileHandle.standardError.write(Data("\(error.localizedDescription)\n".utf8))+ code = 1+ }+ DispatchQueue.main.async { exit(code) }+ }+ app.run()+ }+ exit(1)+ }+ }++ // Laid out like the alert that asked for the rebuild, so the one reads as following the other.+ @MainActor+ final class RebuildProgressWindow {+ private static let width: CGFloat = 440+ private static let textWidth: CGFloat = width - 20 - 64 - 16 - 20++ private let panel: NSPanel+ private let message = NSTextField(wrappingLabelWithString: "")+ private let phase = NSTextField(labelWithString: "")+ private let bar = NSProgressIndicator()++ init() {+ panel = NSPanel(contentRect: NSRect(x: 0, y: 0, width: Self.width, height: 120),+ styleMask: [.titled], backing: .buffered, defer: false)+ panel.title = String(localized: "Rebuilding the prefix")+ panel.level = .floating+ panel.isReleasedWhenClosed = false+ // macOS may refuse to activate a background helper while Steam is in front, and a+ // panel that hides on deactivate then never shows.+ panel.hidesOnDeactivate = false++ let icon = NSImageView(image: NSApp.applicationIconImage)+ icon.imageScaling = .scaleProportionallyUpOrDown+ icon.setAccessibilityElement(false)+ message.font = .systemFont(ofSize: NSFont.systemFontSize)+ message.preferredMaxLayoutWidth = Self.textWidth+ message.maximumNumberOfLines = 3+ message.lineBreakMode = .byWordWrapping+ message.cell?.truncatesLastVisibleLine = true+ phase.font = .systemFont(ofSize: NSFont.smallSystemFontSize)+ phase.textColor = .secondaryLabelColor+ bar.style = .bar+ bar.isIndeterminate = true+ bar.startAnimation(nil)++ let text = NSStackView(views: [message, bar, phase])+ text.orientation = .vertical+ text.alignment = .leading+ text.spacing = 8+ text.setCustomSpacing(12, after: message)+ let content = NSView()+ for view in [icon, text] as [NSView] {+ view.translatesAutoresizingMaskIntoConstraints = false+ content.addSubview(view)+ }+ NSLayoutConstraint.activate([+ content.widthAnchor.constraint(equalToConstant: Self.width),+ icon.widthAnchor.constraint(equalToConstant: 64),+ icon.heightAnchor.constraint(equalToConstant: 64),+ icon.leadingAnchor.constraint(equalTo: content.leadingAnchor, constant: 20),+ icon.topAnchor.constraint(equalTo: content.topAnchor, constant: 20),+ text.leadingAnchor.constraint(equalTo: icon.trailingAnchor, constant: 16),+ text.trailingAnchor.constraint(equalTo: content.trailingAnchor, constant: -20),+ text.topAnchor.constraint(equalTo: content.topAnchor, constant: 20),+ bar.widthAnchor.constraint(equalTo: text.widthAnchor),+ message.widthAnchor.constraint(equalTo: text.widthAnchor),+ content.bottomAnchor.constraint(greaterThanOrEqualTo: icon.bottomAnchor, constant: 20),+ content.bottomAnchor.constraint(greaterThanOrEqualTo: text.bottomAnchor, constant: 20),+ ])+ panel.contentView = content+ show(game: nil, phase: .settingUp)+ panel.center()+ }++ // Ordering the panel front before the application has finished launching leaves it+ // off screen, so this waits for the run loop.+ func present() {+ panel.orderFrontRegardless()+ NSApp.activate()+ }++ func show(game name: String?, phase current: RebuildPhase) {+ message.stringValue = name.map {- String(localized: "NotProton is rebuilding the prefix for \($0).")- } ?? String(localized: "NotProton is rebuilding this game's prefix.")++ String(localized: "Bridgeplay is rebuilding the prefix for \($0).")++ } ?? String(localized: "Bridgeplay is rebuilding this game's prefix.")+ phase.stringValue = switch current {+ case .settingUp: String(localized: "Rebuilding…")+ case .copying: String(localized: "Copying your files…")+ case .finishing: String(localized: "Finishing…")+ }+ bar.setAccessibilityLabel(phase.stringValue)+ panel.setContentSize(panel.contentView?.fittingSize ?? panel.frame.size)+ }+ }diff --cc app/Tests/BridgeplayAppTests/PrefixToolsTests.swiftindex b70f8c0,5caf25c..55de58e--- a/app/Tests/BridgeplayAppTests/PrefixToolsTests.swift+++ b/app/Tests/BridgeplayAppTests/PrefixToolsTests.swift@@@ -411,8 -353,10 +411,15 @@@ struct PrefixToolsTests#expect(helper.upperBound == gate.lowerBound)#expect(gate.upperBound < alert.lowerBound)- // The first-launch notice uses osascript too, but as a notification, not an alert.- #expect(source.ranges(of: "display alert").count == 1, "an alert bypasses show_alert")- #expect(source.ranges(of: "osascript").count == 3)++ // The first-launch notice uses osascript too, but as a notification, not an alert. The++ // rebuild failure alert and the rebuild prompt carry their own gates.++ #expect(source.ranges(of: "display alert").count == 2, "an alert bypasses show_alert")++ #expect(source.ranges(of: "osascript").count == 5)+ let rebuild = try #require(source.range(of: "rebuild_prefix() {"))+ let prompt = try #require(source.range(of: "choice=$(osascript"))+ #expect(source[rebuild.upperBound..<prompt.lowerBound].contains(#"[ "$verb" != run ] || { [ -n "$3" ] && return 0; exit 1; }"#))++ let failure = try #require(source.range(of: "show_rebuild_failure() {\n"))++ #expect(source[failure.upperBound...].hasPrefix(#" [ "$verb" != run ] || return 0"#))let calls = source.ranges(of: " show_alert \"")#expect(!calls.isEmpty)@@@ -424,6 -368,129 +431,129 @@@}}+ @Test("Steam rebuild requests use the exact selected tool and library", arguments: [true, false])+ func steamRebuildRequest(keepBackup: Bool) throws {+ let (dir, _, prefix) = try usedPrefixAndRunner()+ defer { try? FileManager.default.removeItem(at: dir) }+ let selected = InstalledTool(tool: CompatTool(name: "chosen", flavor: .rosetta, display: "Chosen"), build: "chosen-build")+ let other = InstalledTool(tool: CompatTool(name: "old", flavor: .fex, display: "Old"), build: "old-build")+ let args = [prefix.root.path(percentEncoded: false), selected.name, selected.build,+ selected.tool.flavor.rawValue, keepBackup ? "keep-backup" : "discard-backup"]+ let request = try RebuildPrefixCommand.request(args, tools: [other, selected])+ #expect(request.prefix.root == prefix.root)+ #expect(request.tool == selected)+ #expect(request.keepBackup == keepBackup)+ for index in 0..<args.count {+ var invalid = args+ invalid[index] = "invalid"+ #expect(throws: StepFailure.self) { try RebuildPrefixCommand.request(invalid, tools: [selected]) }+ }+ #expect(throws: StepFailure.self) { try RebuildPrefixCommand.request([], tools: [selected]) }+ #expect(throws: StepFailure.self) { try RebuildPrefixCommand.request(args + ["extra"], tools: [selected]) }+ #expect(throws: StepFailure.self) { try RebuildPrefixCommand.request(args, tools: []) }+ }++ @Test("A selected-tool rebuild preserves saves and records the selected build", arguments: [true, false])+ func steamRebuildSelectedTool(keepBackup: Bool) throws {+ let (dir, runner, prefix) = try usedPrefixAndRunner()+ defer { try? FileManager.default.removeItem(at: dir) }+ let tool = InstalledTool(tool: CompatTool(name: "chosen", flavor: .rosetta, display: "Chosen"), build: "chosen-build")+ let runners = dir.appending(path: "runners")+ let target = SupportPaths.clonedRoot(forBuild: tool.build, runners: runners)+ try FileManager.default.createDirectory(at: target.deletingLastPathComponent(), withIntermediateDirectories: true)+ try FileManager.default.moveItem(at: runner, to: target)+ let claim = try #require(PrefixStore.claim(prefix))+ #expect(throws: StepFailure.self) {+ try PrefixTools.recreate(prefix, as: tool, runners: runners, keepBackup: keepBackup)+ }+ #expect(PrefixTools.buildRecord(of: prefix) == nil)+ #expect(PrefixStore.backups(of: prefix).isEmpty)+ claim.release()+ var phases: [RebuildPhase] = []+ let backup = try PrefixTools.recreate(+ prefix, as: tool, runners: runners, keepBackup: keepBackup, progress: { phases.append($0) })+ #expect(phases == [.settingUp, .copying, .finishing])+ #expect((backup != nil) == keepBackup)+ #expect(PrefixStore.backups(of: prefix).count == (keepBackup ? 1 : 0))+ #expect(PrefixTools.buildRecord(of: prefix)?.build == tool.build)+ let save = prefix.pfx.appending(path: "drive_c/users/steamuser/AppData/Roaming/game/save.dat")+ #expect(try String(contentsOf: save, encoding: .utf8) == "save")+ }++ @Test("Rebuild progress lands beside the prefix and nowhere else")+ func rebuildStatusFile() throws {+ let dir = FileManager.default.temporaryDirectory.appending(path: "np-status-\(UUID().uuidString)")+ defer { try? FileManager.default.removeItem(at: dir) }+ let root = dir.appending(path: "steamapps/compatdata/480")+ try FileManager.default.createDirectory(at: root, withIntermediateDirectories: true)+ #expect(RebuildPrefixCommand.statusFile(root.path(percentEncoded: false))+ == root.standardizedFileURL.appending(path: "notproton-rebuild"))+ #expect(RebuildPrefixCommand.statusFile("relative/compatdata/480") == nil)+ #expect(RebuildPrefixCommand.statusFile(dir.path(percentEncoded: false)) == nil)+ #expect(RebuildPrefixCommand.statusFile(root.appending(path: "missing").path(percentEncoded: false)) == nil)+ }++ @Test("A second rebuild of a prefix is refused and leaves the first one's progress alone")+ func secondRebuildIsRefused() throws {+ let dir = FileManager.default.temporaryDirectory.appending(path: "np-second-\(UUID().uuidString)")+ defer { try? FileManager.default.removeItem(at: dir) }+ let root = dir.appending(path: "steamapps/compatdata/480")+ try FileManager.default.createDirectory(at: root, withIntermediateDirectories: true)+ let status = try #require(RebuildPrefixCommand.statusFile(root.path(percentEncoded: false)))+ try Data("copy\n4242\n".utf8).write(to: status)++ let first = try RebuildPrefixCommand.claimRebuild(beside: status)+ defer { FileLock.release(first) }+ try FileManager.default.createDirectory(at: root.appending(path: "pfx"), withIntermediateDirectories: true)+ let tool = InstalledTool(tool: CompatTool(name: "t", flavor: .rosetta, display: "T"), build: "b")+ #expect(throws: StepFailure.self) {+ try RebuildPrefixCommand.run([root.path(percentEncoded: false), "t", "b", "rosetta", "keep-backup"], tools: { [tool] })+ }+ #expect(try String(contentsOf: status, encoding: .utf8) == "copy\n4242\n")+ }++ @Test("Invalid rebuild requests create no progress or lock files")+ func invalidRebuildWritesNothing() throws {+ let (dir, _, prefix) = try usedPrefixAndRunner()+ defer { try? FileManager.default.removeItem(at: dir) }+ #expect(throws: StepFailure.self) {+ try RebuildPrefixCommand.run([prefix.root.path, "missing", "b", "fex", "keep-backup"], tools: { [] })+ }+ for name in [RebuildPrefixCommand.statusName, RebuildPrefixCommand.rebuildLockName] {+ #expect(!FileManager.default.fileExists(atPath: prefix.root.appending(path: name).path))+ }+ }++ @Test("A translocated rebuild app is not recorded as a persistent path")+ func translocatedRebuildAppIsNotRecorded() throws {+ let dir = FileManager.default.temporaryDirectory.appending(path: "np-helper-\(UUID().uuidString)")+ defer { try? FileManager.default.removeItem(at: dir) }- let source = dir.appending(path: "AppTranslocation/id/d/NotProton.app/Contents/MacOS/NotProtonApp")++ let source = dir.appending(path: "AppTranslocation/id/d/Bridgeplay.app/Contents/MacOS/BridgeplayApp")+ let support = dir.appending(path: "support")+ try FileManager.default.createDirectory(at: source.deletingLastPathComponent(), withIntermediateDirectories: true)+ try FileManager.default.createDirectory(at: support, withIntermediateDirectories: true)+ try Data("stale".utf8).write(to: support.appending(path: RebuildPrefixCommand.executableRecord))+ try RebuildPrefixCommand.recordExecutable(source, in: support)+ #expect(!FileManager.default.fileExists(atPath: support.appending(path: RebuildPrefixCommand.executableRecord).path))+ }++ @Test("A queued installation lock times out without disturbing its holder")+ func rebuildLockWaitIsBounded() throws {+ let dir = FileManager.default.temporaryDirectory.appending(path: "np-wait-\(UUID().uuidString)")+ try FileManager.default.createDirectory(at: dir, withIntermediateDirectories: true)+ defer { try? FileManager.default.removeItem(at: dir) }+ let held = try DeploymentContent.acquireInstallationLock(in: dir, steamFolder: nil)+ defer { held.release() }+ let start = ProcessInfo.processInfo.systemUptime+ #expect(throws: StepFailure.self) {+ try DeploymentContent.acquireInstallationLock(in: dir, steamFolder: nil, waiting: true, waitTimeout: 0.1)+ }+ #expect(ProcessInfo.processInfo.systemUptime - start < 2)+ #expect(throws: StepFailure.self) {+ try DeploymentContent.acquireInstallationLock(in: dir, steamFolder: nil)+ }+ }+@Test("The Rosetta flavor takes the x86_64 tree on a runner that has both")func rosettaFlavorTakesX86() throws {let fm = FileManager.default@@@ -1615,11 -1682,11 +1745,11 @@@ struct PrefixLastBuildTestslet fex = try #require(SupportedRunners.all.first { $0.id == Self.preview })let both = SupportedRunners.tools(for: [fex])- #expect(PrefixTools.tool(for: prefix, among: both, runners: runners)?.name == "notproton-fex-rosetta")+ #expect(PrefixTools.tool(for: prefix, among: both, runners: runners)?.name == "bridgeplay-proton-fex-rosetta")}- @Test("A prefix another CrossOver updated gets no tool, so nothing runs over it")- func noToolForAnotherWine() throws {+ @Test("A prefix another CrossOver updated runs on an installed tool of its arch")+ func anotherWineFallsBackToItsArch() throws {let (dir, runners, prefix) = try makeWorld()defer { try? FileManager.default.removeItem(at: dir) }let release = try #require(SupportedRunners.all.first { $0.id == Self.release })diff --cc dylib/feats/compat_run.shindex 1038b6b,cdcf82d..8823932--- a/dylib/feats/compat_run.sh+++ b/dylib/feats/compat_run.sh@@@ -1044,6 -331,111 +1063,111 @@@ alert_safe()printf '%s' "$1" | tr -d '"\\'}+ # The log path reaches AppleScript as an argument, so a quote in it cannot end a string.+ show_rebuild_failure() {+ [ "$verb" != run ] || return 0+ exec 8>&- 9>&-+ answer=$(osascript - "$log" <<'APPLESCRIPT'+ on run argv- set answer to display alert "Prefix rebuild failed!" message ("Check notproton-run.log at " & (item 1 of argv) & ".") as critical buttons {"Open Log", "OK"} default button "OK"++ set answer to display alert "Prefix rebuild failed!" message ("Check bridgeplay-run.log at " & (item 1 of argv) & ".") as critical buttons {"Open Log", "OK"} default button "OK"+ return button returned of answer+ end run+ APPLESCRIPT+ ) || answer=""+ [ "$answer" != "Open Log" ] || { [ -f "$log" ] && [ ! -L "$log" ] && open -t "$log" >/dev/null 2>&1; } || true+ }++ # Steam shows the game as running while this waits, and Stop kills the script's process+ # group and children. A rebuild killed between its two renames leaves no pfx at all, so the+ # app runs outside both: the inner subshell is reparented to launchd and the app calls+ # setsid. The script only waits for the exit status the subshell leaves behind.+ run_rebuild() {+ rebuild_exit="$STEAM_COMPAT_DATA_PATH/notproton-rebuild-exit"+ rebuild_lock="$STEAM_COMPAT_DATA_PATH/.notproton-rebuild.lock"+ rm -f "$rebuild_exit"+ (+ (+ env -i HOME="$HOME" TMPDIR="${TMPDIR:-/tmp}" PATH=/usr/bin:/bin:/usr/sbin:/sbin \+ NOTPROTON_REBUILD_WINDOW=1 \+ "$1" --rebuild-prefix "$STEAM_COMPAT_DATA_PATH" "${np_tool_dir##*/}" \+ "$np_build" "$np_flavor" "$2" >> "$log" 2>&1 < /dev/null+ echo "$?" > "$rebuild_exit.$$" && mv -f "$rebuild_exit.$$" "$rebuild_exit"+ ) &+ )+ waited=0+ while [ ! -f "$rebuild_exit" ]; do+ sleep 1+ waited=$((waited + 1))+ # Nothing holds the lock once the app is gone. The grace covers its startup.+ if [ "$waited" -gt 30 ] && /usr/bin/lockf -s -t 0 "$rebuild_lock" true 2>/dev/null; then+ sleep 2+ [ -f "$rebuild_exit" ] || return 1+ fi+ done+ read -r rebuild_status_code < "$rebuild_exit" || rebuild_status_code=1+ rm -f "$rebuild_exit"+ [ "$rebuild_status_code" = 0 ]+ }++ # $1 is the title, $2 the message. With $3, that button skips the rebuild and the launch goes on.+ rebuild_prefix() {+ # Install-script helpers must never prompt or rebuild behind the player's back.+ [ "$verb" != run ] || { [ -n "$3" ] && return 0; exit 1; }+ [ "${np_rebuilt:-0}" != 1 ] || {+ show_rebuild_failure+ exit 1+ }+ exec 8>&- 9>&-+ # AppleScript run from a shell has no icon of its own, so caution comes badged with a folder.+ icon=$(cat "$np_support/app-executable" 2>/dev/null) || icon=""- icon="${icon%/Contents/MacOS/*}/Contents/Resources/NotProton.icns"++ icon="${icon%/Contents/MacOS/*}/Contents/Resources/Bridgeplay.icns"+ [ -f "$icon" ] || icon=""+ choice=$(osascript - "$1" "$2" "${3:-Cancel}" "$icon" <<'APPLESCRIPT'+ on run argv+ set choices to {item 3 of argv, "Rebuild Prefix", "Backup & Rebuild Prefix"}+ if item 4 of argv is "" then+ set answer to display dialog (item 2 of argv) with title (item 1 of argv) buttons choices default button "Backup & Rebuild Prefix" cancel button (item 3 of argv) with icon caution+ else+ set answer to display dialog (item 2 of argv) with title (item 1 of argv) buttons choices default button "Backup & Rebuild Prefix" cancel button (item 3 of argv) with icon ((POSIX file (item 4 of argv)) as alias)+ end if+ return button returned of answer+ end run+ APPLESCRIPT+ ) || choice=""+ case "$choice" in+ 'Backup & Rebuild Prefix') backup=keep-backup ;;+ 'Rebuild Prefix') backup=discard-backup ;;+ *)+ [ -n "$3" ] || exit 1+ prepare_prefix_directory || exit 1+ return 0+ ;;+ esac+ executable=$(cat "$np_support/app-executable" 2>/dev/null) || executable=""+ if [ ! -x "$executable" ]; then- show_alert "Couldn't find the NotProton app" "The prefix wasn't rebuilt and the game wasn't launched, because the NotProton app was moved or deleted since it was installed, or was installed from a disk image or Downloads. Move NotProton to Applications, open it and click Install again, then launch the game."++ show_alert "Couldn't find the Bridgeplay app" "The prefix wasn't rebuilt and the game wasn't launched, because the Bridgeplay app was moved or deleted since it was installed, or was installed from a disk image or Downloads. Move Bridgeplay to Applications, open it and click Install again, then launch the game."+ exit 1+ fi+ if ! run_rebuild "$executable" "$backup"; then+ # This dialog says it failed, so the page should not say it again later. A refusal+ # because another rebuild runs left that rebuild's progress, which stays.+ rebuild_status="$STEAM_COMPAT_DATA_PATH/notproton-rebuild"+ [ "$(head -n 1 "$rebuild_status" 2>/dev/null)" != failed ] || rm -f "$rebuild_status"+ show_rebuild_failure+ exit 1+ fi+ rm -f "$STEAM_COMPAT_DATA_PATH/notproton-switch" "$STEAM_COMPAT_DATA_PATH/notproton-rebuild"+ # A competing launch or rebuild may have run while the dialog was open.+ # Retake the normal launch lock and check both mismatches before touching Wine.+ if ! prepare_prefix_directory; then+ show_alert "Prefix rebuilt" "Another launch is using this prefix. Wait for it to finish, then launch the game again."+ exit 1+ fi+ np_rebuilt=1+ note_other_build+ refuse_foreign_prefix+ }+refuse_foreign_prefix() {case "${wine_unix##*/}" inaarch64-unix) want=aa64 ;;@@@ -1051,9 -443,19 +1175,19 @@@esachave=$(prefix_machine) || return 0[ "$have" = "$want" ] && return 0- echo "=== prefix ntdll is $have and this compatibility tool wants $want, rebuild the prefix in NotProton ===" >> "$log" 2>&1 || true+ echo "=== prefix ntdll is $have and this compatibility tool wants $want, rebuild the prefix in Bridgeplay ===" >> "$log" 2>&1 || true- show_alert "This game needs its prefix rebuilt" "This game originally ran under $(tool_name "$have"), but $(tool_name "$want") is present now. The prefix needs to be rebuilt in Bridgeplay in order to run the game. You will not lose game saves by rebuilding the prefix."- exit 1+ had_tool=$(tool_name "$have")+ want_tool=$(tool_name "$want")+ explanation="$had_tool prefixes cannot be used with versions of CrossOver that run through $want_tool unless they are rebuilt."+ # note_other_build read the build that set up the prefix.+ case "$have:$had_display" in+ aa64:?* | 8664:?*)+ explanation="This game's prefix was last used by $(running_name "$had_display" "$had_tool"). $explanation"+ ;;+ esac+ rebuild_prefix "This game needs its prefix rebuilt" "$explanation++ Do you want to rebuild the prefix for $(running_name "$np_display" "$want_tool")? Your save games will be preserved and not lost."}last_wine_build() {@@@ -1950,15 -1380,12 +2156,17 @@@ if [ -n "$STEAM_COMPAT_DATA_PATH" ]; thprintf '%s' "$WINEMSYNC" \> "$STEAM_COMPAT_DATA_PATH/notproton-msync" 2>/dev/null || truestage_step="prefix build check"- refuse_other_build+ note_other_buildstage_step="prefix arch check"refuse_foreign_prefix+ prefix_was_new=0+ [ -f "$WINEPREFIX/system.reg" ] || prefix_was_new=1claim_prefix+ find_client_root "$STEAM_COMPAT_CLIENT_INSTALL_PATH"+ note_prefix_volume+ note_other_prefixes+ stage_step="prefix switch check"+ offer_switch_rebuildecho "sync: WINEMSYNC=$WINEMSYNC from $msync_from" >> "$log" 2>&1 || trueif [ "${wine_unix##*/}" = aarch64-unix ]; thenecho "fex: FEX_X87REDUCEDPRECISION=$FEX_X87REDUCEDPRECISION from $fex_from" >> "$log" 2>&1 || true@@@ -2508,43 -1850,16 +2717,47 @@@ set --lsregister="/System/Library/Frameworks/CoreServices.framework/Versions/A"lsregister="$lsregister/Frameworks/LaunchServices.framework/Support/lsregister"[ -x "$lsregister" ] && "$lsregister" -f "$loader_app" >> "$log" 2>&1 || true+ np_started=$(date +%s)+ np_terminated=0-open -n -W -a "$loader_app" "$@" >> "$log" 2>&1 &+if [ "${NOTPROTON_LAUNCH_SERVICES:-0}" = "1" ]; then+ open -n -W -a "$loader_app" "$@" >> "$log" 2>&1 &+else+ # A bundle started by `open` is its own TCC responsible process, so every game+ # needed a separate Input Monitoring grant before controllers worked. Started+ # from here it stays attributed to Steam, which already holds that grant, and+ # macOS still takes the Dock name and icon from the enclosing bundle. env -i+ # with the same --env list keeps the environment `open` would have given it.+ count=$#+ i=0+ mode=vars+ while [ "$i" -lt "$count" ]; do+ arg=$1+ shift+ i=$((i + 1))+ case "$mode:$arg" in+ vars:--env)+ set -- "$@" "$1"+ shift+ i=$((i + 1))+ ;;+ vars:--args)+ mode=args+ set -- "$@" "$loader_app/Contents/MacOS/launcher"+ ;;+ args:*) set -- "$@" "$arg" ;;+ esac+ done+ echo "launching bundle directly so input permission stays with Steam" >> "$log" 2>&1 || true+ env -i HOME="$HOME" USER="$USER" LOGNAME="$LOGNAME" SHELL="$SHELL" TMPDIR="$TMPDIR" \+ __CF_USER_TEXT_ENCODING="$__CF_USER_TEXT_ENCODING" "$@" >> "$log" 2>&1 &+fiopen_pid=$!/usr/bin/caffeinate -d -i -w "$open_pid" >> "$log" 2>&1 &status=0wait "$open_pid" || status=$?echo "=== game exited status=$status, killing wine prefix ===" >> "$log" 2>&1 || truekill_wine_prefix+ [ -z "$STEAM_COMPAT_DATA_PATH" ] \- || record_session "$loader_root/notproton-wine.log" "$(($(date +%s) - np_started))" "$np_terminated"++ || record_session "$loader_root/bridgeplay-wine.log" "$(($(date +%s) - np_started))" "$np_terminated"echo "=== wine prefix killed, session ending ===" >> "$log" 2>&1 || trueexit $statusdiff --cc dylib/feats/compatsvc.cindex b6e2732,b722914..9d71504--- a/dylib/feats/compatsvc.c+++ b/dylib/feats/compatsvc.c@@@ -290,6 -308,179 +308,179 @@@ static int specify_compat_tool(uintptr_return RESULT_OK;}+ #define STATE_JSON_MAX 2048++ // Every path and tool is worked out here from the appid alone, since any page can call+ // these routes and two of them start processes.+ static int read_state(uint32_t appid, np_prefix_state_t *st) {+ const char *home = np_home_dir();+ uint8_t *mgr = (uint8_t *)np_compat_manager();+ if (!appid || !home || !mgr) {+ NP_WARN("compatsvc: no prefix state for app %u without %s", appid,+ !appid ? "an appid" : !home ? "a home folder" : "a manager");+ return 0;+ }+ char steam[PATH_MAX], support[PATH_MAX], server[PATH_MAX];+ snprintf(steam, sizeof steam, "%s/Library/Application Support/Steam", home);- snprintf(support, sizeof support, "%s/Library/Application Support/notproton", home);++ np_support_path(support, sizeof support, home, NULL);+ snprintf(server, sizeof server, "/tmp/.wine-%u", (unsigned)getuid());+ np_prefix_roots_t roots = { steam, support, server };+ np_prefix_state(appid, tool_name(np_compat_tool_for_app(mgr, appid)), &roots, st);+ return 1;+ }++ static uint32_t request_appid(uintptr_t request) {+ uint32_t has_bits = *(const uint32_t *)(request + REQ_HAS_BITS_OFF);+ return (has_bits & REQ_HAS_APPID) ? *(const uint32_t *)(request + REQ_APPID_OFF) : 0;+ }++ static int answer_json(uintptr_t response, uint32_t appid, const char *json) {+ uint8_t body[STATE_JSON_MAX + 8];+ np_pb_t w = { body, sizeof body, 0, 1 };+ pb_string(&w, RESP_DEFAULT, json);+ if (!w.ok || !np_webui_parse_into(response, body, (uint32_t)w.len)) {+ NP_ERR("compatsvc: the client rejected the answer for app %u", appid);+ return RESULT_FAIL;+ }+ return RESULT_OK;+ }++ // JSON for the CrossOver panel, in default_tool_identifier.+ static int prefix_state(uintptr_t request, uintptr_t response) {+ uint32_t appid = request_appid(request);+ np_prefix_state_t st;+ if (!read_state(appid, &st)) return RESULT_FAIL;++ char json[STATE_JSON_MAX];+ if (np_prefix_state_json(appid, &st, json, sizeof json) < 0) {+ NP_ERR("compatsvc: the prefix state for app %u does not fit %d bytes", appid,+ STATE_JSON_MAX);+ return RESULT_FAIL;+ }+ NP_DBG("compatsvc: app %u prefix state %s", appid, json);+ return answer_json(response, appid, json);+ }++ // Runs argv with nothing of Steam's environment, so neither the insert nor Steam's own+ // variables reach the child. Waits for it, which is short for everything started here.+ static int run_detached(char *const argv[]) {+ const char *home = np_home_dir();+ char env_home[PATH_MAX + 8], env_tmp[PATH_MAX + 8];+ snprintf(env_home, sizeof env_home, "HOME=%s", home ? home : "/");+ snprintf(env_tmp, sizeof env_tmp, "TMPDIR=%s", getenv("TMPDIR") ? getenv("TMPDIR") : "/tmp");+ char *envp[] = { env_home, env_tmp, "PATH=/usr/bin:/bin:/usr/sbin:/sbin", NULL };++ posix_spawn_file_actions_t actions;+ posix_spawnattr_t attr;+ sigset_t none, all;+ sigemptyset(&none);+ sigfillset(&all);+ if (posix_spawn_file_actions_init(&actions) != 0) return 0;+ if (posix_spawnattr_init(&attr) != 0) {+ posix_spawn_file_actions_destroy(&actions);+ return 0;+ }+ posix_spawn_file_actions_addopen(&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0);+ posix_spawn_file_actions_addopen(&actions, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);+ posix_spawn_file_actions_addopen(&actions, STDERR_FILENO, "/dev/null", O_WRONLY, 0);+ posix_spawnattr_setsigmask(&attr, &none);+ posix_spawnattr_setsigdefault(&attr, &all);+ posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK | POSIX_SPAWN_SETSIGDEF |+ POSIX_SPAWN_CLOEXEC_DEFAULT | POSIX_SPAWN_SETPGROUP);+ posix_spawnattr_setpgroup(&attr, 0);+ pid_t pid;+ int rc = posix_spawn(&pid, argv[0], &actions, &attr, argv, envp);+ posix_spawnattr_destroy(&attr);+ posix_spawn_file_actions_destroy(&actions);+ if (rc != 0) {+ NP_WARN("compatsvc: cannot run %s (%d)", argv[0], rc);+ return 0;+ }+ int status = 0;+ while (waitpid(pid, &status, 0) < 0 && errno == EINTR) {}+ return WIFEXITED(status) && WEXITSTATUS(status) == 0;+ }++ // The shell backgrounds the app and exits, so the rebuild belongs to launchd and outlives+ // both the page and Steam.+ #define REBUILD_SCRIPT \+ "log=$1; shift; \"$0\" --rebuild-prefix \"$@\" >> \"$log\" 2>&1 < /dev/null &"++ static int start_rebuild(uintptr_t request, uintptr_t response, int keep_backup) {+ uint32_t appid = request_appid(request);+ np_prefix_state_t st;+ if (!read_state(appid, &st)) return RESULT_FAIL;++ const char *refused = !st.needs_rebuild ? "none"+ : np_prefix_rebuilding(&st) ? "busy"+ : st.running ? "running"+ : !st.app[0] ? "app" : NULL;+ if (!refused) {+ char status[PATH_MAX], log[PATH_MAX], lock_path[PATH_MAX];+ snprintf(lock_path, sizeof lock_path, "%s/.notproton-rebuild.lock", st.compatdata);+ int claim = open(lock_path, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC, 0600);+ // A page polling the state holds this for a moment to see whether a rebuild runs.+ int claimed = claim >= 0 && flock(claim, LOCK_EX | LOCK_NB) == 0;+ for (int i = 0; claim >= 0 && !claimed && errno == EWOULDBLOCK && i < 10; i++) {+ usleep(10000);+ claimed = flock(claim, LOCK_EX | LOCK_NB) == 0;+ }+ if (!claimed) {+ if (claim >= 0) close(claim);+ return answer_json(response, appid, "{\"error\":\"busy\"}");+ }+ snprintf(status, sizeof status, "%s/notproton-rebuild", st.compatdata);- snprintf(log, sizeof log, "%s/notproton-run.log", st.compatdata);++ snprintf(log, sizeof log, "%s/bridgeplay-run.log", st.compatdata);+ int fd = open(status, O_WRONLY | O_CREAT | O_NOFOLLOW | O_NONBLOCK | O_CLOEXEC, 0600);+ struct stat info;+ int recorded = fd >= 0 && fstat(fd, &info) == 0 && S_ISREG(info.st_mode)+ && ftruncate(fd, 0) == 0 && write(fd, "setup\n0\n", 8) == 8;+ if (fd >= 0) close(fd);+ char *argv[] = { "/bin/sh", "-c", REBUILD_SCRIPT, st.app, log, st.compatdata,+ st.tool, st.tool_build, st.tool_flavor,+ keep_backup ? "keep-backup" : "discard-backup", NULL };+ if (!recorded) {+ refused = "spawn";+ } else if (!run_detached(argv)) {+ unlink(status);+ refused = "spawn";+ }+ close(claim);+ }+ if (refused)+ NP_WARN("compatsvc: app %u was not rebuilt (%s)", appid, refused);+ else+ NP_LOG("compatsvc: rebuilding app %u for %s, %s the original", appid, st.tool,+ keep_backup ? "keeping" : "discarding");++ char json[64];+ snprintf(json, sizeof json, refused ? "{\"error\":\"%s\"}" : "{\"started\":true}",+ refused ? refused : "");+ return answer_json(response, appid, json);+ }++ static int rebuild_prefix(uintptr_t request, uintptr_t response) {+ return start_rebuild(request, response, 0);+ }++ static int backup_and_rebuild_prefix(uintptr_t request, uintptr_t response) {+ return start_rebuild(request, response, 1);+ }++ static int open_prefix_log(uintptr_t request, uintptr_t response) {+ uint32_t appid = request_appid(request);+ np_prefix_state_t st;+ if (!read_state(appid, &st) || !st.compatdata[0]) return RESULT_FAIL;+ char log[PATH_MAX];- snprintf(log, sizeof log, "%s/notproton-run.log", st.compatdata);++ snprintf(log, sizeof log, "%s/bridgeplay-run.log", st.compatdata);+ // open waits on LaunchServices, which is not something Steam's WebUI thread should do.+ char *argv[] = { "/bin/sh", "-c", "/usr/bin/open -t \"$0\" &", log, NULL };+ struct stat info;+ int opened = lstat(log, &info) == 0 && S_ISREG(info.st_mode)+ && access(log, R_OK) == 0 && run_detached(argv);+ return answer_json(response, appid, opened ? "{\"opened\":true}" : "{\"error\":\"log\"}");+ }+static uintptr_t g_state_changed;static int g_routes = NP_COMPATSVC_UNTRIED;diff --cc dylib/feats/webpatch.cindex 8e342c5,82461e8..b219675--- a/dylib/feats/webpatch.c+++ b/dylib/feats/webpatch.c@@@ -289,39 -290,87 +294,113 @@@ static int out_expand(np_out_t *o, cons"Runs on Windows, no Mac OS version", \"Funziona su Windows, nessuna versione macOS")-// Rebuild row in the CrossOver panel. Chinese and Italian wait for a translator.++// Rebuild row in the CrossOver panel.+ // The row is redrawn on every poll, so the bar keeps its phase from when the rebuild started+ // instead of restarting on each redraw.-#define NP_PREFIX_NEED NP_WEB_TEXT("Switching to this compatibility tool requires a prefix rebuild. Rebuild now?", "Switching to this compatibility tool requires a prefix rebuild. Rebuild now?", "Switching to this compatibility tool requires a prefix rebuild. Rebuild now?")-#define NP_PREFIX_BACKUP NP_WEB_TEXT("Backup & Rebuild Prefix", "Backup & Rebuild Prefix", "Backup & Rebuild Prefix")-#define NP_PREFIX_REBUILD NP_WEB_TEXT("Rebuild Prefix", "Rebuild Prefix", "Rebuild Prefix")-#define NP_PREFIX_RUNNING NP_WEB_TEXT("Quit the game to rebuild.", "Quit the game to rebuild.", "Quit the game to rebuild.")-#define NP_PREFIX_SETUP NP_WEB_TEXT("Rebuilding prefix\\u2026", "Rebuilding prefix\\u2026", "Rebuilding prefix\\u2026")-#define NP_PREFIX_COPY NP_WEB_TEXT("Copying your files\\u2026", "Copying your files\\u2026", "Copying your files\\u2026")-#define NP_PREFIX_FINISH NP_WEB_TEXT("Finishing\\u2026", "Finishing\\u2026", "Finishing\\u2026")-#define NP_PREFIX_DONE NP_WEB_TEXT("Prefix rebuilt.", "Prefix rebuilt.", "Prefix rebuilt.")-#define NP_PREFIX_DONE_BACKUP NP_WEB_TEXT("Prefix rebuilt. A backup of the original is in NotProton's Prefixes view.", "Prefix rebuilt. A backup of the original is in NotProton's Prefixes view.", "Prefix rebuilt. A backup of the original is in NotProton's Prefixes view.")-#define NP_PREFIX_FAILED NP_WEB_TEXT("Prefix rebuild failed!", "Prefix rebuild failed!", "Prefix rebuild failed!")-#define NP_PREFIX_LOG NP_WEB_TEXT("Open Log", "Open Log", "Open Log")-#define NP_PREFIX_APP NP_WEB_TEXT("Couldn't find the NotProton app. Move NotProton to Applications, open it and click Install again.", "Couldn't find the NotProton app. Move NotProton to Applications, open it and click Install again.", "Couldn't find the NotProton app. Move NotProton to Applications, open it and click Install again.")++#define NP_PREFIX_NEED NP_WEB_TEXT("Switching to this compatibility tool requires a prefix rebuild. Rebuild now?", "切换到此兼容性工具需要重建游戏容器。现在重建吗?", "Per passare a questo strumento di compatibilità serve ricostruire il prefisso. Ricostruirlo ora?")++#define NP_PREFIX_BACKUP NP_WEB_TEXT("Backup & Rebuild Prefix", "备份并重建游戏容器", "Backup e ricostruisci prefisso")++#define NP_PREFIX_REBUILD NP_WEB_TEXT("Rebuild Prefix", "重建游戏容器", "Ricostruisci prefisso")++#define NP_PREFIX_RUNNING NP_WEB_TEXT("Quit the game to rebuild.", "请先退出游戏再重建。", "Chiudi il gioco per ricostruire.")++#define NP_PREFIX_SETUP NP_WEB_TEXT("Rebuilding prefix\\u2026", "正在重建游戏容器\\u2026", "Ricostruzione del prefisso\\u2026")++#define NP_PREFIX_COPY NP_WEB_TEXT("Copying your files\\u2026", "正在复制你的文件\\u2026", "Copia dei tuoi file\\u2026")++#define NP_PREFIX_FINISH NP_WEB_TEXT("Finishing\\u2026", "正在完成\\u2026", "Completamento\\u2026")++#define NP_PREFIX_DONE NP_WEB_TEXT("Prefix rebuilt.", "游戏容器已重建。", "Prefisso ricostruito.")++#define NP_PREFIX_DONE_BACKUP NP_WEB_TEXT("Prefix rebuilt. A backup of the original is in Bridgeplay's Prefixes view.", "游戏容器已重建。原容器的备份在 Bridgeplay 的“游戏容器”视图中。", "Prefisso ricostruito. Un backup dell'originale è nella vista Prefissi di Bridgeplay.")++#define NP_PREFIX_FAILED NP_WEB_TEXT("Prefix rebuild failed!", "游戏容器重建失败!", "Ricostruzione del prefisso non riuscita!")++#define NP_PREFIX_LOG NP_WEB_TEXT("Open Log", "打开日志", "Apri il log")++#define NP_PREFIX_APP NP_WEB_TEXT("Couldn't find the Bridgeplay app. Move Bridgeplay to Applications, open it and click Install again.", "找不到 Bridgeplay 应用。请将 Bridgeplay 移到“应用程序”文件夹,打开它并再次点击“安装”。", "Impossibile trovare l'app Bridgeplay. Sposta Bridgeplay in Applicazioni, aprila e fai di nuovo clic su Installa.")++ #define NP_CX_PREFIX_ROW \+ "globalThis.MSCXPrefixRow=(e,id)=>{if(e.npApp===id)return;e.npStop&&e.npStop();e.npApp=id;let ter" \+ "m='',busy=0,timer=0,t0=0,stopped=0,live=0;const T={need:" \+ NP_PREFIX_NEED \+ ",backup:" \+ NP_PREFIX_BACKUP \+ ",rebuild:" \+ NP_PREFIX_REBUILD \+ ",running:" \+ NP_PREFIX_RUNNING \+ ",setup:" \+ NP_PREFIX_SETUP \+ ",copy:" \+ NP_PREFIX_COPY \+ ",finish:" \+ NP_PREFIX_FINISH \+ ",done:" \+ NP_PREFIX_DONE \+ ",doneBackup:" \+ NP_PREFIX_DONE_BACKUP \+ ",failed:" \+ NP_PREFIX_FAILED \+ ",log:" \+ NP_PREFIX_LOG \+ ",app:" \+ NP_PREFIX_APP \+ "},el=(tag,cls,txt)=>{const n=e.ownerDocument.createElement(tag);if(cls)n.className=cls;if(txt!=n" \+ "ull)n.textContent=txt;return n},btn=(txt,main,off,on)=>{const b=el('button','MSCXBtn'+(main?' MS" \+ "CXMain':''),txt);b.disabled=!!off;b.onclick=on;return b},call=r=>MSCXRoute(r,id).then(j=>JSON.pa" \+ "rse(j||'{}')),refresh=()=>{if(stopped)return;if(!e.isConnected||e.npApp!==id)return stop();return MSCXRoute('NotProton.PrefixState#1',id).t" \+ "hen(j=>draw(JSON.parse(j))).catch(()=>{if(stopped||!e.isConnected||e.npApp!==id)return;clearTimeout(timer);if(busy||live)timer=setTimeout(refresh,500);else e.style.display='none'})},start=r=>{term='';busy=1;t0=Date.now();draw(null);cal" \+ "l(r).then(j=>{j.error==='spawn'&&(term='failed')},()=>0).finally(()=>{busy=0;refresh()})},pair=off=>{const r=el('div','MSCXBtns');r.app" \+ "end(btn(T.backup,1,off,()=>start('NotProton.BackupAndRebuildPrefix#1')),btn(T.rebuild,0,off,()=>" \+ "start('NotProton.RebuildPrefix#1')));return r},draw=s=>{if(stopped||!e.isConnected||e.npApp!==id)return;clearTimeout(timer);live=0;const ph=s?s.rebuild" \+ ":'',k=[];if(ph==='done'||ph==='done-backup'||ph==='failed')term=ph;if(busy||ph==='setup'||ph==='" \+ "copy'||ph==='finish'){k.push(el('div','',ph==='copy'?T.copy:ph==='finish'?T.finish:T.setup));con" \+ "st b=el('div','MSCXBar');t0||(t0=Date.now());const m=el('div','');m.style.animationDelay=-((Date.now()-t0)%1200)+'ms';b.append(m);k.push(b);live=1;timer=setTimeout(refresh,500)}else if((t0=0)||" \+ "term==='failed'){k.push(el('div','',T.failed));const r=el('div','MSCXBtns');r.append(btn(T.log,0" \+ ",0,()=>call('NotProton.OpenPrefixLog#1').catch(()=>0)));k.push(r);s&&s.needsRebuild&&s.app&&!s.r" \+ "unning&&k.push(pair(0))}else if(term)k.push(el('div','',term==='done-backup'?T.doneBackup:T.done" \+ "));else if(s&&s.needsRebuild){if(!s.app)k.push(el('div','',T.app));else{k.push(el('div','',s.run" \+ "ning?T.running:T.need),pair(s.running));s.running&&(timer=setTimeout(refresh,3e3))}}e.replaceChi" \+ "ldren(...k);e.style.display=k.length?'':'none'};e.style.flexDirection='column';e.style.gap='8px'" \+ ";e.style.display='none';const on=v=>{if(!e.isConnected)return e.npStop();v.detail===id&&!busy&&(" \+ "term='',refresh())};const stop=e.npStop=()=>{stopped=1;clearTimeout(timer);observer?.disconnect();globalThis.removeEventListener?.('mscxstat" \+ "e',on)};const observer=globalThis.MutationObserver?new globalThis.MutationObserver(()=>{if(!e.isConnected)stop()}):null;observer?.observe(e.ownerDocument,{childList:true,subtree:true});globalThis.addEventListener?.('mscxstate',on);refresh()};"+#define NP_CX_OPTIONS_CSS \"\".MSCXPanel{margin-top:10px}" \".MSCXPanel .MSCXRow{display:flex;flex-direction:row;padding:9px;margin:0;" \"color:#dfe3e6;background:rgba(59,63,72,.5);border-radius:3px}" \".MSCXPanel .MSCXRow:hover{box-shadow:0 6px 8px 0 rgba(0,0,0,.16)}" \+ ".MSCXPanel .MSCXDrop{display:flex;flex-direction:column;align-items:stretch;gap:6px;" \+ "padding:0;margin:10px 0;background:none}" \+ ".MSCXPanel .MSCXDrop>*{width:100%;max-width:none;margin:0}" \+ ".MSCXPanel .MSCXPath{align-items:center;gap:8px;margin-bottom:2px}" \+ ".MSCXPanel .MSCXPathText{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}" \+ ".MSCXPanel .MSCXDefault{color:#8b929a}" \+ ".MSCXPanel button.MSCXButton{width:auto;flex:none;margin:0;padding:0 14px;font-size:13px;line-height:28px}" \- ".MSCXNoBottomGap{margin-bottom:0}\""+ ".MSCXNoBottomGap{margin-bottom:0}" \+ ".MSCXBtns{display:flex;gap:8px}" \+ ".MSCXBtn{background:#3d4450;color:#fff;border:none;border-radius:2px;padding:6px 14px;" \+ "font-size:14px;cursor:pointer}.MSCXBtn:hover{background:#4c5361}" \+ ".MSCXBtn.MSCXMain{background:#1a9fff}.MSCXBtn.MSCXMain:hover{background:#47b4ff}" \+ ".MSCXBtn:disabled{opacity:.5;cursor:default}" \+ ".MSCXBtn:focus-visible{outline:2px solid #fff;outline-offset:1px}" \+ ".MSCXBar{position:relative;align-self:stretch;width:100%;height:4px;overflow:hidden;" \+ "border-radius:2px;background:rgba(255,255,255,.12)}" \+ ".MSCXBar>div{position:absolute;top:0;bottom:0;left:-30%;width:30%;background:#1a9fff;" \+ "animation:MSCXSlide 1.2s linear infinite}" \+ "@keyframes MSCXSlide{from{left:-30%}to{left:100%}}\""+// The Executable rows write a plain sh wrapper around %command%. It swaps the argument after+// waitforexitandrun for the chosen program and starts it from its folder or the Start In folder.+// Only that exact wrapper is read back, and nothing is written unless %command% is a bare word.+#define NP_CX_TARGET \+ "(o,id)=>{" \+ "const q=v=>\"'\"+v.replace(/'/g,\"'\\\\''\").replace(/%(?=command%)/gi,\"%'\\\"\\\"'\")+\"'\"," \+ "h=\"sh -c \"+q('exe=$1 dir=$2 found= prev=; shift 2; for arg in \"$@\"; do shift; '+" \+ "'if [ -z \"$found\" ] && [ \"$prev\" = waitforexitandrun ]; then arg=$exe found=1; fi; prev=$arg; set -- \"$@\" \"$arg\"; done; '+" \+ "'[ \"$found\" ] && cd \"${dir:-${exe%/*}/}\" && exec \"$@\"')+\" sh \"," \+ "at=o.indexOf(h)," \+ "m=at<0?null:/^('(?:[^']|'\\\\''|'\"\"')*') ('(?:[^']|'\\\\''|'\"\"')*') %command%/.exec(o.slice(at+h.length))," \+ "rd=v=>v.slice(1,-1).replace(/'\\\\''|'\"\"'/g,x=>x[1]===\"\\\\\"?\"'\":\"\")," \+ "b=m?o.slice(0,at)+\"%command%\"+o.slice(at+h.length+m[0].length):o;" \+ "return{ex:m?rd(m[1]):\"\",sd:m?rd(m[2]):\"\",write:(e,d)=>{" \+ "const B=/%command%/i.test(b)?b:\"%command%\"+(b.trim()?\" \"+b:\"\"),c=MSCXLaunch(B,id).c;" \+ "if(!c||!/^%command%$/i.test(B.slice(c.start,c.end)))return;" \+ "const r=B.slice(0,c.start)+(e?h+q(e)+\" \"+q(d)+\" %command%\":\"%command%\")+B.slice(c.end);" \+ "SteamClient.Apps.SetAppLaunchOptions(id,r.trim()===\"%command%\"?\"\":r)}}}"+// FEX runs arm64 Wine, which has no D3DMetal and never runs under Rosetta.#define NP_CX_OPTIONS_BODY(ARG, RT, BARREL) \ARG "=>{" \@@@ -419,15 -403,11 +498,16 @@@"{data:\"dxmt\",label:\"DXMT\"}," \"{data:\"dxvk\",label:\"DXVK\"}," \"{data:\"wined3d\",label:\"WineD3D\"}].filter(x=>!fex||x.data!==\"d3dmetal\");" \- "if(t.unAppID<2147483648&&(t.vecPlatforms||[]).indexOf(\"osx\")>=0" \- "&&!t.strCompatToolName)return null;" \+ "if(nat)return(0," RT ".jsx)(\"div\",{className:\"MSCXPanel\",children:(0," RT ".jsxs)(" RT ".Fragment,{children:[" \+ "(0," RT ".jsx)(\"style\",{children:" NP_CX_OPTIONS_CSS "})," \+ "T([\"MTL_HUD_ENABLED\"],\"Metal HUD\",\"1\"),FG()," \+ "(0," RT ".jsx)(" BARREL ".XY,{label:\"Controllers\",children:" \+ "D(\"NP_PAD_MODE\",\"Controller layer\",[{data:\"\",label:\"Automatic\"},{data:\"hid\",label:\"Raw HID (Unity, SDL, Unreal)\"}," \+ "{data:\"gc\",label:\"GameController\"},{data:\"off\",label:\"Off\"}],lc(\"\"))},\"ctl\")" \+ "]})});" \"return(0," RT ".jsx)(\"div\",{className:\"MSCXPanel\",children:(0," RT ".jsxs)(" RT ".Fragment,{children:[" \"(0," RT ".jsx)(\"style\",{children:" NP_CX_OPTIONS_CSS "})," \+ "typeof MSCXPrefixRow==\"function\"&&(0," RT ".jsx)(\"div\",{className:\"MSCXRow\",ref:e=>e&&MSCXPrefixRow(e,t.unAppID)},\"npstate\")," \"(0," RT ".jsxs)(" BARREL ".XY,{label:npL(\"Graphics\",\"图形\",\"Grafica\"),children:[" \"(0," RT ".jsx)(" BARREL ".m,{rgOptions:B,selectedOption:b," \"onChange:v=>s([[\"CX_GRAPHICS_BACKEND\",v.data]]" \diff --cc dylib/tests/buildcheck.shindex eda9b0c,e696687..e19f46f--- a/dylib/tests/buildcheck.sh+++ b/dylib/tests/buildcheck.sh@@@ -105,6 -116,223 +116,223 @@@ data=$(mktemp -d "$work/compatdata.XXXX)is "an open alert does not keep the prefix locked" "free" "$(cat "$data/during-alert" 2>/dev/null)"+ echo "== rebuild choices =="+ arch_functions="$(extract prefix_machine)+ $(extract preview_name)+ $(extract running_name)+ $(extract tool_name)+ $(extract refuse_foreign_prefix)"+ arch_data="$work/arch/pfx/drive_c/windows/system32"+ mkdir -p "$arch_data"+ dd if=/dev/zero bs=1 count=60 of="$arch_data/ntdll.dll" 2>/dev/null+ # DOS header points at a PE header with the x86_64 machine word.+ printf '\100\000\000\000PE\000\000\144\206' >> "$arch_data/ntdll.dll"+ arch_case() {+ (+ WINEPREFIX="$work/arch/pfx" wine_unix="$1" log=/dev/null np_display="CrossOver 2026 10 15-ARM64 - FEX" had_display="${2:-}"+ # shellcheck disable=SC2329+ rebuild_prefix() { printf 'rebuild: %s: %s\n' "$1" "$2"; }+ eval "$arch_functions"+ refuse_foreign_prefix+ )+ }+ is "an architecture mismatch offers rebuilding" 'rebuild: This game needs its prefix rebuilt: Rosetta prefixes cannot be used with versions of CrossOver that run through FEX unless they are rebuilt.++ Do you want to rebuild the prefix for CrossOver Preview 2026 10 15‑ARM64, running through FEX? Your save games will be preserved and not lost.' "$(arch_case aarch64-unix)"+ is "the build that set up the prefix is named" 'rebuild: This game needs its prefix rebuilt: This game'"'"'s prefix was last used by CrossOver 26.3, running through Rosetta. Rosetta prefixes cannot be used with versions of CrossOver that run through FEX unless they are rebuilt.++ Do you want to rebuild the prefix for CrossOver Preview 2026 10 15‑ARM64, running through FEX? Your save games will be preserved and not lost.' "$(arch_case aarch64-unix 'CrossOver 26.3')"+ is "a tool name's own arch suffix is not repeated" 'rebuild: This game needs its prefix rebuilt: This game'"'"'s prefix was last used by CrossOver Preview 2026 10 15‑ARM64, running through Rosetta. Rosetta prefixes cannot be used with versions of CrossOver that run through FEX unless they are rebuilt.++ Do you want to rebuild the prefix for CrossOver Preview 2026 10 15‑ARM64, running through FEX? Your save games will be preserved and not lost.' "$(arch_case aarch64-unix 'CrossOver 2026 10 15-ARM64 - Rosetta')"+ is "a matching architecture needs no rebuild" "" "$(arch_case x86_64-unix)"+ rebuild="$(extract run_rebuild)+ $(extract rebuild_prefix)"+ mkdir -p "$work/app with spaces"+ cat > "$work/app with spaces/NotProtonApp" <<'SH'+ #!/bin/sh+ data=$2+ [ -z "$DYLD_INSERT_LIBRARIES$TEST_LEAK" ] || exit 65+ printf '%s\n' "$@" > "$data/arguments"+ printf '%s' "$NOTPROTON_REBUILD_WINDOW" > "$data/window"+ /usr/bin/lockf -s -t 0 "$data/.notproton-prefix.lock" true || exit 66+ [ ! -f "$data/slow" ] || sleep 3+ echo finished > "$data/finished"+ exit "$(cat "$data/status")"+ SH+ chmod +x "$work/app with spaces/NotProtonApp"+ printf '%s' "$work/app with spaces/NotProtonApp" > "$np_support/app-executable"++ rebuild_case() {+ choice=$1 command_status=$2 launch_verb=$3 skip=${4:-}+ data=$(mktemp -d "$work/compat data.XXXXXX")+ (+ export TEST_LEAK=1+ printf '%s' "$command_status" > "$data/status"+ STEAM_COMPAT_DATA_PATH=$data np_tool_dir=/tools/chosen np_build=selected-build np_flavor=rosetta+ np_display='Selected "tool" with \ and a newline+ in its name'+ verb=$launch_verb log="$data/log"+ # shellcheck disable=SC2329+ osascript() { cat > "$data/prompt"; shift; printf '%s\n' "$@" > "$data/prompt-args"; [ "$choice" != cancel ] || return 1; printf '%s\n' "$choice"; }+ # shellcheck disable=SC2329+ show_alert() { echo "$1" >> "$data/alerts"; }+ # shellcheck disable=SC2329+ show_rebuild_failure() { echo "rebuild failed" >> "$data/alerts"; }+ # shellcheck disable=SC2329+ prepare_prefix_directory() { [ -z "${relock_fails:-}" ] || [ ! -f "$data/arguments" ] || return 1; exec 8>> "$data/.notproton-prefix.lock"; /usr/bin/lockf -s -t 0 8; echo locked >> "$data/checks"; }+ # shellcheck disable=SC2329+ note_other_build() { echo build >> "$data/checks"; }+ # shellcheck disable=SC2329+ refuse_foreign_prefix() { echo arch >> "$data/checks"; }+ eval "$rebuild"+ prepare_prefix_directory+ : > "$data/checks"+ echo stale > "$data/notproton-switch"+ rebuild_prefix 'A title' 'Previous "tool" with \ and a newline+ in its name' ${skip:+"$skip"}+ echo launched >> "$data/checks"+ ) && status=0 || status=$?+ }+ rebuild_case 'Backup & Rebuild Prefix' 0 waitforexitandrun+ is "backup rebuild succeeds with lock released for the app" 0 "$status"+ is "selected tool and backup choice reach the app as arguments" "--rebuild-prefix+ $data+ chosen+ selected-build+ rosetta+ keep-backup" "$(cat "$data/arguments")"+ is "launch retakes its lock and rechecks both mismatches" "locked+ build+ arch+ launched" "$(cat "$data/checks")"+ rebuild_case 'Rebuild Prefix' 0 waitforexitandrun+ is "rebuild without backup succeeds" 0 "$status"+ is "rebuild without backup passes discard-backup" discard-backup "$(tail -1 "$data/arguments")"+ rebuild_case cancel 0 waitforexitandrun+ is "cancel stops the launch" 1 "$status"+ is "cancel never calls the app" no "$([ -f "$data/arguments" ] && echo yes || echo no)"+ rebuild_case 'Rebuild Prefix' 7 waitforexitandrun+ is "a failed rebuild stops the launch" 1 "$status"+ is "a failed rebuild never continues launch preparation" "" "$(cat "$data/checks")"+ is "a failed rebuild says so" "rebuild failed" "$(cat "$data/alerts")"+ rebuild_case 'Rebuild Prefix' 0 run+ is "install helpers refuse silently" 1 "$status"+ is "install helpers never prompt" no "$([ -f "$data/prompt" ] && echo yes || echo no)"+ rebuild_case cancel 0 waitforexitandrun 'Launch Without Rebuilding'+ is "skipping an offered rebuild goes on with the launch" 0 "$status"+ is "a skipped rebuild retakes the lock and launches" "locked+ launched" "$(cat "$data/checks")"+ is "a skipped rebuild never calls the app" no "$([ -f "$data/arguments" ] && echo yes || echo no)"+ is "the skip button is labelled as asked" "Launch Without Rebuilding" "$(tail -2 "$data/prompt-args" | head -1)"-is "a missing NotProton icon falls back to caution" "" "$(tail -1 "$data/prompt-args")"++is "a missing Bridgeplay icon falls back to caution" "" "$(tail -1 "$data/prompt-args")"+ rebuild_case 'Rebuild Prefix' 0 run 'Launch Without Rebuilding'+ is "install helpers skip an offered rebuild silently" 0 "$status"+ rebuild_case 'Rebuild Prefix' 0 waitforexitandrun+ is "the app gets none of Steam's environment" 0 "$status"+ is "a rebuild from Play asks the app for its progress window" 1 "$(cat "$data/window")"+ is "a finished rebuild clears the switch record" no "$([ -f "$data/notproton-switch" ] && echo yes || echo no)"+ relock_fails=1+ rebuild_case 'Rebuild Prefix' 0 waitforexitandrun+ relock_fails=+ is "a launch that cannot retake its lock after a rebuild stops" 1 "$status"+ is "and says another launch has the prefix" "Prefix rebuilt" "$(cat "$data/alerts")"+ printf '%s' "$work/missing" > "$np_support/app-executable"+ rebuild_case 'Rebuild Prefix' 0 waitforexitandrun+ is "a moved or missing app stops the launch" 1 "$status"-is "a missing app explains how to repair" "Couldn't find the NotProton app" "$(cat "$data/alerts")"++is "a missing app explains how to repair" "Couldn't find the Bridgeplay app" "$(cat "$data/alerts")"++ data=$(mktemp -d "$work/stopped.XXXXXX")+ printf 0 > "$data/status"+ : > "$data/slow"+ (+ STEAM_COMPAT_DATA_PATH=$data np_tool_dir=/tools/chosen np_build=b np_flavor=rosetta log="$data/log"+ eval "$rebuild"+ run_rebuild "$work/app with spaces/NotProtonApp" keep-backup+ ) &+ waiter=$!+ sleep 1+ pkill -KILL -P "$waiter" 2>/dev/null || true+ kill -KILL "$waiter" 2>/dev/null || true+ sleep 4+ is "Stop kills the launch but not the rebuild under it" finished "$(cat "$data/finished" 2>/dev/null)"++ echo "== crashes after a switch =="+ health_functions="$(extract prefix_machine)+ $(extract note_other_build)+ $(extract preview_name)+ $(extract running_name)+ $(extract tool_name)+ $(extract last_wine_build)+ $(extract session_health)+ $(extract set_switch_state)+ $(extract record_session)+ $(extract offer_switch_rebuild)"+ crash_log="$work/crash.log"+ printf 'wine: Unhandled page fault on execute access to 0000000001A23DA0\n' > "$crash_log"+ clean_log="$work/clean.log"+ printf 'fixme:ntdll:stub\n' > "$clean_log"+ health() {+ (+ log=/dev/null+ eval "$health_functions"+ session_health "$@"+ )+ }+ is "a crash in the first minute is a failure" failed "$(health "$crash_log" 5 0)"+ is "a crash after a minute says nothing" unknown "$(health "$crash_log" 300 0)"+ is "a crash Steam stopped says nothing" unknown "$(health "$crash_log" 5 1)"+ is "a session without a crash is healthy" healthy "$(health "$clean_log" 3 0)"+ is "a long session Steam stopped is healthy" healthy "$(health "$clean_log" 600 1)"+ is "a short session Steam stopped says nothing" unknown "$(health "$clean_log" 5 1)"+ is "a missing log is healthy" healthy "$(health "$work/none.log" 5 0)"++ # Each step is one launch: switch to a build, then a session that ends healthy or failed.+ switch_world() {+ data=$(mktemp -d "$work/switch.XXXXXX")+ [ -z "$1" ] || printf '%s\n' "$1" > "$data/notproton-healthy"+ printf 'old-build\nOld Tool\n' > "$data/notproton-build"+ }+ session() {+ (+ STEAM_COMPAT_DATA_PATH=$data np_build=$1 np_display="New Tool" log=/dev/null verb=waitforexitandrun+ # shellcheck disable=SC2329+ rebuild_prefix() { printf '%s|%s|%s\n' "$1" "$2" "$3" >> "$data/offers"; }+ eval "$health_functions"+ note_other_build+ printf '%s\nNew Tool\n' "$1" > "$data/notproton-build"+ offer_switch_rebuild+ record_session "$2" "$3" 0+ )+ }+ state() { sed -n 3p "$data/notproton-switch" 2>/dev/null || echo none; }++ switch_world old-build+ session new-build "$clean_log" 5+ is "a switch from a build that worked is tracked" 1 "$(state)"+ session new-build "$clean_log" 5+ is "two healthy sessions clear the record" none "$([ -f "$data/notproton-switch" ] && state || echo none)"+ is "the healthy build is remembered" new-build "$(cat "$data/notproton-healthy")"++ switch_world old-build+ session new-build "$crash_log" 5+ is "a crash after the switch is recorded" failed "$(state)"+ is "nothing is offered in the session that crashed" no "$([ -f "$data/offers" ] && echo yes || echo no)"+ session new-build "$crash_log" 5+ is "the next launch offers a rebuild for the selected tool" "This game may need its prefix rebuilt|Something appears to have gone wrong the last time you ran this game! Rebuilding the prefix may fix it.++ Rebuild your prefix for New Tool, running through Rosetta? Your save games will be preserved and not lost.|Launch Without Rebuilding" "$(cat "$data/offers")"+ is "the offer is made once per switch" none "$([ -f "$data/notproton-switch" ] && state || echo none)"+ session new-build "$crash_log" 5+ is "a crash after the offer is not offered again" 1 "$(grep -c "^This game may need" "$data/offers")"++ switch_world ""+ session new-build "$crash_log" 5+ is "a game never seen working is not blamed on the switch" none "$([ -f "$data/notproton-switch" ] && state || echo none)"+ switch_world other-build+ session new-build "$crash_log" 5+ is "a game seen working on another build is not blamed on this switch" none "$([ -f "$data/notproton-switch" ] && state || echo none)"+if [ "$fails" -eq 0 ]; thenecho "==> buildcheck: all assertions hold"elsediff --cc dylib/tests/compatsvc-check.cindex c98bcbc,7841bcd..bbad704--- a/dylib/tests/compatsvc-check.c+++ b/dylib/tests/compatsvc-check.c@@@ -145,6 -145,47 +145,51 @@@ int np_log_first_hit(const void *anchorreturn 1;}+ // The prefix state has its own check, so here it is whatever the test sets.+ #include "../feats/prefixstate.h"+ #include <spawn.h>+ #include <sys/wait.h>+ const char *np_home_dir(void) { return "/home"; }++void np_support_path(char *buf, size_t bufsz, const char *home, const char *rel) {++ snprintf(buf, bufsz, "%s/Library/Application Support/bridgeplay%s%s", home,++ rel && rel[0] ? "/" : "", rel ? rel : "");++}+ static np_prefix_state_t stub_state;+ static int stub_rebuilding;+ void np_prefix_state(uint32_t appid, const char *tool, const np_prefix_roots_t *roots,+ np_prefix_state_t *st) {+ (void)appid; (void)roots;+ *st = stub_state;+ snprintf(st->tool, sizeof st->tool, "%s", tool ? tool : "");+ }+ int np_prefix_rebuilding(const np_prefix_state_t *st) { (void)st; return stub_rebuilding; }+ int np_prefix_state_json(uint32_t appid, const np_prefix_state_t *st, char *out, size_t cap) {+ return snprintf(out, cap, "{\"appid\":%u,\"tool\":\"%s\"}", appid, st->tool);+ }++ // Spawns are recorded instead of run, so the routes that start processes are checked by+ // what they would have started.+ #define SPAWN_ARGS_MAX 16+ static char spawned[SPAWN_ARGS_MAX][1024];+ static int spawned_count;+ static int spawn_result;+ static int stub_posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa,+ const posix_spawnattr_t *attr, char *const argv[], char *const envp[]) {+ (void)path; (void)fa; (void)attr; (void)envp;+ spawned_count = 0;+ for (; argv[spawned_count] && spawned_count < SPAWN_ARGS_MAX; spawned_count++)+ snprintf(spawned[spawned_count], sizeof spawned[0], "%s", argv[spawned_count]);+ *pid = 4242;+ return spawn_result;+ }+ static pid_t stub_waitpid(pid_t pid, int *status, int options) {+ (void)options;+ *status = 0;+ return pid;+ }+ #define posix_spawn stub_posix_spawn+ #define waitpid stub_waitpid+#include "../feats/compatsvc.c"// Minimal protobuf decoder for the captured reply. Enough to find field values.@@@ -674,6 -705,147 +719,147 @@@ static void routes_state_cases(void)stub_absent_type = NULL;}+ static char scratch[PATH_MAX];++ static const char *answer(void) {+ static char json[256];+ json[0] = '\0';+ pb_copy_string(captured_pb, captured_pb_len, RESP_DEFAULT, json, sizeof json);+ return json;+ }++ static int exists(const char *name) {+ char path[PATH_MAX];+ snprintf(path, sizeof path, "%s/%s", scratch, name);+ return access(path, F_OK) == 0;+ }++ static void put(const char *name, const char *text) {+ char path[PATH_MAX];+ snprintf(path, sizeof path, "%s/%s", scratch, name);+ FILE *f = fopen(path, "w");+ fputs(text, f);+ fclose(f);+ }++ static void ready_to_rebuild(void) {+ reset();+ memset(&stub_state, 0, sizeof stub_state);+ stub_rebuilding = 0;+ spawned_count = 0;+ spawn_result = 0;+ stub_state.has_prefix = 1;+ stub_state.needs_rebuild = 1;+ snprintf(stub_state.compatdata, sizeof stub_state.compatdata, "%s", scratch);+ snprintf(stub_state.tool_build, sizeof stub_state.tool_build, "27.0.0.41073-fex");+ snprintf(stub_state.tool_flavor, sizeof stub_state.tool_flavor, "fex");+ snprintf(stub_state.app, sizeof stub_state.app, "/Applications/NotProton.app/Contents/MacOS/NotProtonApp");+ stub_tool_for_app_name = "notproton-fex-41073";+ char status[PATH_MAX];+ snprintf(status, sizeof status, "%s/notproton-rebuild", scratch);+ unlink(status);+ }++ // Any page can call these, and two of them start the app, so each refusal is checked.+ static void rebuild_route_cases(void) {+ snprintf(scratch, sizeof scratch, "%s/compatsvc.XXXXXX", getenv("TMPDIR") ? getenv("TMPDIR") : "/tmp");+ if (!mkdtemp(scratch)) { check(0, "a scratch compatdata exists"); return; }++ struct { const char *why; void (*set)(void); const char *want; } refusals[] = {+ { "a prefix that needs no rebuild is not rebuilt", NULL, "{\"error\":\"none\"}" },+ { "a rebuild already under way is not started twice", NULL, "{\"error\":\"busy\"}" },+ { "a running game is not rebuilt under it", NULL, "{\"error\":\"running\"}" },+ { "a missing app is reported, not started", NULL, "{\"error\":\"app\"}" },+ };+ for (int i = 0; i < 4; i++) {+ ready_to_rebuild();+ if (i == 0) stub_state.needs_rebuild = 0;+ if (i == 1) stub_rebuilding = 1;+ if (i == 2) stub_state.running = 1;+ if (i == 3) stub_state.app[0] = '\0';+ int rc = rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(rc == RESULT_OK && strcmp(answer(), refusals[i].want) == 0, refusals[i].why);+ check(spawned_count == 0, "a refused rebuild starts nothing");+ check(!exists("notproton-rebuild"), "a refused rebuild writes no progress");+ }++ ready_to_rebuild();+ int rc = backup_and_rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(rc == RESULT_OK && strcmp(answer(), "{\"started\":true}") == 0, "a rebuild starts");+ char log[PATH_MAX];- snprintf(log, sizeof log, "%s/notproton-run.log", scratch);++ snprintf(log, sizeof log, "%s/bridgeplay-run.log", scratch);+ const char *want[] = { "/bin/sh", "-c", REBUILD_SCRIPT, stub_state.app, log, scratch,+ "notproton-fex-41073", "27.0.0.41073-fex", "fex", "keep-backup" };+ int same = spawned_count == 10;+ for (int i = 0; same && i < 10; i++) same = strcmp(spawned[i], want[i]) == 0;+ check(same, "the app gets the prefix, the tool Steam would run, and the backup choice");+ check(exists("notproton-rebuild"), "a started rebuild reads as under way before the app reports");++ ready_to_rebuild();+ char status_path[PATH_MAX], victim[PATH_MAX], lock_path[PATH_MAX];+ snprintf(status_path, sizeof status_path, "%s/notproton-rebuild", scratch);+ snprintf(victim, sizeof victim, "%s/keep", scratch);+ snprintf(lock_path, sizeof lock_path, "%s/.notproton-rebuild.lock", scratch);+ put("keep", "untouched");+ symlink(victim, status_path);+ rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ struct stat info;+ check(spawned_count == 0 && stat(victim, &info) == 0 && info.st_size == 9,+ "a symlinked status neither truncates its target nor starts a rebuild");+ ready_to_rebuild();+ int claim = open(lock_path, O_RDWR);+ if (claim < 0 || flock(claim, LOCK_EX | LOCK_NB) != 0) abort();+ put("notproton-rebuild", "copy\n4242\n");+ rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(spawned_count == 0 && strcmp(answer(), "{\"error\":\"busy\"}") == 0,+ "the actual rebuild lock refuses a launch even when the state snapshot is stale");+ close(claim);++ ready_to_rebuild();+ rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(spawned_count == 10 && strcmp(spawned[9], "discard-backup") == 0,+ "a plain rebuild discards the original");++ ready_to_rebuild();+ spawn_result = 1;+ rebuild_prefix(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(strcmp(answer(), "{\"error\":\"spawn\"}") == 0, "a rebuild that cannot start says so");+ check(!exists("notproton-rebuild"), "a rebuild that cannot start leaves no progress behind");++ ready_to_rebuild();+ rc = rebuild_prefix(build_request(0, 0), (uintptr_t)response_buf);+ check(rc == RESULT_FAIL && spawned_count == 0, "a request with no appid starts nothing");++ ready_to_rebuild();+ open_prefix_log(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(strcmp(answer(), "{\"error\":\"log\"}") == 0 && spawned_count == 0,+ "a missing log is not opened");- put("notproton-run.log", "x\n");++ put("bridgeplay-run.log", "x\n");+ open_prefix_log(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(strcmp(answer(), "{\"opened\":true}") == 0 && spawned_count == 4+ && strcmp(spawned[0], "/bin/sh") == 0 && strcmp(spawned[3], log) == 0+ && strcmp(spawned[2], "/usr/bin/open -t \"$0\" &") == 0,+ "the log opens in the background, so Steam does not wait on LaunchServices");+ unlink(log);+ symlink(victim, log);+ spawned_count = 0;+ open_prefix_log(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(spawned_count == 0, "a symlinked log is not opened");++ ready_to_rebuild();+ put("notproton-rebuild", "done\n1\n");+ prefix_state(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(exists("notproton-rebuild"), "a finished rebuild remains available to other pages");+ put("notproton-rebuild", "copy\n1\n");+ stub_rebuilding = 1;+ prefix_state(build_request(REQ_HAS_APPID, 480), (uintptr_t)response_buf);+ check(exists("notproton-rebuild"), "a rebuild under way keeps its progress");++ char cmd[PATH_MAX + 16];+ snprintf(cmd, sizeof cmd, "rm -rf '%s'", scratch);+ if (system(cmd) != 0) fprintf(stderr, "could not remove %s\n", scratch);+ }+static void string_field_cases(void) {// string_field reads an arena-tagged pointer. Low bit set = arena, cleared before// deref. A long string (byte[23] < 0) dereferences the first qword as a pointer todiff --cc dylib/tests/panel-behavior/emit.cindex b2a22a7,a4fa9a8..79a8bbc--- a/dylib/tests/panel-behavior/emit.c+++ b/dylib/tests/panel-behavior/emit.c@@@ -70,8 -54,7 +74,8 @@@ int main(int argc, char **argv)fputs(NP_LIBRARY_WINDOWS_SUMMARY, stdout);return 0;}- fputs("usage: emit component|statement [fallback [fex-tool...]]|migration|compat-hint|"- "image-files-label|library-windows-hint|library-windows-summary|prefix-row\n", stderr);+ fputs("usage: emit component|statement [fallback [fex-tool...]]|migration|"+ "transform <chunk> <fallback tool>|compat-hint|image-files-label|"- "library-windows-hint|library-windows-summary\n", stderr);++ "library-windows-hint|library-windows-summary|prefix-row\n", stderr);return 2;}diff --cc dylib/tests/panel-behavior/prefix-row.jsindex 0000000,2d4b6a3..e168d1bmode 000000,100644..100644--- a/dylib/tests/panel-behavior/prefix-row.js+++ b/dylib/tests/panel-behavior/prefix-row.js@@@ -1,0 -1,149 +1,149 @@@+ 'use strict';+ // The rebuild row in the CrossOver panel, driven against a fake DOM, fake timers and a+ // fake route. Each step answers the row's next request the way the dylib would.+ const assert = require('node:assert/strict');+ const { execFileSync } = require('node:child_process');++ const emit = process.argv[2];+ if (!emit) throw new Error('usage: prefix-row.js <emit>');+ const src = execFileSync(emit, ['prefix-row'], { encoding: 'utf8' });++ class Node {+ constructor(tag) { this.tag = tag; this.children = []; this.style = {}; this.className = ''; this.textContent = ''; }+ append(...n) { this.children.push(...n); }+ replaceChildren(...n) { this.children = n; }+ }++ function world(states, startReply = '{"started":true}') {+ const calls = [], timers = [], listeners = {};+ const doc = { createElement: tag => new Node(tag), documentElement: { lang: 'en' } };+ const g = {+ document: doc, navigator: { language: 'en' },+ setTimeout: (f, ms) => { timers.push({ f, ms }); return timers.length; }, clearTimeout: () => {},+ addEventListener: (n, f) => { listeners[n] = f; }, removeEventListener: n => { delete listeners[n]; },+ MSCXRoute: (route, id) => {+ calls.push(route);+ if (route === 'NotProton.PrefixState#1') {+ const state = states.shift() || {};+ if (state instanceof Error) return Promise.reject(state);+ if (state instanceof Promise) return state;+ return Promise.resolve(JSON.stringify(state));+ }+ return Promise.resolve(startReply);+ },+ };+ new Function('globalThis', 'document', 'navigator', 'setTimeout', 'clearTimeout', 'MSCXRoute', src)(+ g, doc, g.navigator, g.setTimeout, g.clearTimeout, g.MSCXRoute);+ const row = new Node('div');+ row.ownerDocument = doc;+ row.isConnected = true;+ const settle = () => new Promise(r => setImmediate(r));+ const tick = async () => { const t = timers.shift(); t && t.f(); await settle(); await settle(); return t; };+ const texts = () => row.children.filter(c => c.tag === 'div' && !c.children.length).map(c => c.textContent);+ const buttons = () => row.children.flatMap(c => c.children).filter(c => c.tag === 'button');+ return { g, row, calls, timers, listeners, settle, tick, texts, buttons };+ }++ const need = { needsRebuild: true, app: true, running: false, rebuild: '' };++ (async () => {+ {+ const w = world([{ ...need, rebuild: 'copy' }, new Error('transport'), { rebuild: 'done' }]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle();+ await w.tick();+ assert.equal(w.texts()[0], 'Copying your files\u2026');+ await w.tick();+ assert.equal(w.texts()[0], 'Prefix rebuilt.');+ }+ {+ const w = world([new Error('no transport')]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ assert.equal(w.row.style.display, 'none', 'a route that cannot answer hides the row');+ assert.equal(w.timers.length, 0, 'and nothing keeps asking');+ }+ {+ let answer;+ const pending = new Promise(resolve => { answer = resolve; });+ const w = world([pending, { needsRebuild: false }]);+ w.g.MSCXPrefixRow(w.row, 480);+ w.g.MSCXPrefixRow(w.row, 481); await w.settle();+ answer(JSON.stringify(need)); await w.settle();+ assert.equal(w.row.style.display, 'none', 'an old answer cannot rebuild the wrong game');+ }+ {+ const w = world([{ needsRebuild: false, app: true, rebuild: '' }]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ assert.equal(w.row.style.display, 'none', 'no rebuild needed keeps the row hidden');+ w.g.MSCXPrefixRow(w.row, 480); await w.settle();+ assert.equal(w.calls.length, 1, 'rendering again for the same app does not ask again');+ }+ {+ const w = world([need, { ...need, rebuild: 'setup' }, { ...need, rebuild: 'copy' },+ { ...need, rebuild: 'finish' }, { needsRebuild: false, app: true, rebuild: 'done-backup' }]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ assert.equal(w.row.style.display, '');+ assert.deepEqual(w.texts(), ['Switching to this compatibility tool requires a prefix rebuild. Rebuild now?']);+ assert.deepEqual(w.buttons().map(b => b.textContent), ['Backup & Rebuild Prefix', 'Rebuild Prefix']);+ assert.equal(w.buttons()[0].className, 'MSCXBtn MSCXMain', 'Backup & Rebuild is the main button');+ w.buttons()[0].onclick(); await w.settle(); await w.settle(); await w.settle();+ assert(w.calls.includes('NotProton.BackupAndRebuildPrefix#1'), 'backup rebuild is asked for');+ assert.equal(w.texts()[0], 'Rebuilding prefix\u2026');+ assert(w.row.children.some(c => c.className === 'MSCXBar'), 'a bar shows while it runs');+ const delay = parseInt(w.row.children.find(c => c.className === 'MSCXBar').children[0].style.animationDelay);+ assert(delay <= 0 && delay > -200, `the bar starts from the left when the rebuild starts (${delay}ms)`);+ await w.tick(); assert.equal(w.texts()[0], 'Copying your files\u2026');+ await w.tick(); assert.equal(w.texts()[0], 'Finishing\u2026');+ assert.equal(w.timers.at(-1).ms, 500, 'it asks again every half second');+ await w.tick();- assert.deepEqual(w.texts(), ["Prefix rebuilt. A backup of the original is in NotProton's Prefixes view."]);++ assert.deepEqual(w.texts(), ["Prefix rebuilt. A backup of the original is in Bridgeplay's Prefixes view."]);+ const left = w.timers.length;+ w.g.MSCXPrefixRow(w.row, 480);+ assert.equal(w.timers.length, left, 'nothing polls once it is done');+ // The dylib reports done once, so the next answer is empty, and the row keeps saying done.+ w.listeners.mscxstate({ detail: 481 }); await w.settle();- assert.deepEqual(w.texts(), ["Prefix rebuilt. A backup of the original is in NotProton's Prefixes view."]);++ assert.deepEqual(w.texts(), ["Prefix rebuilt. A backup of the original is in Bridgeplay's Prefixes view."]);+ }+ {+ const w = world([need, { ...need, rebuild: 'failed' }, need]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ w.buttons()[1].onclick(); await w.settle(); await w.settle(); await w.settle();+ assert(w.calls.includes('NotProton.RebuildPrefix#1'), 'a plain rebuild is asked for');+ await w.tick();+ assert.deepEqual(w.texts(), ['Prefix rebuild failed!']);+ assert.deepEqual(w.buttons().map(b => b.textContent), ['Open Log', 'Backup & Rebuild Prefix', 'Rebuild Prefix'],+ 'a failure offers the log and another try');+ w.buttons()[0].onclick(); await w.settle();+ assert(w.calls.includes('NotProton.OpenPrefixLog#1'));+ }+ {+ const w = world([{ ...need, running: true }, need]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ assert.deepEqual(w.texts(), ['Quit the game to rebuild.']);+ assert(w.buttons().every(b => b.disabled), 'nothing can start while the game runs');+ assert.equal(w.timers.at(-1).ms, 3000, 'it checks again for the game quitting');+ await w.tick();+ assert(w.buttons().every(b => !b.disabled), 'quitting the game enables the buttons');+ }+ {+ const w = world([{ ...need, app: false }]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();- assert.deepEqual(w.texts(), ["Couldn't find the NotProton app. Move NotProton to Applications, open it and click Install again."]);++ assert.deepEqual(w.texts(), ["Couldn't find the Bridgeplay app. Move Bridgeplay to Applications, open it and click Install again."]);+ assert.equal(w.buttons().length, 0);+ }+ {+ const w = world([need, need], '{"error":"spawn"}');+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ w.buttons()[1].onclick(); await w.settle(); await w.settle(); await w.settle();+ assert.deepEqual(w.texts(), ['Prefix rebuild failed!'], 'a rebuild that cannot start says so');+ }+ {+ const w = world([need, { needsRebuild: false, app: true, rebuild: '' }]);+ w.g.MSCXPrefixRow(w.row, 480); await w.settle(); await w.settle();+ w.listeners.mscxstate({ detail: 480 }); await w.settle(); await w.settle();+ assert.equal(w.row.style.display, 'none', 'picking a matching tool hides the row');+ w.row.isConnected = false;+ w.listeners.mscxstate({ detail: 480 });+ assert(!w.listeners.mscxstate, 'a row that left the page stops listening');+ }+ console.log('PASS: rebuild row hides, offers, progresses, finishes, fails, waits for the game and finds no app');+ })().catch(e => { console.error(e); process.exit(1); });