git-svn-id: svn://svn.icculus.org/netradiant/trunk@87 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user