mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Use PS2Ext.h SysMessage() on Linux
We still need to use the narrow char SysMessage() on windows
This commit is contained in:
parent
81fd8e011f
commit
6177f89c3f
|
@ -139,7 +139,10 @@ EXTERN int ThreadRun;
|
|||
extern std::string s_strIniPath;
|
||||
extern std::string s_strLogPath;
|
||||
|
||||
#ifdef _WIN32
|
||||
//Use own SysMessage for narrow char support
|
||||
void SysMessage(char* fmt, ...);
|
||||
#endif
|
||||
|
||||
#define DEV9_R_REV 0x1f80146e
|
||||
|
||||
|
|
|
@ -38,24 +38,6 @@
|
|||
|
||||
static GtkBuilder* builder = nullptr;
|
||||
|
||||
void SysMessage(char* fmt, ...)
|
||||
{
|
||||
va_list list;
|
||||
char tmp[512];
|
||||
|
||||
va_start(list, fmt);
|
||||
vsprintf(tmp, fmt, list);
|
||||
va_end(list);
|
||||
|
||||
GtkWidget* dialog = gtk_message_dialog_new(NULL,
|
||||
GTK_DIALOG_MODAL,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_CLOSE,
|
||||
"%s", tmp);
|
||||
gtk_dialog_run(GTK_DIALOG(dialog));
|
||||
gtk_widget_hide(dialog);
|
||||
}
|
||||
|
||||
void OnInitDialog()
|
||||
{
|
||||
char* dev;
|
||||
|
|
Loading…
Reference in New Issue