Played with UI layouts but keeping this for now. Fixed up config so it has keys() and now we load a boss per level.
This commit is contained in:
parent
281a7f687a
commit
5c815cf755
6 changed files with 35 additions and 8 deletions
10
config.cpp
10
config.cpp
|
@ -30,3 +30,13 @@ std::wstring Config::wstring(const std::string main_key, const std::string sub_k
|
|||
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> $converter;
|
||||
return $converter.from_bytes(str_val);
|
||||
}
|
||||
|
||||
std::vector<std::string> Config::keys() {
|
||||
std::vector<std::string> the_fucking_keys;
|
||||
|
||||
for(auto& [key, value] : $config.items()) {
|
||||
the_fucking_keys.push_back(key);
|
||||
}
|
||||
|
||||
return the_fucking_keys;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue