From e081c68eb76e201fa33b93ec44384dcf3be9c695 Mon Sep 17 00:00:00 2001 From: JustWinstonIsOK <78389324+JustWinstonIsOK@users.noreply.github.com> Date: Sun, 27 Mar 2022 02:32:30 -0400 Subject: [PATCH] add .mgl as a valid file extension for the bootcore option in MiSTer.ini (#576) --- bootcore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootcore.cpp b/bootcore.cpp index 5e72896..e2b46c5 100644 --- a/bootcore.cpp +++ b/bootcore.cpp @@ -18,7 +18,7 @@ char bootcoretype[64]; bool isExactcoreName(char *path) { char *spl = strrchr(path, '.'); - return (spl && (!strcmp(spl, ".rbf") || !strcmp(spl, ".mra"))); + return (spl && (!strcmp(spl, ".rbf") || !strcmp(spl, ".mra") || !strcmp(spl, ".mgl"))); } char *getcoreName(char *path) @@ -148,7 +148,7 @@ char *findCore(const char *name, char *coreName, int indent) snprintf(path, 256, "%s/%s", name, entry->d_name); if (strstr(path, coreName) != NULL) { spl = strrchr(path, '.'); - if (spl && (!strcmp(spl, ".rbf") || !strcmp(spl, ".mra"))) + if (spl && (!strcmp(spl, ".rbf") || !strcmp(spl, ".mra") || !strcmp(spl, ".mgl"))) { closedir(dir); return path;