mail[Wesnoth-commits] r33338 - /trunk/src/campaign_server/campaign_server.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on March 04, 2009 - 13:25:
Author: silene
Date: Wed Mar  4 13:25:00 2009
New Revision: 33338

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33338&view=rev
Log:
Fixed campaignd using relative path.

Modified:
    trunk/src/campaign_server/campaign_server.cpp

Modified: trunk/src/campaign_server/campaign_server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/campaign_server/campaign_server.cpp?rev=33338&r1=33337&r2=33338&view=diff
==============================================================================
--- trunk/src/campaign_server/campaign_server.cpp (original)
+++ trunk/src/campaign_server/campaign_server.cpp Wed Mar  4 13:25:00 2009
@@ -738,10 +738,11 @@
        lg::timestamps(true);
        try {
                printf("argc %d argv[0] %s 1 %s\n",argc,argv[0],argv[1]);
+               std::string cfg_path = normalize_path("server.cfg");
                if(argc >= 2 && atoi(argv[1])){
-                       campaign_server("server.cfg",atoi(argv[1])).run();
+                       campaign_server(cfg_path, atoi(argv[1])).run();
                }else {
-                       campaign_server("server.cfg").run();
+                       campaign_server(cfg_path).run();
                }
        } catch(config::error& /*e*/) {
                std::cerr << "Could not parse config file\n";




Related Messages


Powered by MHonArc, Updated Wed Mar 04 14:40:16 2009