Skip to content

Take the colorization of the ROM PinMAME plays - #7

Merged
freezy merged 2 commits into
masterfrom
feat/compatible-roms
Nov 17, 2026
Merged

freezy merged 2 commits into
masterfrom
feat/compatible-roms

Conversation

@freezy

@freezy freezy commented Nov 17, 2026

Copy link
Copy Markdown
Member

The PinMAME plugin can now play a compatible ROM in place of the one a table was made for, when that one isn't in the user's ROM folder (VisualPinball/VisualPinball.Engine.PinMAME, branch feat/compatible-roms). Colorizations are made per ROM, so the DMD plugin should look for the one of the ROM that actually plays.

  • For PinMAME games, the plugin reads the running ROM from the table's IRomNameProvider. PinMAME prepares first, and the descriptor now also declares After = org.visualpinball.pinmame.
  • Automatic selection tries the running ROM's colorization first, then the table ROM's. If the running ROM's folder is ambiguous (several colorizations), it falls back to the table ROM's instead of failing, since the settings only let users pick among the table ROM's.
  • A colorization the user selected in the settings stays the table ROM's.
  • libdmd gets the ROM name the colorization was staged under.

Without a substitute ROM, nothing changes: the running ROM is the table's.

Tested in the player: with the substitute ROM's own PAC in its altcolor folder, the plugin loaded it ("Colorization for (table ROM

)").

PinMAME can play a compatible ROM in place of the one the table was made for. Automatic selection now looks for that ROM's colorization first, then the table ROM's. The plugin prepares after PinMAME, which decides the ROM.
@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; the previous library lookup issue is fixed.

Summary

The plugin follows the ROM PinMAME actually plays when choosing an automatic colorization.

  • DMD colorizations follow the ROM PinMAME actually plays.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Choose colorization] --> B{Explicit choice?}
  B -->|Yes| C[Use table ROM choice]
  B -->|No| D[Try running ROM]
  D --> E{Usable colorization?}
  E -->|No| F[Try table ROM]
  E -->|Yes| G[Stage selected files]
  C --> G
  F --> G
  G --> H[Give libdmd the staging ROM name]
Loading

Reviews (2) · Last reviewed commit: "plugin: look up each ROM's own colorizat..." · Reviewed by Greptile

The library imported from DmdDevice.ini is the table ROM's, so it hid the altcolor of the ROM that plays. The library is now resolved per ROM: the one the user saved, else that ROM's section of the ini, else the default.
@freezy
freezy merged commit 578813b into master Nov 17, 2026
5 checks passed
@freezy
freezy deleted the feat/compatible-roms branch November 17, 2026 14:49
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