File: add-debian-defaults.diff

package info (click to toggle)
fgrun 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,352 kB
  • ctags: 701
  • sloc: cpp: 7,615; sh: 507; makefile: 26; ansic: 8
file content (22 lines) | stat: -rw-r--r-- 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Add default directories used by Debian
 If not given, fgrun asks the user to provide several directories. We
 ease this process by defaulting to the install locations used by Debian.
Author: Markus Wanner <markus@bluegap.ch>

--- a/src/main.cxx
+++ b/src/main.cxx
@@ -37,10 +37,10 @@
 #include "wizard.h"
 #include "i18n.h"
 
-std::string def_fg_exe = "";
-std::string def_fg_root = "";
-std::string def_fg_scenery = "";
-std::string def_ts_exe = "";
+std::string def_fg_exe = "/usr/games/fgfs";
+std::string def_fg_root = "/usr/share/games/flightgear";
+std::string def_fg_scenery = "/usr/share/games/flightgear/Scenery";
+std::string def_ts_exe = "/usr/games/terrasync";
 std::string version = "";
 int def_ts_dir = -1;
 static bool silent = false;