From cc538d835e331fb6cdf431b85ab12c7e5c6b46f6 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 25 Apr 2024 00:36:30 +0200 Subject: [PATCH] remove broken list parsing implementations --- src/osuparser.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/osuparser.cpp b/src/osuparser.cpp index eb6902b..4ebce09 100644 --- a/src/osuparser.cpp +++ b/src/osuparser.cpp @@ -246,32 +246,35 @@ inline void toLower(std::string &str) { #define VAR_LIST(section, name, type) \ VAR_GENERIC(section, name,\ std::vector value;\ - std::stringstream ss(line);\ + ) + /*std::stringstream ss(line);\ type val;\ while (ss >> val) {\ std::getline(configFile, line);\ }\ - ) + )*/ #define VAR_LIST_SEP(section, name, type, sep) \ VAR_GENERIC(section, name,\ std::vector value;\ - std::stringstream ss(line);\ + ) + /*std::stringstream ss(line);\ std::string val;\ type type_val;\ while (std::stringstream(val) >> type_val) {\ std::getline(ss, val, ',');\ }\ - ) + )*/ #define VAR_LIST_SEP_P(section, name, type, sep, prefix) \ VAR_GENERIC_P(section, name, prefix,\ std::vector value;\ - std::stringstream ss(line);\ + ) + /*std::stringstream ss(line);\ std::string val;\ type type_val;\ while (std::stringstream(val) >> type_val) {\ std::getline(ss, val, ',');\ }\ - ) + )*/ #define VAR_LIST_NUMBERED(section, name, type) \ VAR_GENERIC(section, name,\ std::vector value;\