if (enable && !g_hLogFile)
{
// settings say we should be logging and we don't have a log file .. so create it
+ if(!SettingsPath_get()[0])
+ return; // cannot open a log file yet
// open a file to log the console (if user prefs say so)
// the file handle is g_hLogFile
// the log file is erased
time_t localtime;
time(&localtime);
globalOutputStream() << "Today is: " << ctime(&localtime)
- << "This is GtkRadiant '" RADIANT_VERSION "' compiled " __DATE__ "\n" RADIANT_ABOUTMSG "\n";
+ << "This is NetRadiant '" RADIANT_VERSION "' compiled " __DATE__ "\n" RADIANT_ABOUTMSG "\n";
}
else
gtk_MessageBox (0, "Failed to create log file, check write permissions in Radiant directory.\n",
if(!globalCharacterSet().isUTF8())
{
BufferedTextOutputStream<GtkTextBufferOutputStream> buffered(textBuffer);
- buffered << ConvertLocaleToUTF8(StringRange(buf, buf + length));
+ buffered << StringRange(buf, buf + length);
}
else
{