Previous Thread
Next Thread
Print Thread
Page 3 of 3 1 2 3
Joined: May 2004
Posts: 1,704
Likes: 2
H
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,704
Likes: 2
Originally Posted By Zadduk
Originally Posted By etabeta78
nor does Handy: see line 84 at http://handy.cvs.sourceforge.net/viewvc/handy/win32src/Cart.cpp?revision=1.2&view=markup
if the header is not present an error is prompted

this leaves 0 chance to retroArch support for headerless roms


RetroArch support lynx headerless roms: https://github.com/libretro/libretro-handy/pull/17/commits/6b5908e554388b587172490e5db85e34b3656094


using unreliable shitty hack code..

but it's RA, so expected.

You either have a database, or you have a header, or you're going to get false positives.

Database approach (aka Software Lists) is preferable for me, allows us to document, in readable text, what is in the cartridges. Allows us to update it, if new information appears, or we're wrong, without forcing everybody to update fake data attached to rom files. Means current 'correct to best of our knowledge' information can always be found in the source.

I think MAME should have a 'cartridge template' model too, so that you can specify a template (defining sram, banking scheme etc.) to load a headerless file into, this would be handy for homebrew development.

Joined: Jul 2010
Posts: 23
Z
Zadduk Offline OP
Member
OP Offline
Member
Z
Joined: Jul 2010
Posts: 23
I understand that MESS devs don't want to support headerless roms, but then don't use them for your softlist.
And I would understand that, if softlist had information about different PCBs in order to load properly a rom... but right now softlist loads the roms based on their size and the same "heuristics which might fail".

Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
No, softlist loads ROMs based on what the softlist entry in the XML says. This info can and does include all of the information that a cartridge header would contain. MAME NES softlist loading can load and run split headerless ROMs for that reason.

Joined: Jul 2010
Posts: 23
Z
Zadduk Offline OP
Member
OP Offline
Member
Z
Joined: Jul 2010
Posts: 23
Not true for lynx softlist which entries does not include the information that a cartridge header would contain. Actually the code get the information:

Code:
if (image.software_entry() == nullptr)
{
        [...] // try to get information from header
}
else
{
        if (size > 0xffff) // 64,128,256,512k cartridges
	        m_granularity = size >> 8;
	else
		m_granularity = 0x400; // Homebrew roms not using all 256 banks (T-Tris) (none currently in softlist)
}


Last edited by Zadduk; 03/30/16 06:02 PM.
Joined: May 2004
Posts: 1,704
Likes: 2
H
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,704
Likes: 2
that could be improved then.

Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
In that case, that code should be moved for loading headerless images and the the softlist path reworked to get the data from XML.

Joined: Dec 2012
Posts: 246
L
Senior Member
Offline
Senior Member
L
Joined: Dec 2012
Posts: 246
Originally Posted By etabeta78
the correct fix is to change extension to the files, or to explain no-intro guys that their creating unsupportable sets by removing the header with no advice to the users.

It should be noted that No-Intro supplies a template to use with clrmame pro to ignore the headers when checking the checksum. However, people still remove the headers in order to fill their romsets. This also applies to other systems where the header is ignored but needed like NES.
This is why No-Intro specifies the lnx extension. It is purely the users at fault.

Page 3 of 3 1 2 3

Link Copied to Clipboard
Who's Online Now
2 members (Pernod, Dorando), 22 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,087
Posts119,095
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com