bugfix: Custom roms would not show up in GUI, after loading a config (fixes #1450)

This commit is contained in:
Dimitris Panokostas 2024-10-03 20:47:47 +02:00
parent f0c5ef0114
commit 5cdc5b2ad9
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -357,10 +357,12 @@ void refresh_rom_list(ROMListModel* rom_list, const gcn::DropDown* cboROM, char*
{
// ROM file not in the list of known ROMs
auto* newrom = new AvailableROM();
newrom->Path = prefsFile;
newrom->Name = extract_filename(prefsFile);
newrom->Name = remove_file_extension(newrom->Name);
newrom->ROMType = romType;
lstAvailableROMs.push_back(newrom);
RefreshPanelROM();
}
}