From: Hauke Wintjen Date: Fri, 29 Mar 2013 20:16:28 +0000 (+0100) Subject: Change path of config files to /etc/openni2 X-Git-Tag: archive/raspbian/2.2.0.33+dfsg-9+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=97690461bd2e7b7433e5cdcbb05832ed4f062e20;p=openni2.git Change path of config files to /etc/openni2 Gbp-Pq: Name 0002-Change-path-of-config-files-to-etc-openni2.patch --- diff --git a/Source/Core/OniContext.cpp b/Source/Core/OniContext.cpp index 153c7c6..0298f4c 100644 --- a/Source/Core/OniContext.cpp +++ b/Source/Core/OniContext.cpp @@ -23,7 +23,7 @@ #include #include -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" diff --git a/Source/Tools/NiViewer/NiViewer.cpp b/Source/Tools/NiViewer/NiViewer.cpp index a0c2f06..2a6a9fd 100644 --- a/Source/Tools/NiViewer/NiViewer.cpp +++ b/Source/Tools/NiViewer/NiViewer.cpp @@ -96,7 +96,7 @@ using namespace glh; // -------------------------------- // Defines // -------------------------------- -#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml" +#define SAMPLE_XML_PATH "/etc/openni2/SamplesConfig.xml" // -------------------------------- // Types