From 9073264f59b7d673f7537c62dbbe88fc6f27710c Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 18 Jan 2016 21:31:10 +0100 Subject: [PATCH] Changed: Remove hardcoded L:\\primitives\\ from C++ code (use RYZOM_LEVELDESIGN environment varianle instead) --HG-- branch : develop --- .../tools/leveldesign/mission_compiler_lib/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/leveldesign/mission_compiler_lib/main.cpp b/code/ryzom/tools/leveldesign/mission_compiler_lib/main.cpp index fee925d64..e7ae73a39 100644 --- a/code/ryzom/tools/leveldesign/mission_compiler_lib/main.cpp +++ b/code/ryzom/tools/leveldesign/mission_compiler_lib/main.cpp @@ -31,7 +31,15 @@ int main(int argc, char *argv[]) { NLMISC::CApplicationContext appContext; - CPath::addSearchPath("L:\\primitives\\", true, false); + const char *leveldesignPath = getenv("RYZOM_LEVELDESIGN"); + + if (leveldesignPath == NULL) + { + printf("Error: You need to define RYZOM_LEVELDESIGN environment variable that points to previous L:\\ equivalent under Windows\n"); + return -1; + } + + CPath::addSearchPath(NLMISC::CPath::standardizePath(leveldesignPath), true, false); bool test = false; if (argc == 4 && string(argv[3]) == "-test")