mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-08 05:01:44 +00:00
fusee: accept ini files without empty line at end
This commit is contained in:
parent
dda7ea6ac2
commit
715eacbf8e
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue