mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-30 21:21:49 +01:00
d66d747d98
- added port $3E emulation (SMS, GG) - added SMS & GG BIOS support - added an option to run BIOS without cartridge - added separate ROM browsers for SG-1000, Master System, Game Gear & Mega Drive / Genesis - changed Cheat menu icon - moved ROM device selection (SD,USB,DVD) to menu options - moved savestate compression/decompression out of emulator core - removed useless background images & background color option - prevented deletion of cheat files when no valid codes are found left - added IOS patch on startup to fix Homebrew Channel network bug when <no_ios_reload> option is used [GUI] -
36 lines
487 B
C
36 lines
487 B
C
/*
|
|
error.c --
|
|
Error logging
|
|
*/
|
|
|
|
#include "osd.h"
|
|
|
|
static FILE *error_log;
|
|
|
|
void error_init(void)
|
|
{
|
|
#ifdef LOGERROR
|
|
error_log = fopen("error.log","w");
|
|
#endif
|
|
}
|
|
|
|
void error_shutdown(void)
|
|
{
|
|
#ifdef LOGERROR
|
|
if(error_log) fclose(error_log);
|
|
#endif
|
|
}
|
|
|
|
void error(char *format, ...)
|
|
{
|
|
#ifdef LOGERROR
|
|
if (log_error)
|
|
{
|
|
va_list ap;
|
|
va_start(ap, format);
|
|
if(error_log) vfprintf(error_log, format, ap);
|
|
va_end(ap);
|
|
}
|
|
#endif
|
|
}
|