* The possible extensions for subtitle files we support
*/
static const char const sub_exts[][6] = {
+ "idx", "sub", "srt",
+ "ssa", "ass", "smi",
"utf", "utf8", "utf-8",
- "sub", "srt", "smi",
- "txt", "ssa", "idx",
-
- "cdg",
-
+ "txt", "rt", "aqt",
+ "usf", "jss", "cdg",
+ "psb", "mpsub","mpl2",
+ "pjs", "dks",
""
};
-/* extensions from unsupported types */
-/* rt, aqt, jss, js, ass */
-
static void strcpy_trim( char *d, const char *s )
{
/* skip leading whitespace */
}
else
{
-#ifdef HAVE_UNISTD_H
+#if defined (HAVE_UNISTD_H) && !defined (UNDER_CE)
/* Get the current working directory */
char *psz_cwd = getcwd( NULL, 0 );
#else