kill debug stuff
This commit is contained in:
@@ -40,7 +40,6 @@ void IniFile::SetPath(CString newpath)
|
|||||||
// returns true if successful, false otherwise
|
// returns true if successful, false otherwise
|
||||||
bool IniFile::ReadFile()
|
bool IniFile::ReadFile()
|
||||||
{
|
{
|
||||||
LOG->Trace("INI: Reading '%s'",path.c_str() );
|
|
||||||
FILE *f = fopen(path, "r");
|
FILE *f = fopen(path, "r");
|
||||||
|
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
@@ -56,7 +55,7 @@ LOG->Trace("INI: Reading '%s'",path.c_str() );
|
|||||||
{
|
{
|
||||||
buf[sizeof(buf)-1]=0;
|
buf[sizeof(buf)-1]=0;
|
||||||
CString line(buf);
|
CString line(buf);
|
||||||
LOG->Trace("Read line '%s'", line.c_str());
|
|
||||||
if(line.size() >= 3 &&
|
if(line.size() >= 3 &&
|
||||||
line[0] == '\xef' &&
|
line[0] == '\xef' &&
|
||||||
line[1] == '\xbb' &&
|
line[1] == '\xbb' &&
|
||||||
@@ -71,7 +70,6 @@ LOG->Trace("Read line '%s'", line.c_str());
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
StripCrnl(line);
|
StripCrnl(line);
|
||||||
LOG->Trace("Stripped: '%s'", line.c_str());
|
|
||||||
|
|
||||||
if (line.substr(0, 2) == "//" || line.substr(0) == "#")
|
if (line.substr(0, 2) == "//" || line.substr(0) == "#")
|
||||||
continue; /* comment */
|
continue; /* comment */
|
||||||
@@ -91,7 +89,7 @@ LOG->Trace("Stripped: '%s'", line.c_str());
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG->Trace("INI: done");
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user