void eEPGCache::load()
{
- unlink("/hdd/epg.dat.$$$");
- rename("/hdd/epg.dat", "/hdd/epg.dat.$$$");
- FILE *f = fopen("/hdd/epg.dat.$$$", "r");
+ FILE *f = fopen("/hdd/epg.dat", "r");
if (f)
{
+ unlink("/hdd/epg.dat");
int size=0;
int cnt=0;
#if 0
{
eDebug("[EPGC] epg file has incorrect byte order.. dont read it");
fclose(f);
- unlink("/hdd/epg.dat.$$$");
return;
}
char text1[13];
fclose(f);
}
}
- unlink("/hdd/epg.dat.$$$");
}
void eEPGCache::save()