neutrino: start even with missing LCD skin files on TripleDragon

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1074 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: e147a0b910
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-26 (Wed, 26 Jan 2011)
This commit is contained in:
Stefan Seyfried
2011-01-26 20:12:22 +00:00
parent cefce97ac9
commit 862470c89c

View File

@@ -54,20 +54,24 @@ void loadSkin(char * const filename, char * const backup_filename, const unsigne
unsigned char BMPWidth;
unsigned char BMPHeight;
char line_buffer[4];
file = filename;
digit_pos = modify_char_filename;
for (i = 0; i < count; i++)
{
bool retried = false;
retry:
if ((fd = fopen(file, "rb")) == 0)
{
printf("[lcdd] %s-skin not found -> using default...\n", name);
printf("[lcdd] %s-skin not found (%s) -> using default...\n", name, file);
file = backup_filename;
digit_pos = modify_char_backup_filename;
i = 0;
goto retry;
if (!retried) {
retried = true;
goto retry;
}
break;
}
fseek(fd, 0x12, SEEK_SET);
@@ -82,7 +86,10 @@ void loadSkin(char * const filename, char * const backup_filename, const unsigne
file = backup_filename;
digit_pos = modify_char_backup_filename;
i = 0;
goto retry;
if (!retried) {
retried = true;
goto retry;
}
}
fseek(fd, 0x3E, SEEK_SET);