]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Added IDWMaster_Loop for running code on main thraed
authorBrian Bosak <webadm@elcnet.servehttp.com>
Fri, 9 Aug 2013 18:23:37 +0000 (13:23 -0500)
committerBrian Bosak <webadm@elcnet.servehttp.com>
Fri, 9 Aug 2013 19:57:08 +0000 (14:57 -0500)
host.c
idwmaster_gameroom.c
idwmaster_gameroom.h

diff --git a/host.c b/host.c
index a54067af5250d3d20aaba69fe285f418f5a3e019..3828c8b066c0d58349b71c26a1e293b8419a0566 100644 (file)
--- a/host.c
+++ b/host.c
@@ -763,7 +763,8 @@ void Host_Main(void)
                // be undersleeping due to select() detecting a new packet
                if (sv.active && !svs.threaded)
                        NetConn_ServerFrame();
-
+               //TODO: IDW main loop
+               IDWMaster_Loop();
                Curl_Run();
 
                // check for commands typed to the host
index c892e4dfc8d085148734d6235c864271f03ae51b..1710892c25d72a901e123ec84e8f52f9a4095f96 100644 (file)
@@ -50,7 +50,9 @@ static void TCPConnect(const char* hostname, int port, void(*connectDgate)(int))
        memcpy(ptr->hostname,hostname,strlen(hostname)+1);
        Thread_CreateThread(callback,ptr);
 }
+void IDWMaster_Loop() {
 
+}
 static void msgloop(int sock) {
        unsigned char buffer[2048];
        while(recv(sock,buffer,sizeof(buffer),0)>0) {
index d5a837b6d4f31cc9c9ac5f88ed9bc945d475978d..131400f3bc8170f2bf1788d82396b541a58db99e 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef IDWMASTER_GAMEROOM_H_
 #define IDWMASTER_GAMEROOM_H_
 void IDWMaster_Init();
-
+void IDWMaster_Loop();
 
 
 #endif /* IDWMASTER_GAMEROOM_H_ */