2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-20 23:39:13 +00:00

Windows build fixes

This commit is contained in:
2025-04-04 17:32:05 -06:00
parent 4d9603183a
commit aaf96615cb
12 changed files with 62 additions and 29 deletions

View File

@@ -225,7 +225,14 @@ std::vector<StoreCVar::CVar> CVarManager::loadCVars(const std::string& filename)
if (parts.size() < 2) {
continue;
}
ret.emplace_back(StoreCVar::CVar{CStringExtras::Trim(parts[0]), CStringExtras::Trim(parts[1])});
const auto key = CStringExtras::Trim(parts[0]);
auto value = parts[1];
for (size_t i = 2; i < parts.size(); ++i) {
value += ":";
value += parts[i];
}
value = CStringExtras::Trim(value);
ret.emplace_back(StoreCVar::CVar{key, value});
}
}
}