Previous Thread
Next Thread
Print Thread
#124338 03/09/25 03:27 AM
Joined: Feb 2014
Posts: 1,184
Likes: 218
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,184
Likes: 218
So if you have a parent device (EPSON_FX80) and a derived class (EPSON_JX80) and you use parent_rom_device_type(), then mame will also search the parent rom zip file for the roms of the jx80.

So then I could keep all of the roms for the parent and the derived class in a single file epson_fx80.zip instead of having two separate zip files epson_fx80.zip and epson_jx80.zip.

Am I understanding that correctly?


static auto parent_rom_device_type() { return &EPSON_FX80; }

Joined: Jun 2001
Posts: 538
Likes: 42
O
Senior Member
Senior Member
O Offline
Joined: Jun 2001
Posts: 538
Likes: 42
Did you try it?

Joined: Feb 2014
Posts: 1,184
Likes: 218
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,184
Likes: 218
yes, it works. Just wondering if that's the "right" way to do it.

Joined: Mar 2001
Posts: 17,261
Likes: 267
R
Very Senior Member
Very Senior Member
R Online: Content
Joined: Mar 2001
Posts: 17,261
Likes: 267
Files that are actually used by both can be in the parent, files that are specific to the child device should be in the child device's zip. (If no files are shared, there generally shouldn't be a parent/child relationship).


Link Copied to Clipboard
Who's Online Now
0 members (), 144 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,363
Posts122,479
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0