diff TaskManager/Test/test_render/main.cc @ 537:577043af6684 draft

get linda server addr from command line arg
author kazz@e065701.local
date Fri, 23 Oct 2009 14:13:03 +0900
parents 0d2dc1869cbe
children
line wrap: on
line diff
--- a/TaskManager/Test/test_render/main.cc	Fri Oct 23 00:20:34 2009 +0900
+++ b/TaskManager/Test/test_render/main.cc	Fri Oct 23 14:13:03 2009 +0900
@@ -35,6 +35,7 @@
     int height = 480;
     int spenum = 1;
     const char *xml  = "xml_file/cube.xml";
+	const char *linda_serv = "localhost";
     video_type vtype = VTYPE_SDL;
 
     for(int i = 1; argv[i]; ++i)
@@ -51,6 +52,9 @@
 	if (strcmp(argv[i], "-xml") == 0) {
 	    xml = argv[++i];
 	}
+	if (strcmp(argv[i], "-linda") == 0) {
+	    linda_serv = argv[++i];
+	}
 	if (strcmp(argv[i], "-sg") == 0) {
 	    sg_number = (atoi)(argv[++i]);
 	}
@@ -77,7 +81,7 @@
     }
 
     screen->video_init(manager);
-    screen->run_init(manager, xml, sg_number);
+    screen->run_init(manager, xml, sg_number, linda_serv);
 
     manager->set_TMend(TMend);