mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Different version of OSX segfault fix (nw)
This commit is contained in:
parent
65cd55ff6b
commit
0a6b226deb
@ -194,7 +194,7 @@ int cli_frontend::execute(int argc, char **argv)
|
||||
if (!found)
|
||||
{
|
||||
software_list_device::display_matches(config, NULL, m_options.software_name());
|
||||
throw emu_fatalerror(MAMERR_FATALERROR, "");
|
||||
throw emu_fatalerror(MAMERR_FATALERROR, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -290,33 +290,45 @@ public:
|
||||
emu_fatalerror(const char *format, ...) ATTR_PRINTF(2,3)
|
||||
: code(0)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
vsprintf(text, format, ap);
|
||||
va_end(ap);
|
||||
if (format != NULL)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
vsprintf(text, format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
osd_break_into_debugger(text);
|
||||
}
|
||||
|
||||
emu_fatalerror(const char *format, va_list ap)
|
||||
: code(0)
|
||||
{
|
||||
vsprintf(text, format, ap);
|
||||
if (format != NULL)
|
||||
{
|
||||
vsprintf(text, format, ap);
|
||||
}
|
||||
osd_break_into_debugger(text);
|
||||
}
|
||||
|
||||
emu_fatalerror(int _exitcode, const char *format, ...) ATTR_PRINTF(3,4)
|
||||
: code(_exitcode)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
vsprintf(text, format, ap);
|
||||
va_end(ap);
|
||||
if (format != NULL)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
vsprintf(text, format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
|
||||
emu_fatalerror(int _exitcode, const char *format, va_list ap)
|
||||
: code(_exitcode)
|
||||
{
|
||||
vsprintf(text, format, ap);
|
||||
if (format != NULL)
|
||||
{
|
||||
vsprintf(text, format, ap);
|
||||
}
|
||||
}
|
||||
|
||||
const char *string() const { return text; }
|
||||
|
Loading…
Reference in New Issue
Block a user