git-svn-id: svn://svn.icculus.org/netradiant/trunk@87 61c419a2-8eb2-4b30-bcec-8cead039b335

This commit is contained in:
rpolzer
2008-09-18 09:39:06 +00:00
parent 8a1ebd7397
commit 01a2a09b61
14 changed files with 26 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ void Sys_LogFile(bool enable)
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

View File

@@ -162,7 +162,6 @@ void environment_init(int argc, char* argv[])
if(!appdata || string_empty(appdata))
{
ERROR_MESSAGE("Application Data folder not available.\n"
"Please install shfolder redistributable package.\n"
"Radiant will use C:\\ for user preferences.\n");
home << "C:";
}

View File

@@ -325,7 +325,7 @@ void paths_init()
{
StringOutputStream path(256);
path << home << RADIANT_VERSION << '/';
path << home << "1." << RADIANT_MAJOR_VERSION "." << RADIANT_MINOR_VERSION << '/';
g_strSettingsPath = path.c_str();
}