Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Windows front end: the cloud-saves patch adds save_sync.c to the Makefile SRC

LNPANDY1ba030eccf3b
diff --git a/frontend-qt/nspb_qt/win/build_app.py b/frontend-qt/nspb_qt/win/build_app.py
index 71a27993..dfab259b 100644
--- a/frontend-qt/nspb_qt/win/build_app.py
+++ b/frontend-qt/nspb_qt/win/build_app.py
@@ -82,7 +82,7 @@ def py(*args, env=None, capture=True) -> str:
#: Makefile's wildcards are the only place the source list is maintained: if upstream adds a
#: file to either line, silently missing it here would produce a link error or a subtly
#: incomplete host.
-WANT_SRC = ('SRC=main.c loader.c hle.c romfs_arc.c crash.c probe.c thread.c memstat.m '
+WANT_SRC = ('SRC=main.c loader.c hle.c romfs_arc.c crash.c probe.c thread.c save_sync.c memstat.m '
'haptics_apple.m $(sort $(wildcard hle_*.c)) front_mac.m entry.S')
WANT_GFX = ('GFX=$(sort $(wildcard ../gfx/*.c ../gfx/nvn/*.c ../gfx/nvn/*.m ../gfx/nvn/*.S '
'../gfx/tex/*.c ../gfx/tex/*.m ../gfx/vk/*.m ../gfx/gl/*.m))')
@@ -111,7 +111,7 @@ def host_sources(repo: Path, game_h_dir: Path) -> tuple[list[Path], list[Path]]:
die(f'dm/host/Makefile changed ({what}= line): update host_sources() in '
f'frontend-qt/nspb_qt/win/build_app.py to match')
- src = [host / n for n in 'main.c loader.c hle.c romfs_arc.c crash.c probe.c thread.c '
+ src = [host / n for n in 'main.c loader.c hle.c romfs_arc.c crash.c probe.c thread.c save_sync.c '
'memstat.m haptics_apple.m'.split()]
src += sorted(host.glob('hle_*.c'), key=lambda p: p.name)
src += [host / 'front_mac.m', host / 'entry.S']