16 if(!FileName || !*FileName)
46 if(
StringEndsWith(AbsFileName,
".rec.inf")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
47 if(
StringEndsWith(AbsFileName,
".rec.nav")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
49 if(
StringEndsWith(AbsFileName,
".mpg.inf")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
50 if(
StringEndsWith(AbsFileName,
".mpg.nav")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
52 if(
StringEndsWith(AbsFileName,
".ts.inf")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
53 if(
StringEndsWith(AbsFileName,
".ts.nav")) AbsFileName[strlen(AbsFileName) - 4] =
'\0';
63 TAP_SPrint(TempName,
"%s%s-%d%s.inf%s", Path, Name, fNumber, Ext, isDel ?
".del" :
"");
65 TAP_SPrint(TempName,
"%s%s%s.inf%s", Path, Name, Ext, isDel ?
".del" :
"");
70 TAP_SPrint(TempName,
"%s%s-%d%s.nav%s", Path, Name, fNumber, Ext, isDel ?
".del" :
"");
72 TAP_SPrint(TempName,
"%s%s%s.nav%s", Path, Name, Ext, isDel ?
".del" :
"");
77 TAP_SPrint(TempName,
"%s%s-%d.cut%s", Path, Name, fNumber, isDel ?
".del" :
"");
79 TAP_SPrint(TempName,
"%s%s.cut%s", Path, Name, isDel ?
".del" :
"");
84 TAP_SPrint(TempName,
"%s%s-%d.cut.bak%s", Path, Name, fNumber, isDel ?
".del" :
"");
86 TAP_SPrint(TempName,
"%s%s.cut.bak%s", Path, Name, isDel ?
".del" :
"");
91 TAP_SPrint(TempName,
"%s%s-%d.srt%s", Path, Name, fNumber, isDel ?
".del" :
"");
93 TAP_SPrint(TempName,
"%s%s.srt%s", Path, Name, isDel ?
".del" :
"");
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
void HDD_Delete(const char *FileName)
tFileInUse HDD_isFileInUse(const char *FileName)
void SeparateFileNameComponents(const char *FileName, char *Path, char *Name, char *Ext, int *Index, bool *isRec, bool *isDel)
#define TS_FILE_NAME_SIZE
bool StringEndsWith(const char *text, const char *postfix)