mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
isleapp: Fix iniFP to be in proper scope
This also fixes the missing parameter in `iniparser_dump_ini`
This commit is contained in:
parent
801d6ae748
commit
96a0915837
@ -581,8 +581,9 @@ bool IsleApp::LoadConfig()
|
|||||||
iniparser_set(dict, "isle:Island Quality", "1");
|
iniparser_set(dict, "isle:Island Quality", "1");
|
||||||
iniparser_set(dict, "isle:Island Texture", "1");
|
iniparser_set(dict, "isle:Island Texture", "1");
|
||||||
|
|
||||||
iniparser_dump_ini(dict, );
|
iniparser_dump_ini(dict, iniFP);
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
||||||
|
fclose(iniFP);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* hdPath = iniparser_getstring(dict, "isle:diskpath", SDL_GetBasePath());
|
const char* hdPath = iniparser_getstring(dict, "isle:diskpath", SDL_GetBasePath());
|
||||||
@ -639,7 +640,6 @@ bool IsleApp::LoadConfig()
|
|||||||
m_savePath = new char[strlen(savePath) + 1];
|
m_savePath = new char[strlen(savePath) + 1];
|
||||||
strcpy(m_savePath, savePath);
|
strcpy(m_savePath, savePath);
|
||||||
|
|
||||||
fclose(iniFP);
|
|
||||||
iniparser_freedict(dict);
|
iniparser_freedict(dict);
|
||||||
delete[] iniConfig;
|
delete[] iniConfig;
|
||||||
SDL_free(prefPath);
|
SDL_free(prefPath);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user