17 int nTvSvc, nRadioSvc;
19 TYPE_TapChInfo chInfo;
20 char s[255], LogoName[MAX_SvcName + 1];
34 TAP_Channel_GetTotalNum(&nTvSvc, &nRadioSvc);
35 NewIDs = TAP_MemAlloc((nTvSvc + nRadioSvc) *
sizeof(tNewIDs));
40 for(i = 0; i < nTvSvc; i++)
42 TAP_Channel_GetInfo(SVC_TYPE_Tv, i, &chInfo);
60 TAP_SPrint(s,
"%16.16llx", ChannelID);
63 NewIDs[NewIDCount].ChannelID = ChannelID;
65 if(NewIDs[NewIDCount].Name[0]) NewIDCount++;
69 for(i = 0; i < nRadioSvc; i++)
71 TAP_Channel_GetInfo(SVC_TYPE_Radio, i, &chInfo);
89 TAP_SPrint(s,
"%16.16llx", ChannelID);
92 NewIDs[NewIDCount].ChannelID = ChannelID;
94 if(NewIDs[NewIDCount].Name[0]) NewIDCount++;
104 byte month, day, weekDay;
119 TAP_ExtractMjd(
Now(NULL) >> 16, &year, &month, &day, &weekDay);
120 TAP_SPrint(s,
"\n\n# Added %4.4d-%2.2d-%2.2d\n", year, month, day);
121 TAP_Hdd_Fwrite(s, 1, strlen(s), f);
123 for(i = 0; i < NewIDCount; i++)
125 TAP_SPrint(s,
"%16.16llx=%s\n", NewIDs[i].ChannelID, NewIDs[i].Name);
126 TAP_Hdd_Fwrite(s, 1, strlen(s), f);
void(* LogoManager_CB)(int CallbackType, int Param1)
bool FlashSatTablesGetInfo(int SatNum, tFlashSatTable *SatTable)
bool HDD_ChangeDir(const char *Dir)
bool INIKeyExists(char *Key)
INILOCATION INIOpenFile(char *FileName, char *AppName)
int LogoManager_UpdateLIL(void)
ulong64 LogoManager_CalculateChannelID(word SatLongitude, word NetworkID, word TSID, word ServiceID)
bool HDD_TAP_PushDir(void)
SYSTEM_TYPE GetSystemType(void)
char * LogoManager_ChannelNameToLogoName(char *ChannelName, char *LogoName, int LogoNameSize)
bool HDD_TAP_PopDir(void)