Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
#109357 - 04/13/17 09:20 AM Gameboy Mappers from CLI  
Joined: Apr 2012
Posts: 304
ssj Offline
Senior Member
ssj  Offline
Senior Member

Joined: Apr 2012
Posts: 304
Is it possible to specify the mapper to use when running a gameboy rom through command line or do I need to do it through the softlists and add the respective slot feature to the gameboy_cart entry?

#109358 - 04/13/17 09:27 AM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: May 2004
Posts: 1,372
Haze Offline
Very Senior Member
Haze  Offline
Very Senior Member

Joined: May 2004
Posts: 1,372
currently you'd have to add it to the softlist

I do still think these things should be split into named 'templates' (which defines the extra hardware content) and carts that use them tho, so in cases like this you could specify a template name, but right now that isn't possible, and doing it would require some serious thought.

#109360 - 04/13/17 12:46 PM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Apr 2005
Posts: 523
Darkstar Offline
Senior Member
Darkstar  Offline
Senior Member

Joined: Apr 2005
Posts: 523
GERMANY
They could probably also be implemented as sort of "virtual" slot devices. That way you could set them with some command-line magic. However, the softlist would need to implement a way to specify a "default" slot device. Also, I'm not sure if the concept of "virtual" slots would be accepted, since now as far as I know all "slot"-devices are actual physical slots or sockets of some sort.

#109365 - 04/13/17 08:20 PM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Apr 2012
Posts: 304
ssj Offline
Senior Member
ssj  Offline
Senior Member

Joined: Apr 2012
Posts: 304
Thanks, that's what I figured it would certainly be nice if there was support for this in some way through command line.

#109366 - 04/13/17 08:42 PM Re: Gameboy Mappers from CLI [Re: Darkstar]  
Joined: May 2004
Posts: 1,372
Haze Offline
Very Senior Member
Haze  Offline
Very Senior Member

Joined: May 2004
Posts: 1,372
Originally Posted by Darkstar
They could probably also be implemented as sort of "virtual" slot devices. That way you could set them with some command-line magic. However, the softlist would need to implement a way to specify a "default" slot device. Also, I'm not sure if the concept of "virtual" slots would be accepted, since now as far as I know all "slot"-devices are actual physical slots or sockets of some sort.


yeah, it would really need to be done properly using a newly designed system rather than hacked in using an existing one.

from a logical / documentation point of view a system of templates defined in the xml and cartridges that use them would actually make sense IMHO as cartridge designs were often reused and right now there is a lot of duplication.

#109367 - 04/13/17 08:46 PM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Mar 2001
Posts: 15,609
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,609
USA
Don't the .hsi files still exist? Those map loose ROMs to mappers etc.

#109368 - 04/13/17 08:51 PM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: May 2004
Posts: 1,372
Haze Offline
Very Senior Member
Haze  Offline
Very Senior Member

Joined: May 2004
Posts: 1,372
they were based on filehash to assign mapper weren't they? it so that makes them more work to maintain for a homebrew than simply putting a softlist entry and using invalid crc values while you work on it as you'd have actually update the hash every time rather than just ignoring the mismatch.

Last edited by Haze; 04/13/17 08:52 PM.
#109369 - 04/13/17 08:55 PM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Mar 2001
Posts: 15,609
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,609
USA
Sure, but given that mechanism you could add a -hsi "mapper_69" switch for development. The code could pretend there was a match against the hashfile and use the supplied payload.

#109371 - 04/14/17 10:46 AM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Apr 2012
Posts: 304
ssj Offline
Senior Member
ssj  Offline
Senior Member

Joined: Apr 2012
Posts: 304
Doesn't soflist support names with spaces anymore?

For instance, this works fine under 0.172:
mame64.exe scv "Doraemon (Japan)" -window -hashpath "K:\Emulators\MAME\_Config\hash_custom"

With 0.184 MAME won't start with this error:
Fatal error: Device SCV Cartridge Slot load (scv:Doraemon (Japan):cart) failed: File not found

If I rename "Doraemon (Japan)" to something without spaces it works so it seems support for it got broken somewhere between 172 and 184, only had 172 around to check, but can try testing it with newer releases to find out on which version things got broken exactly.

#109372 - 04/14/17 11:25 AM Re: Gameboy Mappers from CLI [Re: ssj]  
Joined: Mar 2001
Posts: 15,609
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,609
USA
We don't need a specific regression version, just open an Issue on GitHub and make sure to tag @npwoods.

Page 1 of 3 1 2 3

Who's Online Now
4 registered members (rbramante, Praxis, AJR, krick), 20 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,362
Posts108,062
Members4,748
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.043s Queries: 15 (0.017s) Memory: 5.0151 MB (Peak: 5.2447 MB) Zlib enabled. Server Time: 2017-06-22 22:14:04 UTC