mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-05 19:15:07 +01:00
22 lines
371 B
C++
22 lines
371 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);
|
||
|
}
|