1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 11:56:40 +00:00

fusee: accept ini files without empty line at end

This commit is contained in:
Michael Scire 2021-09-05 20:59:08 -07:00 committed by SciresM
parent dda7ea6ac2
commit 715eacbf8e

View file

@ -171,11 +171,22 @@ namespace ams::nxboot {
}
}
if (state == State::TrailingSpace || state == State::Comment || state == State::Newline) {
/* Accept value-state. */
if (state == State::Value) {
auto *entry = AllocateObject<IniKeyValueEntry>();
entry->key = key_start;
entry->value = val_start;
cur_sec->kv_list.push_back(*entry);
return ParseIniResult_Success;
} else if (state == State::TrailingSpace || state == State::Comment || state == State::Newline) {
return ParseIniResult_Success;
} else {
return ParseIniResult_InvalidFormat;
}
}
}