From c60e2c38203029fc2ea45ce8fb64e45af4ea5347 Mon Sep 17 00:00:00 2001 From: leroy ketelaars Date: Tue, 17 Nov 2026 14:04:42 +0000 Subject: [PATCH] build: pin SDK launch context for standalone app consumers --- .sdk-revision | 2 +- Directory.Build.props | 2 +- docs/nuget.md | 10 ++++++++-- tests/nuget_consumer.py | 11 +++++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.sdk-revision b/.sdk-revision index ad877f0..61c511a 100644 --- a/.sdk-revision +++ b/.sdk-revision @@ -1 +1 @@ -82335d3971d3d98a4f85d2993809c272a4b7b108 +134a524d7cea119a634e9f516b100f9619dce1cb diff --git a/Directory.Build.props b/Directory.Build.props index f23ed5f..586a239 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ false false - 0.1.0-preview.372.1 + 0.1.0-preview.374.1 true net8.0 enable diff --git a/docs/nuget.md b/docs/nuget.md index 682c039..1b37132 100644 --- a/docs/nuget.md +++ b/docs/nuget.md @@ -10,12 +10,18 @@ streaming adapters and depends on Core plus a specific published DolphinDotNet.GameCube version. The DolphinDotNet MSBuild SDK/compiler is a separate application requirement; it is not copied into an engine library nupkg. `Directory.Build.props` pins the package dependency version to -`DolphinDotNet.GameCube` **0.1.0-preview.318.1**. The matching compiler/runtime -source is **4c8cd26a1b5f8003598463116960367ffa17418f**, also pinned in +`DolphinDotNet.GameCube` **0.1.0-preview.374.1**. The matching compiler/runtime +source is **134a524d7cea119a634e9f516b100f9619dce1cb**, also pinned in `.sdk-revision` for source validation. Ordered passes retain their native SDK backend by default; the portable comparison remains available through `HypercubeNativePasses=false`. +The current SDK adds `Dolphin.IO.LaunchContext` for bounded incoming GameCube +launcher arguments, used by AnimalTown's standalone Dolphin Depot app profile. +The external consumer also bundles this API and checks that the SDK includes +its launch capture before managed startup. Existing rendering and full-resolution +AA capabilities remain in the same exact SDK dependency closure. + This upgrade accompanies [AnimalTown #47](https://github.com/capz/AnimalTown/pull/47). SDK 318 exposes independent TEV alpha stages, two-reference GX comparisons and `TevMaterialPresets.DualTextureGlints` for its two scrolling water samples. diff --git a/tests/nuget_consumer.py b/tests/nuget_consumer.py index 4b1f943..c6ab05c 100644 --- a/tests/nuget_consumer.py +++ b/tests/nuget_consumer.py @@ -57,6 +57,17 @@ class Program {static void Main(){var q=new OpaqueDrawQueue(2);q.TryAdd(1,2,0xff compiler=work/'packages/dolphindotnet.sdk'/sdk/'tools/compiler/DolphinDotNet.Compiler.dll' run('dotnet',str(compiler),'--bundle',str(app/'bin/Release/net8.0/GameCube.dll'),str(work/'native-consumer')) if not (work/'native-consumer/source/generated_program.c').is_file():raise AssertionError('No consumer AOT bundle') + launch=work/'Launch';launch.mkdir() + (launch/'Launch.csproj').write_text((app/'GameCube.csproj').read_text()) + (launch/'Program.cs').write_text('''using Dolphin.IO; +internal static class Program {static int Main(){return LaunchContext.ArgumentCount==0?0:LaunchContext.ExecutablePath.Length;}} +''') + run('dotnet','build',str(launch),'-c','Release','-p:DndBuildNative=false','-warnaserror:NU1608') + run('dotnet',str(compiler),'--bundle',str(launch/'bin/Release/net8.0/Launch.dll'),str(work/'native-launch')) + if '-DDND_CAPTURE_LAUNCH_ARGUMENTS' not in (work/'native-launch/Makefile').read_text(): + raise AssertionError('Published SDK did not enable incoming launch-context capture') + if 'dnd_launch_count(' not in (work/'native-launch/source/generated_program.c').read_text(): + raise AssertionError('Published launch-context call missing from AOT consumer') # Exercise the distributed default backend, rather than only compiling # the stubbed contract test or the source-checkout adapter. ordered=work/'Ordered';ordered.mkdir()