(finally) build the goddamn cheat interface

This commit is contained in:
Arisotura
2020-08-15 00:14:05 +02:00
parent 4299ef5f06
commit f8d1d08e9c
11 changed files with 506 additions and 35 deletions

View File

@ -104,7 +104,7 @@ void Load()
while (!feof(f))
{
fgets(linebuf, 1024, f);
int ret = sscanf(linebuf, "%31[A-Za-z_0-9]=%[^\t\n]", entryname, entryval);
int ret = sscanf(linebuf, "%31[A-Za-z_0-9]=%[^\t\r\n]", entryname, entryval);
entryname[31] = '\0';
if (ret < 2) continue;