pipedal_kconfig (GRUB bootloader)

This commit is contained in:
Robin E. R. Davies
2024-11-29 10:45:46 -05:00
parent 245a47fe81
commit efe8775713
7 changed files with 226 additions and 49 deletions
+10
View File
@@ -109,6 +109,16 @@ static inline std::string ValuePart(const std::string &line)
return line.substr(pos + 1);
}
void SystemConfigFile::Set(int position,const std::string&line)
{
if ((size_t)position == lines.size())
{
lines.push_back(line);
} else {
lines[position] = line;
}
}
std::string SystemConfigFile::Get(const std::string &key) const
{
int64_t lineIndex = GetLine(key);