This page contains unofficial updates to the latest version of OWLNext.
The latest official patch can be downloaded here.
buffer[size] = '\0';
at the end of the function TRegConfigFile::ReadString(), before the statement
return (int)size;
bool AddSubDir(LPCTSTR subdir);
bool AddSubDir(const owl_string& subdir);
in the declaration of the class TFileName, preferably after the function CreateDir().
In filename.cpp add the lines
bool
TFileName::AddSubDir(LPCTSTR subdir)
{
if (_tcschr(dirSeparator, subdir[0]) == 0) // The subdir does not begin with the separator
PathStr += dirSeparatorStr;
PathStr += subdir;
if (_tcschr(dirSeparator, PathStr[PathStr.length() - 1]) != 0) // The resultring string ends with the separator
PathStr = PathStr.substr(0, PathStr.length() - 1);
return true;
}
bool
TFileName::AddSubDir(const owl_string& subdir)
{
return AddSubDir(subdir.c_str());
}
preferably after the definition of the function CreateDir().