DEV9: Use PS2Ext.h SysMessage() on Linux

We still need to use the narrow char SysMessage() on windows
This commit is contained in:
TheLastRar authored and refractionpcsx2 committed 2021-02-17 15:07:10 +00:00
1 parent 81fd8e011f
commit 6177f89c3f
2 files changed
+3 -18

No files matched your search

+3
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
-18
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;