Skip to content

Don't fault on game keys that can't name a colorization folder - #8

Merged
freezy merged 1 commit into
masterfrom
fix/colorization-game-keys
Nov 17, 2026
Merged

freezy merged 1 commit into
masterfrom
fix/colorization-game-keys

Conversation

@freezy

@freezy freezy commented Nov 17, 2026

Copy link
Copy Markdown
Member

Some gamelogic engines put a version in their game keys, like game/1.0. The DMD plugin uses the key as the game's folder in the colorization library, and ColorizationCatalog.Read threw Invalid game key. on any key that isn't a plain file name. Settings validation reaches it before a game starts, so the plugin faulted ("Colorization: Invalid game key.") and the game ran without its display.

  • ColorizationCatalog.IsFolderName tells whether a key can name a folder (a file name, not . or .., no invalid file-name characters).
  • Read returns no colorizations for other keys, as TableMediaPaths.GameDirectories already skips them. Validation, the colorization list and game preparation then simply find none.
  • Stage still refuses such keys, so the path guard stays where files are written.

Keys that are plain names, such as PinMAME ROM names, behave as before.

Tests: a new catalog test covers a versioned key (no colorizations, nothing throws, staging refuses it); the DMD player tests pass (30/30).

Some gamelogic engines put a version in their game keys, like game/1.0, and the colorization lookup threw on them, so settings validation faulted the plugin and the game ran without its display. Such games now simply have no colorizations; staging still refuses those keys.
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Games with keys such as game/1.0 now get an empty colorization catalog instead of an exception.

  • DMD setup continues when a game key cannot name a colorization folder.

No actionable issues were found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "plugin: don't fault on game keys that ca..." · Reviewed by Greptile

@freezy
freezy merged commit 00a8e4f into master Nov 17, 2026
5 checks passed
@freezy
freezy deleted the fix/colorization-game-keys branch November 25, 2026 20:39
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.

1 participant