summaryrefslogtreecommitdiff
path: root/libre/luxmark/system_scenes.diff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-05 00:57:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:00 -0300
commit122f0df369908544af768323efb2be23d534a4b9 (patch)
treefc6c0ec6c72c10630a123d2bda799a647bc9bdda /libre/luxmark/system_scenes.diff
parentdca89d3e1ba204a9bd87965105af85b726bd7dfc (diff)
downloadabslibre-122f0df369908544af768323efb2be23d534a4b9.tar.gz
abslibre-122f0df369908544af768323efb2be23d534a4b9.tar.bz2
abslibre-122f0df369908544af768323efb2be23d534a4b9.zip
add libre/luxmark package
Diffstat (limited to 'libre/luxmark/system_scenes.diff')
-rw-r--r--libre/luxmark/system_scenes.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/libre/luxmark/system_scenes.diff b/libre/luxmark/system_scenes.diff
new file mode 100644
index 000000000..fcdf1ca05
--- /dev/null
+++ b/libre/luxmark/system_scenes.diff
@@ -0,0 +1,21 @@
+diff -rup luxrender-luxmark-985b948aa5c7/src/main.cpp luxrender-luxmark-985b948aa5c7.new/src/main.cpp
+--- luxrender-luxmark-985b948aa5c7/src/main.cpp 2015-02-25 10:46:48.000000000 +0100
++++ luxrender-luxmark-985b948aa5c7.new/src/main.cpp 2015-03-12 23:01:53.971856726 +0100
+@@ -125,16 +125,7 @@ int main(int argc, char **argv) {
+ return EXIT_SUCCESS;
+ else {
+ app.Init(mode, scnName, singleRun);
+-
+- // If current directory doesn't have the "scenes" directory, move
+- // to where the executable is
+- if (!boost::filesystem::exists("./scenes")) {
+- // Look for the directory where LuxMark executable is installed
+- boost::filesystem::path exePath(boost::filesystem::initial_path<boost::filesystem::path>());
+- exePath = boost::filesystem::system_complete(boost::filesystem::path(argv[0])).parent_path();
+- // Set the current directory to where the binary is
+- boost::filesystem::current_path(exePath);
+- }
++ boost::filesystem::current_path("/usr/share/luxmark");
+
+ // Force C locale
+ setlocale(LC_NUMERIC, "C");