clarkh
Posts: 1
Joined: Sat Jul 11, 2020 7:22 am

How to convert "tiny_rom_entry" to "rom_entry"?

I want add the ips feature from mameplus to new mame, and it's worked on mame 175.
But when I move it to mame 222, something is different:

these codes work fine on mame 175:
rom_load_manager::rom_load_manager(running_machine &machine)
........
// reset the disk list
m_chd_list.clear();

//ips code
if (patchname && *patchname)
{
if (!open_ips_entry(machine, patchname, machine.system().rom))
{
display_rom_load_results(false);
// return;
}
}


// process the ROM entries we were passed
process_region_list();
........
but on mame 222, "machine.system().rom" is "tiny_rom_entry", I need "rom_entry" to patch the ips, so I copy some code from other mame src, like this
if (!open_ips_entry(machine, patchname, &(rom_build_entries(machine.system().rom)[0])))
everything is right, building is right, patching is right, log is right, but nothing happen to the game, no ips worked(see the attachments)...

why??? I need help... :oops: :oops: :oops: :oops: :oops: :oops: :oops:
thanks...
Attachments
1.jpg
1.jpg (83.09 KiB) Viewed 2887 times

Return to “MAME Discussion”