aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTa180m2020-05-18 14:18:48 -0500
committerTa180m2020-05-18 14:18:48 -0500
commitb89b695559c770e62b54b539982a0ebc3586a709 (patch)
tree00cc3374227a4f8790e8c97e188050b825558ed2
parent3bb101975b35e506a21a070c80bd63d34207755f (diff)
Update README.md
-rw-r--r--README.md4
-rw-r--r--main.cpp12
2 files changed, 10 insertions, 6 deletions
diff --git a/README.md b/README.md
index 15fad8e..18ade62 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,7 @@ BadNES implements the most common mappers, which should be enough for a good per
- UxROM (Mapper 002)
- CNROM (Mapper 003)
- MMC3, MMC6 / TxROM (Mapper 004)
+- AxROM (Mapper 007) (Not well supported, expect bugs!)
You can check the compatibility for each ROM in the following list:
http://tuxnes.sourceforge.net/nesmapper.txt
@@ -78,5 +79,8 @@ I'm working on it right now.
### What do you mean by "nearly complete"?
I'll say it's complete once I finish implementing the APU and savestates.
+### This game doesn't work!
+Check to make sure BadNES implements its mapper. Also, Mapper 7 is known to be especially buggy.
+
## Credits
Special thanks to [Andrea Orru](https://github.com/AndreaOrru) for creating [LaiNES](https://github.com/AndreaOrru/LaiNES), the emulator that this project derives much of its code from. \ No newline at end of file
diff --git a/main.cpp b/main.cpp
index 6b58e16..cf91e77 100644
--- a/main.cpp
+++ b/main.cpp
@@ -730,12 +730,12 @@ namespace Cartridge {
int mapperNum = (rom[7] & 0xF0) | (rom[6] >> 4);
if (mapper != nullptr) delete mapper;
switch (mapperNum) {
- case 0: mapper = new Mapper0(rom); break;
- case 1: mapper = new Mapper1(rom); break;
- case 2: mapper = new Mapper2(rom); break;
- case 3: mapper = new Mapper3(rom); break;
- case 4: mapper = new Mapper4(rom); break;
- case 7: mapper = new Mapper7(rom); break;
+ case 0: mapper = new Mapper0(rom); break;
+ case 1: mapper = new Mapper1(rom); break;
+ case 2: mapper = new Mapper2(rom); break;
+ case 3: mapper = new Mapper3(rom); break;
+ case 4: mapper = new Mapper4(rom); break;
+ case 7: mapper = new Mapper7(rom); break;
}
CPU::power(), PPU::reset();
}