summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/winmain.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2011-07-28 11:23:37 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2011-07-28 11:23:37 +0000
commit919780a6bca9a3cca673c82e916e3d2c918f8e64 (patch)
treed2e06cbce072df5d249f9826ea4fc0b4b436fb8d /src/osd/windows/winmain.c
parent1429b0052e821500ef753f4358fd6c43a5146dfe (diff)
Added socket support to windows osd [Miodrag Milanovic]
Diffstat (limited to 'src/osd/windows/winmain.c')
-rw-r--r--src/osd/windows/winmain.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c
index b03bc27752e..1e28b869e82 100644
--- a/src/osd/windows/winmain.c
+++ b/src/osd/windows/winmain.c
@@ -70,6 +70,7 @@
#include "winutf8.h"
#include "winutil.h"
#include "debugger.h"
+#include "winfile.h"
#define DEBUG_SLOW_LOCKS 0
@@ -552,7 +553,8 @@ static void winui_output_error(void *param, const char *format, va_list argptr)
static void output_oslog(running_machine &machine, const char *buffer)
{
- win_output_debug_string_utf8(buffer);
+ if (IsDebuggerPresent())
+ win_output_debug_string_utf8(buffer);
}
@@ -677,6 +679,9 @@ void windows_osd_interface::init(running_machine &machine)
profiler->start();
}
+ // initialize sockets
+ win_init_sockets();
+
// note the existence of a machine
g_current_machine = &machine;
}
@@ -691,6 +696,9 @@ void windows_osd_interface::osd_exit(running_machine &machine)
// no longer have a machine
g_current_machine = NULL;
+ // cleanup sockets
+ win_cleanup_sockets();
+
// take down the watchdog thread if it exists
if (watchdog_thread != NULL)
{