mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Remove hardcoded L:\\primitives\\ from C++ code (use RYZOM_LEVELDESIGN environment varianle instead)
--HG-- branch : develop
This commit is contained in:
parent
b0ad9b0315
commit
9073264f59
1 changed files with 9 additions and 1 deletions
|
@ -31,7 +31,15 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
NLMISC::CApplicationContext appContext;
|
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;
|
bool test = false;
|
||||||
if (argc == 4 && string(argv[3]) == "-test")
|
if (argc == 4 && string(argv[3]) == "-test")
|
||||||
|
|
Loading…
Reference in a new issue