improve event handling (still has problems though)
[pcsx_rearmed.git] / frontend / main.c
index e36ad48..fd1c119 100644 (file)
@@ -14,6 +14,7 @@
 #include <unistd.h>
 
 #include "plugin.h"
+#include "pcnt.h"
 #include "../gui/Linux.h"
 #include "../libpcsxcore/misc.h"
 
@@ -86,7 +87,6 @@ int main(int argc, char *argv[])
 
        emuLog = stdout;
        SetIsoFile(NULL);
-       Config.PsxOut = 1;
 
        // read command line options
        for (i = 1; i < argc; i++) {
@@ -192,6 +192,7 @@ int main(int argc, char *argv[])
                        SysMessage("Failed loading plugins!");
                        return 1;
                }
+               pcnt_hook_plugins();
 
                if (OpenPlugins() == -1) {
                        return 1;
@@ -351,19 +352,6 @@ void SysPrintf(const char *fmt, ...) {
        vsprintf(msg, fmt, list);
        va_end(list);
 
-       if (Config.PsxOut) {
-               static char linestart = 1;
-               int l = strlen(msg);
-
-               printf(linestart ? " * %s" : "%s", msg);
-
-               if (l > 0 && msg[l - 1] == '\n') {
-                       linestart = 1;
-               } else {
-                       linestart = 0;
-               }
-       }
-
        fprintf(emuLog, "%s", msg);
 }