mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-09 13:05:24 +01:00
973d8b2005
*Converted every 4 spaces to a tab to make the source consistent on those
22 lines
365 B
C++
22 lines
365 B
C++
#include <string.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "language/gettext.h"
|
|
#include "prompts/PromptWindows.h"
|
|
|
|
extern "C" void ShowError(const char * format, ...)
|
|
{
|
|
char *tmp=0;
|
|
va_list va;
|
|
va_start(va, format);
|
|
if((vasprintf(&tmp, format, va)>=0) && tmp)
|
|
{
|
|
WindowPrompt(tr("Error:"), tmp, tr("OK"));
|
|
}
|
|
va_end(va);
|
|
|
|
if(tmp)
|
|
free(tmp);
|
|
}
|