Skip to content

Commit 4ecd063

Browse files
Record the scoped Air Ocarina play-report backport
1 parent ed552f8 commit 4ecd063

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎dm/ios/Engines/NxNative/README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,15 @@ Apply `ocarina-m2-offline-play-report.patch` to the pinned Ocarina 60.60
5555
engine's `dm/host/hle_sf.c`, whose SHA-256 is
5656
`4e37968a18e54f1a00b4bb516665aaa6973cb96cb8d14f83e608b953cd99b6f4`. Relink just the Ocarina framework;
5757
the shared iOS engine does not use this patch.
58+
59+
## Ocarina of Time: offline play report (Air 60.60)
60+
61+
The signed Air 60.59 launcher reached end of stream and aborted with result
62+
`0xe15` when the game opened `prepo:u`. The newer upstream engine intercepts
63+
PlayReport::Send and completes it locally. This older launcher instead
64+
serves that name through its existing offline responder, limited to
65+
program `0400486024DEC000`. No report is sent. The game frameworks, shader
66+
chain and save handling are unchanged.
67+
68+
Apply `ocarina-air-offline-play-report.patch` to `dm/host/hle_sf.c` in the
69+
pinned Air launcher. The original SHA-256 is `4e37968a18e54f1a00b4bb516665aaa6973cb96cb8d14f83e608b953cd99b6f4`.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/dm/host/hle_sf.c
2+
+++ b/dm/host/hle_sf.c
3+
@@ -36,6 +36,13 @@
4+
uint32_t *out, const char *name) {
5+
for (size_t k = 0; k < sizeof sf_served / sizeof *sf_served; k++)
6+
if (!strncmp(name, sf_served[k], 8)) { *out = sf_new(sf_served[k], 0); LOG("sf: %s → host session %#x (every request succeeds with zeroed output)", sf_served[k], *out); return RES_OK; }
7+
+ // Ocarina requests the PlayReport service at the end of its opening.
8+
+ // Answer with the existing offline session; no report leaves the device.
9+
+ if (!strncmp(name, "prepo:u", 8) && !strcasecmp(DM_GAME_ID, "0400486024DEC000")) {
10+
+ *out = sf_new("prepo:u", 0);
11+
+ LOG("sf: Ocarina prepo:u -> local offline session %#x", *out);
12+
+ return RES_OK;
13+
+ }
14+
LOG("[RED] sf: the game connects to service %.8s itself, which the host does not serve", name);
15+
return 0xe15u; // sm ResultNotRegistered
16+
}

0 commit comments

Comments
 (0)