mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
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
This commit is contained in:
@@ -54,20 +54,24 @@ void loadSkin(char * const filename, char * const backup_filename, const unsigne
|
|||||||
unsigned char BMPWidth;
|
unsigned char BMPWidth;
|
||||||
unsigned char BMPHeight;
|
unsigned char BMPHeight;
|
||||||
char line_buffer[4];
|
char line_buffer[4];
|
||||||
|
|
||||||
file = filename;
|
file = filename;
|
||||||
digit_pos = modify_char_filename;
|
digit_pos = modify_char_filename;
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
|
bool retried = false;
|
||||||
retry:
|
retry:
|
||||||
if ((fd = fopen(file, "rb")) == 0)
|
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;
|
file = backup_filename;
|
||||||
digit_pos = modify_char_backup_filename;
|
digit_pos = modify_char_backup_filename;
|
||||||
i = 0;
|
i = 0;
|
||||||
goto retry;
|
if (!retried) {
|
||||||
|
retried = true;
|
||||||
|
goto retry;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
fseek(fd, 0x12, SEEK_SET);
|
fseek(fd, 0x12, SEEK_SET);
|
||||||
@@ -82,7 +86,10 @@ void loadSkin(char * const filename, char * const backup_filename, const unsigne
|
|||||||
file = backup_filename;
|
file = backup_filename;
|
||||||
digit_pos = modify_char_backup_filename;
|
digit_pos = modify_char_backup_filename;
|
||||||
i = 0;
|
i = 0;
|
||||||
goto retry;
|
if (!retried) {
|
||||||
|
retried = true;
|
||||||
|
goto retry;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fseek(fd, 0x3E, SEEK_SET);
|
fseek(fd, 0x3E, SEEK_SET);
|
||||||
|
Reference in New Issue
Block a user