MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   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/29/17 05:18 PM


Are you loading from the softlist or fullpath?

With softlist loading you'll get something like:

Code:

mess64 -debug nes smb -plugin console
_/ _/ _/_/ _/ _/ _/_/_/_/
_/_/ _/_/ _/ _/ _/_/ _/_/ _/
_/ _/ _/ _/_/_/_/ _/ _/ _/ _/_/_/
_/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/_/_/_/

mess 0.191
Copyright (C) Nicola Salmoria and the MAME team

Lua 5.3
Copyright (C) Lua.org, PUC-Rio

[MAME]>

MESS debugger version 0.191 (unknown)
Currently targeting nes (Nintendo Entertainment System / Famicom (NTSC))
[MAME]> print(emu.softname())
smb
[MAME]> print(manager:machine().images["cart"]:longname())
Super Mario Bros. (Euro, Rev. A)
[MAME]>


With fullpath loading you'll get empty strings for both. manager:machine().images["cart"]:filename() will get you the file name but that's all that's available.







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 35 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1262