- disable strange try-to-detect-bad-config-file if-statement

This commit is contained in:
svenhoefer
2017-02-15 08:48:38 +01:00
parent 65f81b146d
commit 56b99e0b47

View File

@@ -320,6 +320,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
//file existiert nicht
erg = 1;
} else {
#if 0
/* try to detect bad / broken config file */
if (!configfile.getInt32("screen_EndX_crt_0", 0) ||
!configfile.getInt32("screen_EndY_crt_0", 0) ||
@@ -327,10 +328,11 @@ int CNeutrinoApp::loadSetup(const char * fname)
!configfile.getInt32("screen_EndY_lcd_0", 0)) {
printf("[neutrino] config file %s is broken, using defaults\n", fname);
configfile.clear();
} else {
} else
#endif
migrateConfig(fname);
}
}
parentallocked = !access(NEUTRINO_PARENTALLOCKED_FILE, R_OK);
//theme/color options