mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
isleapp: Don't create new config if manually set
This commit is contained in:
parent
0b791db939
commit
48964f5470
@ -548,6 +548,11 @@ bool IsleApp::LoadConfig()
|
|||||||
// [library:config]
|
// [library:config]
|
||||||
// Load sane defaults if dictionary failed to load
|
// Load sane defaults if dictionary failed to load
|
||||||
if (!dict) {
|
if (!dict) {
|
||||||
|
if (m_iniPath) {
|
||||||
|
SDL_Log("Invalid config path '%s'", m_iniPath);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Loading sane defaults");
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Loading sane defaults");
|
||||||
FILE* iniFP = fopen(iniConfig, "wb");
|
FILE* iniFP = fopen(iniConfig, "wb");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user