MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

crazyc
MAME Fan
Reged: 06/23/16
Posts: 62
Send PM
Re: Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name
11/28/17 04:02 PM


Gamename gives the romset fullname. For the software name use can use emu.softname() for the short loaded software list entry name or manager:machine().images[*imagedev*]:longname() for the softlist entry description (*imagedev* is the image device the softlist entry is loaded into "cart" for the nes). This works only for softlist images, for fullpath loaded images you're on your own.

Edited by crazyc (11/28/17 04:03 PM)







Entire thread
Subject Posted by Posted on
* Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name Jfarro 11/28/17 12:14 PM
. * Re: Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name crazyc  11/28/17 04:02 PM
. * Re: Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name Jfarro  11/29/17 12:17 PM
. * Re: Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name crazyc  11/29/17 05:18 PM
. * Re: Mame LUA extensibility - emu.gamename() returning "Nintendo" instead of cartridge name Jfarro  12/11/17 09:46 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1185