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.
|
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]
|
|
|
Re: [Q] Effect overlay filenames
[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
[Re: etabeta]
#237245 - 10/24/10 11:59 PM
|
|
|
|