http://bugs.winehq.org/show_bug.cgi?id=19939
Summary: SRCDS - Console only Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: laurikoivunen@hotmail.com
While using SRCDS (valve's Source Dedicated Server) over wine you are required to use X even if one issues -console in the program parameters (will launch a wine console). This is extremely frustrating because then you also need to use X to even see something on the console window.
I found a workaround. Hack kernel32's AllocConsole to just return true and make something like this with GetNumberOfConsoleInputEvents: ================ BOOL WINAPI GetNumberOfConsoleInputEvents( HANDLE handle, LPDWORD nrofevents ) { if (nrofevents) *nrofevents = 0; return TRUE; } ================
.. and issue export DISPLAY=''
This will allow running the server in console only mode but this naturally disables text input. My C skills are nonexistent so I am asking here if a wine developer could make this work.