Add support for booting mra files via bootcore ini setting. Includes lastcore/lastexactcore functionality

Co-authored-by: Zakk <zakk@rsdio.com>
This commit is contained in:
zakk4223
2020-03-08 11:54:14 -04:00
committed by GitHub
parent 1ba97325e4
commit caca70296a
6 changed files with 21 additions and 12 deletions

View File

@@ -52,13 +52,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "cfg.h"
#include "input.h"
#include "battery.h"
#include "bootcore.h"
#include "cheats.h"
#include "video.h"
#include "joymapping.h"
#include "recent.h"
#include "support.h"
#include "bootcore.h"
/*menu states*/
enum MENU
@@ -777,7 +776,7 @@ const char* get_rbf_name_bootcore(char *str)
if (!p) return str;
char *spl = strrchr(p + 1, '.');
if (spl && !strcmp(spl, ".rbf"))
if (spl && (!strcmp(spl, ".rbf") || !strcmp(spl, ".mra")))
{
*spl = 0;
}
@@ -4909,7 +4908,7 @@ void HandleUI(void)
PrintFileName(str, 14, 0);
sprintf(str, " Loading...");
OsdWrite(15, str, 1, 0);
fpga_load_rbf(cfg.bootcore);
isMraName(cfg.bootcore) ? arcade_load(getFullPath(cfg.bootcore)) : fpga_load_rbf(cfg.bootcore);
}
}
}