Change path of config files to /etc/openni2
authorHauke Wintjen <hwintjen@rimpl-consulting.de>
Fri, 29 Mar 2013 20:16:28 +0000 (21:16 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Thu, 30 Nov 2023 06:00:56 +0000 (07:00 +0100)
Gbp-Pq: Name 0002-Change-path-of-config-files-to-etc-openni2.patch

Source/Core/OniContext.cpp
Source/Tools/NiViewer/NiViewer.cpp

index 153c7c6e73fa2f2f6b1f400c99bed06d1eaf2dd8..0298f4c7b9ca839c56d37fcbaead280741973ea3 100644 (file)
@@ -23,7 +23,7 @@
 #include <XnLog.h>
 #include <XnOSCpp.h>
 
-static const char* ONI_CONFIGURATION_FILE = "OpenNI.ini";
+static const char* ONI_CONFIGURATION_FILE = "/etc/openni2/OpenNI.ini";
 static const char* ONI_DEFAULT_DRIVERS_REPOSITORY = "OpenNI2" XN_FILE_DIR_SEP "Drivers";
 
 #define XN_MASK_ONI_CONTEXT "OniContext"
index a0c2f06bd742c710a31b259793962fbe0b839584..2a6a9fd6edb1f357529ac5cbf70e00b6c20722b7 100644 (file)
@@ -96,7 +96,7 @@ using namespace glh;
 // --------------------------------
 // Defines
 // --------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni2/SamplesConfig.xml"
 
 // --------------------------------
 // Types