MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


[Q] Effect overlay filenames
#237193 - 10/24/10 11:34 AM


hi,
I wonder if you need to include the .PNG extension in the -effect parameter or just the filename without the extension.

I'm asking because it works either way, but I'm curious if MAME tries to validate the PNG file format or not.

thanks for any info.



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



etabeta
Reged: 08/25/04
Posts: 2036
Send PM


Re: [Q] Effect overlay filenames new [Re: CiroConsentino]
#237239 - 10/24/10 10:38 PM


check src/emu/video.c (namely the code for load_effect_overlay): the extension you give from command line, if any, is stripped by MAME and replaced with .png, then the file is loaded by render_load_png which in turn uses png_read_file from src/lib/util/png.c (and this one, among other things, verifies the file header and complains if it is not a real .png)

all of the above, if I'm not reading the code in the wrong way...



CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


Re: [Q] Effect overlay filenames new [Re: etabeta]
#237245 - 10/24/10 11:59 PM


thanks for the help.



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 560 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1998