Improved error message in MBC.cc
authorslack <slack@codemaniacs.com>
Sun, 6 Jul 2008 04:02:46 +0000 (06:02 +0200)
committerslack <slack@codemaniacs.com>
Sun, 6 Jul 2008 04:02:46 +0000 (06:02 +0200)
MBC.cc

diff --git a/MBC.cc b/MBC.cc
index bffe2b5fb6d2755bc035b9bb8b5337a0ebf23def..5437dbdf3f4a9ca574d1880299935012c382c867 100644 (file)
--- a/MBC.cc
+++ b/MBC.cc
@@ -14,7 +14,8 @@ MBC *create_MBC(GBRom *rom)
                case ROM_ONLY:          return new NoMBC(rom);
                //case MBC1:            return new MBC1(rom);
                default:
-                       logger.critical("Unsupported cartridge type");
+                       logger.critical("Unsupported cartridge type ", 
+                                       int(rom->header.cartridge_type));
                        return 0;
        }
 }