OSDN Git Service

Added a new command line to specify floodgate_history.yaml file.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 7 Nov 2008 07:15:08 +0000 (07:15 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 7 Nov 2008 07:15:08 +0000 (07:15 +0000)
shogi-server

index 2e2a0ff..07e42a6 100755 (executable)
@@ -58,6 +58,9 @@ OPTIONS
         --player-log-dir dir
                 log network messages for each player. Log files
                 will be put in the dir.
         --player-log-dir dir
                 log network messages for each player. Log files
                 will be put in the dir.
+        --floodgate_history
+                file name to record Floodgate game history
+                default: './floodgate_history.yaml'
 
 LICENSE
        GPL versoin 2 or later
 
 LICENSE
        GPL versoin 2 or later
@@ -237,6 +240,8 @@ def main
   if $options["pid-file"] 
     $options["pid-file"] = File.expand_path($options["pid-file"])
   end
   if $options["pid-file"] 
     $options["pid-file"] = File.expand_path($options["pid-file"])
   end
+  $options["floodgate-history"] ||= File.join(File.dirname(__FILE__), "floodgate_history.yaml")
+  $options["floodgate-history"] = File.expand_path($options["floodgate-history"])
 
   LEAGUE.event = ARGV.shift
   port = ARGV.shift
 
   LEAGUE.event = ARGV.shift
   port = ARGV.shift