]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
winquake.h is gone, absorbed into the respective files which used it, also cleaned...
[xonotic/darkplaces.git] / sys_win.c
index f3ea0e28ccc078cdde8151418aacb57bd10a693e..ad69c1cd206b4f1fbdf5abdf079a7c79a44b0227 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -20,12 +20,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 // sys_win.c -- Win32 system interface code
 
 #include "quakedef.h"
-#include "winquake.h"
+#include <windows.h>
+#include <dsound.h>
 #include "errno.h"
 #include "resource.h"
 #include "conproc.h"
 #include "direct.h"
 
+extern void S_BlockSound (void);
+extern void S_UnblockSound (void);
+
 cvar_t sys_usetimegettime = {CVAR_SAVE, "sys_usetimegettime", "1"};
 
 // # of seconds to wait on Sys_Error running dedicated before exiting
@@ -318,7 +322,6 @@ WinMain
 ==================
 */
 HINSTANCE      global_hInstance;
-int                    global_nCmdShow;
 const char     *argv[MAX_NUM_ARGVS];
 char           program_name[MAX_OSPATH];
 
@@ -333,7 +336,6 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                return 0;
 
        global_hInstance = hInstance;
-       global_nCmdShow = nCmdShow;
 
        lpBuffer.dwLength = sizeof(MEMORYSTATUS);
        GlobalMemoryStatus (&lpBuffer);