Jump to content

MAMEoX coding and compiling skills


HK$

Recommended Posts

Now I think we should start a new thread to comunicate about MAMEoX coding and compiling skills. :(

 

I have fixed the debug.log problem, MAMEoX wont log any debug info now.

It's not in Debugloger.h nor Debugloger.c, It's in common.c of MAME project.

 

find

 

/*-------------------------------------------------
debugload - log data to a file
-------------------------------------------------*/

void CLIB_DECL debugload(const char *string,...)
{
#ifdef LOG_LOAD
static int opened;
va_list arg;
FILE *f;

f = fopen("d:\\debug.log",  "a" );
if (f)
{
 va_start(arg, string);
 vfprintf(f, string, arg);
 va_end(arg);
 fclose(f);
}
#endif
}

 

change to

 

/*-------------------------------------------------
debugload - log data to a file
-------------------------------------------------*/

void CLIB_DECL debugload(const char *string,...)
{
#ifdef LOG_LOAD
static int opened;
va_list arg;
FILE *f;

f = fopen("romload.log", opened++ ? "a" : "w");
if (f)
{
 va_start(arg, string);
 vfprintf(f, string, arg);
 va_end(arg);
 fclose(f);
}
#endif
}

 

I think you can just change "d:\\debug.log" to "debug.log" and it will still work, but this is what it should be.

 

I also added bender's NEOGEO BIOS change code to my build and rewrite alot to make it better. THX :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...