DEV9: Use PS2Ext.h SysMessage() on Linux

We still need to use the narrow char SysMessage() on windows
This commit is contained in:
TheLastRar 2021-02-08 20:00:05 +00:00 committed by refractionpcsx2
parent 81fd8e011f
commit 6177f89c3f
2 changed files with 3 additions and 18 deletions

View File

@ -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

View File

@ -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;