From f8d1d08e9c13d39ccb6d0c50ae74e7bbe9ed52c8 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sat, 15 Aug 2020 00:14:05 +0200 Subject: (finally) build the goddamn cheat interface --- src/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Config.cpp') diff --git a/src/Config.cpp b/src/Config.cpp index de1c70d..d198093 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -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; -- cgit v1.2.3