Revision: 8528 http://playerstage.svn.sourceforge.net/playerstage/?rev=8528&view=rev Author: rtv Date: 2010-01-26 01:35:24 +0000 (Tue, 26 Jan 2010)
Log Message: ----------- tracking ws changes Modified Paths: -------------- code/stage/trunk/webstage/webstage.cc Modified: code/stage/trunk/webstage/webstage.cc =================================================================== --- code/stage/trunk/webstage/webstage.cc 2010-01-25 22:33:23 UTC (rev 8527) +++ code/stage/trunk/webstage/webstage.cc 2010-01-26 01:35:24 UTC (rev 8528) @@ -10,7 +10,8 @@ { "gui", no_argument, NULL, 'g' }, { "port", required_argument, NULL, 'p' }, { "host", required_argument, NULL, 'h' }, - { "federation", required_argument, NULL, 'f' }, + //{ "federation", required_argument, NULL, 'f' }, + { "root", required_argument, NULL, 'r' }, { NULL, 0, NULL, 0 } }; @@ -20,8 +21,10 @@ public: WebStage( Stg::World* world, - const std::string& host, const unsigned short port ) : - websim::WebSim( host, port ), + const std::string& host, + const unsigned short port, + const std::string rootdir ) + : websim::WebSim( host, port, rootdir ), world(world) { } @@ -581,6 +584,8 @@ std::string fedfilename = ""; std::string host = "localhost"; + std::string rootdir = "."; + unsigned short port = 8000; int ch=0, optindex=0; @@ -608,6 +613,9 @@ fedfilename = optarg; usefedfile = true; break; + case 'r': + rootdir = std::string(optarg); + printf( "rootdir set to %s\n", rootdir.c_str() ); case '?': break; default: @@ -630,11 +638,11 @@ new World( worldfilename ) ); world->Load( worldfilename ); - WebStage ws( world, host, port ); + WebStage ws( world, host, port, rootdir ); //if( usefedfile ) // ws.LoadFederationFile( fedfilename ); - + ws.Startup( true ); // start http server if( ! world->paused ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit