Repository navigation
feat: load Depot assets relative to the launched DOL - #135
Merged
Merged
Conversation
capz
force-pushed
the
feat/dol-relative-content
branch
2 times, most recently
from
November 20, 2026 22:53
5d0e96a to
484e1c6
Compare
capz
force-pushed
the
feat/dol-relative-content
branch
from
November 21, 2026 10:26
484e1c6 to
30bfff9
Compare
capz
marked this pull request as ready for review
November 21, 2026 10:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
AnimalTown duplicates the SDK's launcher-path parsing and device mounting. This misses Swiss aliases, keeps an obsolete Slot A restriction, and leaves game code responsible for mount ownership. The new DolphinDotNet API can resolve the DOL's actual containing directory and keep its filesystem alive for later asynchronous asset reads.
Main AnimalTown changes
ContentBootstrapcallsLaunchContent.Mountwith the application validator and explicitly configured fallback locations. The domain's customContentSelection,ContentDevice,IContentMountsand alias parser are removed.ContentPathsonce and retains the successfulLaunchContentin a static field for the process lifetime. Existing model, texture, configuration and save-artwork readers continue using the same immutable root.sdb:/games/My Town/default.dolselectscardb:/games/My Town/. Spaces and UTF-8 directories are handled by the SDK.content.idcomparison is shared with package generation throughContentIdentity. Validation opens identity data through the SDK session and closes the stream before accepting it. A matching build with missing payload throws immediately instead of borrowing another installation.DvdSource=GcLoaderfor Swissdvd:/hints and requires a DOL source. Disc builds ignore launcher filenames and select the current FST disc root. Updater availability stays tied to the compiled distribution profile.0.1.0-preview.376.1; all engine references use published0.1.0-preview.52.1, with regenerated NuGet lockfiles.The successful selection is handed to existing consumers as follows (error handling is in the source):
Storage behavior to review
sd:/orsdc:/sd:/ambiguity.sda://carda:/dvd:/.../default.dolapps/animaltown/fallback: SP2 → Slot B → GC Loader.Ordinary path strings are still path strings, not generation-bound handles. The retained mount and immutable root preserve their existing lifetime contract. Directly opening a DOL in Dolphin does not expose the host PC directory; the emulator must still provide a supported guest-visible volume.
Validation
Rebased onto main at
171858e, preserving atlas-page streaming checks and offline-job validation routing. Both engine packages now restore from public NuGet as0.1.0-preview.52.1(repository commitc0ed77142af447c23dc42414d8428e816e6c5e07), with the exact SDK/runtime dependency0.1.0-preview.376.1. All project lockfiles were regenerated from published packages.Local validation on rebased head
30bfff9:git diff --checkpassed.Physical adapter, launcher and hot-plug qualification remains separate; host storage fixtures do not claim hardware coverage.