Previous Thread
Next Thread
Print Thread
osd_subst_env variable #110951
10/02/17 04:57 PM
10/02/17 04:57 PM
Joined: Sep 2000
Posts: 194
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 194
DC, USA
Hello folks, I get a bunch of these "osd_subst_env variable" not found error messages when verifying roms. Is this anything to worry about? Is this a known bug or can I fix this?

Code
Warning: osd_subst_env variable 25 not found.
Warning: osd_subst_env variable 25 not found.
Warning: osd_subst_env variable 25 not found.
Warning: osd_subst_env variable 25 not found.
Warning: osd_subst_env variable 25 not found.
Warning: osd_subst_env variable 26 not found.
Warning: osd_subst_env variable 26 not found.
Warning: osd_subst_env variable 26 not found.
Warning: osd_subst_env variable 26 not found.
Warning: osd_subst_env variable 26 not found.
Warning: osd_subst_env variable 27 not found.
Warning: osd_subst_env variable 27 not found.
Warning: osd_subst_env variable 27 not found.
Warning: osd_subst_env variable 27 not found.
Warning: osd_subst_env variable 27 not found.
Warning: osd_subst_env variable 14 not found.
Warning: osd_subst_env variable 14 not found.
Warning: osd_subst_env variable 14 not found.
Warning: osd_subst_env variable 14 not found.
Warning: osd_subst_env variable 14 not found.


=will=
Re: osd_subst_env variable [Re: will] #110952
10/02/17 05:18 PM
10/02/17 05:18 PM
Joined: Feb 2004
Posts: 1,981
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,981
Sydney, Australia
It's caused by this in goldnpokr.cpp:
Code
ROM_START( witchcdf )
    ROM_REGION( 0x10000, "maincpu", 0 )
    ROM_LOAD( "$25.bin",    0x5000, 0x1000, CRC(afd6cb4a) SHA1(4c769e1c724bada5875e028781086c32967953a1) )
    ROM_LOAD( "$26.bin",    0x6000, 0x1000, CRC(ad11960c) SHA1(2b562cfe9401e21c9dcd90307165e2c2d1acfc5b) )
    ROM_LOAD( "$27.bin",    0x7000, 0x1000, CRC(e6f9c973) SHA1(f209d13d1565160bc2c05c6c4fce73d14a9a56ab) )

    ROM_REGION( 0x3000, "gfx1", 0 )
    ROM_FILL(               0x0000, 0x2000, 0x0000 ) /* filling the R-G bitplanes */
    ROM_LOAD( "$14.bin",    0x2000, 0x1000, CRC(19b68bec) SHA1(b8ef17ba5545e2f104cd2783e5f1c97c400fcbbc) )    /* text layer */

    ROM_REGION( 0x3000, "gfx2", 0 )
    ROM_LOAD( "11.bin", 0x0000, 0x1000, CRC(b5a1f5a3) SHA1(a34aaaab5443c6962177a5dd35002bd09d0d2772) )    /* cards deck gfx, bitplane1 */
    ROM_LOAD( "12.bin", 0x1000, 0x1000, CRC(40e426af) SHA1(7e7cb30dafc96bcb87a05d3e0ef5c2d426ed6a74) )    /* cards deck gfx, bitplane2 */
    ROM_LOAD( "13.bin", 0x2000, 0x1000, CRC(232374f3) SHA1(b75907edbf769b8c46fb1ebdb301c325c556e6c2) )    /* cards deck gfx, bitplane3 */

    ROM_REGION( 0x0100, "proms", 0 )
    ROM_LOAD( "wc_bprom.bin",   0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) )
ROM_END


The ROM names with dollar signs in them look enough like variable expressions on *NIX so MAME attempts to substitute them. On Windows the variable expression syntax is different, using % characters instead so this particular code doesn't upset it. Fixing it properly would require some substantial changes to some fundamental things, so I'm not keen to mess with it right now.

Re: osd_subst_env variable [Re: will] #110953
10/02/17 05:54 PM
10/02/17 05:54 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
USA
Can we just rename the ROMs as "(dollar)25.bin" or something?

Re: osd_subst_env variable [Re: will] #110958
10/03/17 12:03 AM
10/03/17 12:03 AM
Joined: Feb 2004
Posts: 1,981
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,981
Sydney, Australia
Be my guest - it'll shut up some annoying messages until I can rework this stuff to do the substitution when evaluating options rather than when opening files.


Moderated by  R. Belmont 

Who's Online Now
2 registered members (Edstrom, 1 invisible), 42 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,564
Posts111,885
Members4,805
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.079s Queries: 14 (0.055s) Memory: 5.6056 MB (Peak: 5.7766 MB) Zlib enabled. Server Time: 2018-08-15 18:43:29 UTC