]> Shamusworld >> Repos - virtualjaguar/commitdiff
Fixed cartridge run address.
authorShamus Hammons <jlhamm@acm.org>
Wed, 11 Jul 2012 15:31:29 +0000 (10:31 -0500)
committerShamus Hammons <jlhamm@acm.org>
Wed, 11 Jul 2012 15:31:29 +0000 (10:31 -0500)
Fixed the cartridge run address to get it from the cartridge itself
instead of assuming that it should be $802000.

src/file.cpp

index 5674abfcee92cd94a2492b844f4761ef557d649f..dff0c55a062154366ee50b68191c0ebdfb397a3f 100644 (file)
@@ -135,6 +135,9 @@ bool JaguarLoadFile(char * path)
        {
                jaguarCartInserted = true;
                memcpy(jagMemSpace + 0x800000, buffer, jaguarROMSize);
+// Checking something...
+jaguarRunAddress = GET32(jagMemSpace, 0x800404);
+WriteLog("FILE: Cartridge run address is reported as $%X...\n", jaguarRunAddress);
                delete[] buffer;
                return true;
        }