mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
trim lines in convar_class so potentially remove erring crlfs
This commit is contained in:
parent
6c5be61344
commit
eba15ccf72
@ -3,7 +3,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _convar_class_included
|
#define _convar_class_included
|
||||||
|
|
||||||
//
|
|
||||||
// todo: track previous default values
|
// todo: track previous default values
|
||||||
|
|
||||||
static ArrayList _ConvarList;
|
static ArrayList _ConvarList;
|
||||||
@ -184,6 +183,8 @@ methodmap Convar < ConVar
|
|||||||
int currentLine = 0;
|
int currentLine = 0;
|
||||||
while(!file.EndOfFile() && file.ReadLine(line, 512))
|
while(!file.EndOfFile() && file.ReadLine(line, 512))
|
||||||
{
|
{
|
||||||
|
TrimString(line);
|
||||||
|
|
||||||
++currentLine;
|
++currentLine;
|
||||||
// check if the line contains a valid statement
|
// check if the line contains a valid statement
|
||||||
if(line[0] != '/' && line[0] != '\n' && line[0] != 0)
|
if(line[0] != '/' && line[0] != '\n' && line[0] != 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user