mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 07:58:44 +00:00
Changed: Temporary checks for a OS X 10.7 bug...
This commit is contained in:
parent
ae6168e534
commit
45565e2bb8
2 changed files with 6 additions and 0 deletions
|
@ -249,6 +249,8 @@ bool CCmdArgs::parse(const std::vector<std::string> &argv)
|
||||||
{
|
{
|
||||||
std::string name = argv[i];
|
std::string name = argv[i];
|
||||||
|
|
||||||
|
nlinfo("Argument %d: %s", i, name.c_str());
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
// support / and - under Windows, arguments should be at least 2 characters
|
// support / and - under Windows, arguments should be at least 2 characters
|
||||||
if (name.size() > 1 && (name[0] == '-' || name[0] == '/'))
|
if (name.size() > 1 && (name[0] == '-' || name[0] == '/'))
|
||||||
|
|
|
@ -211,10 +211,14 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
||||||
|
|
||||||
|
nlinfo("Current path 1: %s", currentPath.c_str());
|
||||||
|
|
||||||
// append profile ID to directory
|
// append profile ID to directory
|
||||||
if (Args.haveArg("p"))
|
if (Args.haveArg("p"))
|
||||||
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front();
|
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front();
|
||||||
|
|
||||||
|
nlinfo("Current path 2: %s", currentPath.c_str());
|
||||||
|
|
||||||
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
||||||
|
|
||||||
CPath::setCurrentPath(currentPath);
|
CPath::setCurrentPath(currentPath);
|
||||||
|
|
Loading…
Reference in a new issue