Package: wesnoth-1.12 / 1:1.12.6-1+deb9u1

03wesnothd-name Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Gerfried Fuchs <rhonda@debian.org>	vim:ft=diff:
Description: Search for wesnothd-1.12 instead of plain wesnothd

--- a/src/game_preferences_display.cpp
+++ b/src/game_preferences_display.cpp
@@ -1489,7 +1489,7 @@
 #ifndef WESNOTH_PREFIX
 #define WESNOTH_PREFIX "/usr"
 #endif
-	const std::string filename = "wesnothd";
+	const std::string filename = "wesnothd-1.12";
 	std::string path = WESNOTH_PREFIX + std::string("/bin");
 	if (!filesystem::is_directory(path))
 		path = filesystem::get_cwd();
--- a/src/game_controller.cpp
+++ b/src/game_controller.cpp
@@ -759,7 +759,7 @@
 {
 	const std::string wesnothd_program =
 		preferences::get_mp_server_program_name().empty() ?
-		filesystem::get_program_invocation("wesnothd") : preferences::get_mp_server_program_name();
+		filesystem::get_program_invocation("wesnothd-1.12") : preferences::get_mp_server_program_name();
 
 	std::string config = filesystem::get_user_config_dir() + "/lan_server.cfg";
 	if (!filesystem::file_exists(config)) {