mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-14 10:21:51 -04:00
improve fonts and fix bugs
This commit is contained in:
parent
a8a87d514c
commit
99378da298
12 changed files with 55 additions and 35 deletions
|
@ -58,10 +58,10 @@ void parseIniStream(std::istream& input, Callback &&callback) {
|
|||
|
||||
|
||||
INI_CONFIG* ini_open(const char *filename) {
|
||||
INI_CONFIG *c = new INI_CONFIG;
|
||||
|
||||
std::fstream input(filename);
|
||||
if (!input) return c;
|
||||
if (!input) return NULL;
|
||||
INI_CONFIG *c = new INI_CONFIG;
|
||||
parseIniStream(input, [&](std::string_view section, std::string_view key, std::string_view value) {
|
||||
INI_CONFIG::Config::iterator iter = c->data.find(section);
|
||||
if (iter == c->data.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue