Author: suokko
Date: Fri Jun 27 16:46:41 2008
New Revision: 27529

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27529&view=rev
Log:
Added support for custom server binary naming to game_config

Modified:
    trunk/data/_main.cfg
    trunk/src/game_config.cpp

Modified: trunk/data/_main.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/_main.cfg?rev=27529&r1=27528&r2=27529&view=diff
==============================================================================
--- trunk/data/_main.cfg (original)
+++ trunk/data/_main.cfg Fri Jun 27 16:46:41 2008
@@ -121,6 +121,9 @@
         name=_"Alternate Wesnoth Server"
         address=server3.wesnoth.org:15000
     [/server]
+#ifdef APPLE
+    wesnothd_name="Battle for Wesnoth server"
+#endif
 
     base_income=2
     village_income=1

Modified: trunk/src/game_config.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_config.cpp?rev=27529&r1=27528&r2=27529&view=diff
==============================================================================
--- trunk/src/game_config.cpp (original)
+++ trunk/src/game_config.cpp Fri Jun 27 16:46:41 2008
@@ -215,6 +215,10 @@
                        sinf.name = (**server)["name"];
                        sinf.address = (**server)["address"];
                        server_list.push_back(sinf);
+               }
+               if (!v["wesnothd_name"].empty())
+               {
+                       game_config::wesnothd_name = v["wesnothd_name"];
                }
        }
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to