Skip to content

Broaden asset allowlist with tilemap/level and text-data formats#116

Merged
vchelaru merged 1 commit into
mainfrom
feat/115-broaden-asset-allowlist
Jul 13, 2026
Merged

Broaden asset allowlist with tilemap/level and text-data formats#116
vchelaru merged 1 commit into
mainfrom
feat/115-broaden-asset-allowlist

Conversation

@vchelaru

Copy link
Copy Markdown
Owner

Adds .tmx, .tsx, .world, .ldtk, .ogmo, .json, .txt, .xml to SupportedAssetExtensions so users can drop / bundle Tiled, LDtk, Ogmo and generic data files and read them via TitleContainer.OpenStream.

These are text formats stored as raw bytes — no InMemoryContentManager.Load<T> branch (that's only for Texture2D/SoundEffect). The base64 round-trip through the XHR intercept is byte-exact.

Also fixes a .txt/gist collision: with .txt now allowlisted, a bundled .txt alongside a .cs was being consumed as the program fallback and lost. It's now the program only when no .cs is present; otherwise it registers as a data asset.

Closes #115

🤖 Generated with Claude Code

Add .tmx, .tsx, .world, .ldtk, .ogmo, .json, .txt, .xml to
SupportedAssetExtensions. These are text/data formats stored as raw
bytes and read by user code via TitleContainer.OpenStream — no
InMemoryContentManager.Load<T> branch needed.

Fix the .txt/gist collision: a bundled .txt is now the program only
when no .cs is present; alongside a .cs it registers as a data asset
instead of being silently consumed as the program fallback.

Closes #115

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vchelaru
vchelaru merged commit de13386 into main Jul 13, 2026
1 check passed
@vchelaru
vchelaru deleted the feat/115-broaden-asset-allowlist branch July 13, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broaden asset allowlist to include tilemap/level and text-data formats

1 participant