@@ -43,12 +43,24 @@ std::vector<RomInfo> parse_metadata(const std::string& metadata_path) {
4343 }
4444 fmt::print (" INFO: '{}', '{}', '{}'\n " , rom_path, boxart_path, name);
4545 Emulator platform = Emulator::UNKNOWN;
46- if (endsWith (rom_path, " .nes" )) {
46+ if (endsWith (rom_path, " .nes" )) { // nes
4747 platform = Emulator::NES;
48- } else if (endsWith (rom_path, " .gb" )) {
48+ } else if (endsWith (rom_path, " .gb" )) { // game boy
4949 platform = Emulator::GAMEBOY;
50- } else if (endsWith (rom_path, " .gbc" )) {
50+ } else if (endsWith (rom_path, " .gbc" )) { // game boy color
5151 platform = Emulator::GAMEBOY_COLOR;
52+ } else if (endsWith (rom_path, " .sms" )) { // sega master system
53+ platform = Emulator::SEGA_MASTER_SYSTEM;
54+ } else if (endsWith (rom_path, " .gg" )) { // sega game gear
55+ platform = Emulator::SEGA_GAME_GEAR;
56+ } else if (endsWith (rom_path, " .gen" )) { // genesis
57+ platform = Emulator::GENESIS;
58+ } else if (endsWith (rom_path, " .sfc" )) { // snes
59+ platform = Emulator::SNES;
60+ } else if (endsWith (rom_path, " .rom" )) { // msx
61+ platform = Emulator::MSX;
62+ } else if (endsWith (rom_path, " .wad" )) { // doom
63+ platform = Emulator::DOOM;
5264 }
5365 if (platform != Emulator::UNKNOWN) {
5466 // for each row, create rom entry
0 commit comments