From 7d5d2db6e3e7f091a656b845b71e5bf72a690945 Mon Sep 17 00:00:00 2001 From: Chips-fr Date: Thu, 28 May 2015 20:10:04 +0000 Subject: [PATCH] Choose automatically first rom. --- src/cfgfile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cfgfile.cpp b/src/cfgfile.cpp index 458e20b1..5394b4a3 100644 --- a/src/cfgfile.cpp +++ b/src/cfgfile.cpp @@ -1890,7 +1890,15 @@ void default_prefs (struct uae_prefs *p, int type) strcpy (p->df[2], "df2.adf"); strcpy (p->df[3], "df3.adf"); + #ifdef RASPBERRY + // Choose automatically first rom. + if (lstAvailableROMs.size() >= 1) + strncpy(currprefs.romfile,lstAvailableROMs[0]->Path,255); + else + strcpy (p->romfile, "kick.rom"); + #else strcpy (p->romfile, "kick.rom"); + #endif strcpy (p->romextfile, ""); sprintf (p->path_rom, "%s/kickstarts/", start_path_data);