Skip to content

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

Merge branch 'pr-94'

LNPANDYa4a94ce901f6
diff --cc scripts/sync_upstream.py
index 6426f7f9,4dc71655..fba6d1e9
--- a/scripts/sync_upstream.py
+++ b/scripts/sync_upstream.py
@@@ -56,16 -54,30 +54,32 @@@ OURS = {'dm/host/romfs_arc.c', 'dm/host
# first wholesale sync deleted it.
'dm/ios/ENTITLEMENTS.md',
# This script: fork-only, so a PR that changes it is not a vendored edit (pr-scope reads OURS)
- 'scripts/sync_upstream.py',
+ 'scripts/sync_upstream.py', 'scripts/tests/test_sync_patchers.py', # and its test (issue #92)
# The NRO bound's tests (issue #14): fork-only, beside nso_code.py's lo bound
- 'dm/tools/tests/test_nro_header.py'}
+ 'dm/tools/tests/test_nro_header.py',
+ # The Files-app game-data pick (bookmark of the chosen folder): fork-only, upstream has no such path
+ 'dm/ios/Sources/DataBookmark.m', 'dm/ios/Sources/DataBookmark.h'}
# Vendored files that carry fork patches: taken fresh from upstream, then patched below.
PATCHED = ('dm/host/hle_fs.c', 'dm/host/Makefile', 'dm/host/tests/Makefile', 'dm/ios/tools/build_ipa.sh',
- 'scripts/build_ipa_from_nsp.py', 'dm/gfx/tools/shader_split.py',
+ 'scripts/build_ipa_from_nsp.py',
'dm/ios/Sources/main.m', 'dm/gfx/nvn/nvn_mtl.m', 'dm/host/dm.h',
- 'dm/ios/tests/test_romfs_startup.py', 'dm/ios/tests/test_profile_pack.py', 'docs/env_switches.tsv', 'dm/host/front_mac.m', 'dm/tools/patch_nso.py', 'dm/games/0100A00019DE0000/game.tsv')
+ 'dm/ios/tests/test_romfs_startup.py', 'dm/ios/tests/test_profile_pack.py', 'docs/env_switches.tsv', 'dm/host/front_mac.m', 'dm/tools/patch_nso.py', 'dm/games/0100A00019DE0000/game.tsv',
+ # hand edits until issue #92, now patchers (see "Fork edits that had no protection" below)
+ 'dm/mac/launcher.c',
+ 'dm/host/hle_svc.c',
+ 'dm/host/hle_os.c',
+ 'dm/host/hle_fpslock.c',
+ 'dm/host/loader.c',
+ 'dm/ios/Sources/DmGamepad.m',
+ 'dm/ios/Sources/Launcher.swift',
+ 'dm/ios/project.yml',
+ 'dm/ios/tests/test_xcode_workflow.py',
+ 'dm/tools/env_switches.py',
+ 'dm/tools/tests/test_env_switches.py',
+ 'dm/tools/impact_map.tsv', 'dm/games/game.py',
+ 'dm/games/0100F2C0115B6000/game.tsv',
+ 'docs/agents/README.md',
+ 'docs/development.md')
def git(*a):
r = subprocess.run(['git', *a], cwd=REPO, capture_output=True, text=True)