video/dedicated_v.c
changeset 2210 58a293892a66
parent 2195 8960c86bf103
child 2228 7014d372374f
equal deleted inserted replaced
2209:53b1df15a9fe 2210:58a293892a66
    84 
    84 
    85 	hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)CheckForConsoleInput, NULL, 0, &dwThreadId);
    85 	hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)CheckForConsoleInput, NULL, 0, &dwThreadId);
    86 	if (hThread == NULL)
    86 	if (hThread == NULL)
    87 		error("Cannot create console thread!");
    87 		error("Cannot create console thread!");
    88 
    88 
    89 	DEBUG(misc, 0) ("Windows console thread started...");
    89 	DEBUG(driver, 1) ("Windows console thread started...");
    90 }
    90 }
    91 
    91 
    92 static void CloseWindowsConsoleThread(void)
    92 static void CloseWindowsConsoleThread(void)
    93 {
    93 {
    94 	CloseHandle(hThread);
    94 	CloseHandle(hThread);
    95 	CloseHandle(hEvent);
    95 	CloseHandle(hEvent);
    96 	DEBUG(misc, 0) ("Windows console thread shut down...");
    96 	DEBUG(driver, 1) ("Windows console thread shut down...");
    97 }
    97 }
    98 
    98 
    99 #endif
    99 #endif
   100 
   100 
   101 
   101 
   124 #ifdef __OS2__
   124 #ifdef __OS2__
   125 	// For OS/2 we also need to switch to console mode instead of PM mode
   125 	// For OS/2 we also need to switch to console mode instead of PM mode
   126 	OS2_SwitchToConsoleMode();
   126 	OS2_SwitchToConsoleMode();
   127 #endif
   127 #endif
   128 
   128 
   129 	DEBUG(misc,0)("Loading dedicated server...");
   129 	DEBUG(driver, 1)("Loading dedicated server...");
   130 	return NULL;
   130 	return NULL;
   131 }
   131 }
   132 
   132 
   133 static void DedicatedVideoStop(void)
   133 static void DedicatedVideoStop(void)
   134 {
   134 {