- removed hard coded enabled system and network debug (someone must have left this code in there)

- added verbose output in mod menu for content metadata output
- bugfix for masterserver php files not using proper variuable for imageurl output
This commit is contained in:
Mark Vejvoda
2011-04-08 01:58:34 +00:00
parent b4e5327c24
commit 93a92e9dee
6 changed files with 12 additions and 10 deletions

View File

@@ -1192,14 +1192,16 @@ void createDirectoryPaths(string Path) {
while(*path) {
//if (('\\' == *path) || ('/' == *path))
if ('/' == *path) {
if(isdir(DirName) == false) {
#ifdef WIN32
int result = _mkdir(DirName);
int result = _mkdir(DirName);
#elif defined(__GNUC__)
int result = mkdir(DirName, S_IRWXU | S_IRWXO | S_IRWXG);
int result = mkdir(DirName, S_IRWXU | S_IRWXO | S_IRWXG);
#else
#error "Your compiler needs to support mkdir!"
#error "Your compiler needs to support mkdir!"
#endif
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] DirName [%s] result = %d, errno = %d\n",__FILE__,__FUNCTION__,__LINE__,DirName,result,errno);
}
}
*dirName++ = *path++;
*dirName = '\0';