Initial support for MiSTer Game Launcher (mgl) file.

This commit is contained in:
Sorgelig
2022-02-24 20:40:14 +08:00
parent d8edab069e
commit ed1ec99688
8 changed files with 232 additions and 47 deletions

View File

@@ -1890,10 +1890,15 @@ char* flist_GetPrevNext(const char* base_path, const char* file, const char* ext
return path + strlen(base_path) + 1;
}
bool isMraName(char *path)
int isXmlName(const char *path)
{
char *spl = strrchr(path, '.');
return (spl && !strcmp(spl, ".mra"));
int len = strlen(path);
if (len > 4)
{
if (!strcasecmp(path + len - 4, ".mra")) return 1;
if (!strcasecmp(path + len - 4, ".mgl")) return 2;
}
return 0;
}
fileTextReader::fileTextReader()