| 128 | } |
| 129 | |
| 130 | static PatternMap ParsePatternString(std::string_view body, |
| 131 | std::string* outError = nullptr) |
| 132 | { |
| 133 | try { |
| 134 | return TableToPatternMap(toml::parse(body)); |
| 135 | } catch (const toml::parse_error& e) { |
| 136 | if (outError) *outError = e.description(); |
| 137 | return {}; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // ---- popup helpers (detached threads so we never block Steam) ---- |
| 142 |
no test coverage detected