Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: creatine28 on October 11, 2004, 07:37:29 pm

Title: How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: creatine28 on October 11, 2004, 07:37:29 pm
Can't seem to get the MAME_VALIDITYCHECKS macro to work or    actually to not work? My games still take forever to load?  Is it something in the ini file I need to change?  

Thanks!
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: Minwah on October 12, 2004, 04:52:43 am
AFAIK there is no ini setting - you have to compile your own build to remove it...is that what you're doing?
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: creatine28 on October 12, 2004, 02:06:17 pm
Oh,  I think I misundestood the whats new file for 87u2?

So, if I was to not want the validity checks to run, I would have to comment out  the "MAME_VALIDITYCHECKS macro" in the source?   I was thinking that this was something you could specify via command line?
 Like  "mame.exe -noMame_VALIDITYCHECKS"  or something?




Misc updates [Nathan Woods]
src/mame.c:
 - Created a MAME_VALIDITYCHECKS macro that when defined, can specify whether validity checks should be run.  If undefined, it defaults to running the validity checks.  This will facilitate turning off validity checks in MAME derivative projects.
   Please DO NOT turn these off if you are making changes to the Mame
   source, any changes which fail the validity checks will be rejected.
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: screaming on October 12, 2004, 02:37:12 pm
Oh,  I think I misundestood the whats new file for 87u2?

  Are you compiling from the source?  This is an option that can only be turned off before you compile your own version of MAME.

-Steve
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: creatine28 on October 12, 2004, 02:48:18 pm
yes,   here's the source per the 87u2 dif

+#ifndef MAME_VALIDITYCHECKS
+#define MAME_VALIDITYCHECKS         1
+#endif /* MAME_VALIDITYCHECKS */


+#if MAME_VALIDITYCHECKS
    if (mame_validitychecks())
       return 1;
+#endif /* MAME_VALIDITYCHECKS */
 
Would I just  remove the # from the Source above ?
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: screaming on October 12, 2004, 03:11:35 pm
yes,   here's the source per the 87u2 dif

+#ifndef MAME_VALIDITYCHECKS
+#define MAME_VALIDITYCHECKS         1
+#endif /* MAME_VALIDITYCHECKS */


+#if MAME_VALIDITYCHECKS
    if (mame_validitychecks())
       return 1;
+#endif /* MAME_VALIDITYCHECKS */
 
Would I just  remove the # from the Source above ?


  All you have to do is put

MAME_VALIDITYCHECKS = 0


 in the makefile (at the top is fine), then run make.

-Steve
Title: Re:How to disable MAME_VALIDITYCHECKS macro in 87u2?
Post by: creatine28 on October 12, 2004, 03:49:06 pm
Oh! That's all?   Guess I was complicating things by thinking too much! hahahaha


Thanks for the help!


Steve