Add stubs for server config reading and writing routines
authorunc0rr
Mon, 28 Feb 2011 22:28:43 +0300
changeset 4974 078cd026a7b1
parent 4973 53411a26df7e
child 4975 31da8979e5b1
child 4976 088d40d8aba2
Add stubs for server config reading and writing routines
gameServer/ConfigFile.hs
gameServer/hedgewars-server.cabal
gameServer/hedgewars-server.hs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gameServer/ConfigFile.hs	Mon Feb 28 22:28:43 2011 +0300
@@ -0,0 +1,11 @@
+module ConfigFile where
+
+import Data.TConfig
+-------------------
+import CoreTypes
+
+readServerConfig :: ServerInfo -> IO ServerInfo
+readServerConfig = undefined
+
+writeServerConfig :: ServerInfo -> IO
+writeServerConfig = undefined
--- a/gameServer/hedgewars-server.cabal	Mon Feb 28 22:04:10 2011 +0300
+++ b/gameServer/hedgewars-server.cabal	Mon Feb 28 22:28:43 2011 +0300
@@ -28,6 +28,7 @@
     dataenc,
     hslogger,
     process,
-    deepseq
+    deepseq,
+    tconfig
 
   ghc-options: -O2
--- a/gameServer/hedgewars-server.hs	Mon Feb 28 22:04:10 2011 +0300
+++ b/gameServer/hedgewars-server.hs	Mon Feb 28 22:28:43 2011 +0300
@@ -15,6 +15,7 @@
 import Opts
 import CoreTypes
 import ServerCore
+import ConfigFile
 
 #if !defined(mingw32_HOST_OS)
 import System.Posix