mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
fix keywords in strange try-to-detect-bad-config-file if-statement
Origin commit data
------------------
Commit: 6964b62c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-13 (Mon, 13 Feb 2017)
Origin message was:
------------------
- fix keywords in strange try-to-detect-bad-config-file if-statement
This commit is contained in:
@@ -321,10 +321,10 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
erg = 1;
|
erg = 1;
|
||||||
} else {
|
} else {
|
||||||
/* try to detect bad / broken config file */
|
/* try to detect bad / broken config file */
|
||||||
if (!configfile.getInt32("screen_EndX_crt", 0) ||
|
if (!configfile.getInt32("screen_EndX_crt_0", 0) ||
|
||||||
!configfile.getInt32("screen_EndY_crt", 0) ||
|
!configfile.getInt32("screen_EndY_crt_0", 0) ||
|
||||||
!configfile.getInt32("screen_EndX_lcd", 0) ||
|
!configfile.getInt32("screen_EndX_lcd_0", 0) ||
|
||||||
!configfile.getInt32("screen_EndY_lcd", 0)) {
|
!configfile.getInt32("screen_EndY_lcd_0", 0)) {
|
||||||
printf("[neutrino] config file %s is broken, using defaults\n", fname);
|
printf("[neutrino] config file %s is broken, using defaults\n", fname);
|
||||||
configfile.clear();
|
configfile.clear();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user