From 733e5f4b1a32046191bd803a99a69f5103aded83 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 17 Jul 2010 18:56:01 +0200 Subject: [PATCH] Changed: cbDirectoryChanged now displays a warning if it couldn't change directory --- code/nel/src/net/service.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/nel/src/net/service.cpp b/code/nel/src/net/service.cpp index 9f917e21b..8f57d1c92 100644 --- a/code/nel/src/net/service.cpp +++ b/code/nel/src/net/service.cpp @@ -254,11 +254,7 @@ void cbDirectoryChanged (IVariable &var) // Update the running directory if needed if (var.getName() == "RunningDirectory") { -#ifdef NL_OS_WINDOWS - _chdir (vp.c_str()); -#else - chdir (vp.c_str()); -#endif + CPath::setCurrentPath(vp); } // Call the callback if provided