notaz 6 лет назад
Родитель
Сommit
40d22a8e76
3 измененных файлов с 11 добавлено и 1 удалено
  1. 3 0
      Makefile
  2. 4 0
      pico/carthw.cfg
  3. 4 1
      pico/carthw_cfg.c

+ 3 - 0
Makefile

@@ -221,6 +221,9 @@ ifndef DEBUG
 cpu/fame/famec.o: CFLAGS += -g0 -O2 -fno-expensive-optimizations
 endif
 
+pico/carthw_cfg.c: pico/carthw.cfg
+	tools/make_carthw_c $< $@
+
 # random deps
 pico/carthw/svp/compiler.o : cpu/drc/emit_$(ARCH).c
 cpu/sh2/compiler.o : cpu/drc/emit_$(ARCH).c

+ 4 - 0
pico/carthw.cfg

@@ -70,6 +70,10 @@ check_str = 0x32b74c, "Bishop Level"
 prop = force_6btn
 
 # The SSF2 mapper
+[Mega Everdrive]
+check_str = 0x100, "SEGA SSF"
+hw = ssf2_mapper
+
 [Super Street Fighter II - The New Challengers (U)]
 check_str = 0x150, "SUPER STREET FIGHTER2 The New Challengers"
 hw = ssf2_mapper

+ 4 - 1
pico/carthw_cfg.c

@@ -1,4 +1,4 @@
-/* generated by ./tools/make_carthw_c, do not modify */
+/* generated by tools/make_carthw_c, do not modify */
 static const char builtin_carthw_cfg[] =
   "[]\n"
   "check_str=0x150,\"Virtua Racing\"\n"
@@ -28,6 +28,9 @@ static const char builtin_carthw_cfg[] =
   "check_str=0x32b74c,\"Bishop Level\"\n"
   "prop=force_6btn\n"
   "[]\n"
+  "check_str=0x100,\"SEGA SSF\"\n"
+  "hw=ssf2_mapper\n"
+  "[]\n"
   "check_str=0x150,\"SUPER STREET FIGHTER2 The New Challengers\"\n"
   "hw=ssf2_mapper\n"
   "prop=no_sram\n"