Previous Thread
Next Thread
Print Thread
#110951 - 10/02/17 04:57 PM osd_subst_env variable  
Joined: Sep 2000
Posts: 193
will Offline
will  Offline

Senior Member

Joined: Sep 2000
Posts: 193
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=
#110952 - 10/02/17 05:18 PM Re: osd_subst_env variable [Re: will]  
Joined: Feb 2004
Posts: 1,850
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,850
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.

#110953 - 10/02/17 05:54 PM Re: osd_subst_env variable [Re: will]  
Joined: Mar 2001
Posts: 15,734
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,734
USA
Can we just rename the ROMs as "(dollar)25.bin" or something?

#110958 - 10/03/17 12:03 AM Re: osd_subst_env variable [Re: will]  
Joined: Feb 2004
Posts: 1,850
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,850
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
3 registered members (Duke, Pernod, Justin), 18 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,426
Posts109,207
Members4,759
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.027s Queries: 14 (0.012s) Memory: 4.9489 MB (Peak: 5.1250 MB) Zlib enabled. Server Time: 2017-10-19 14:31:58 UTC