comparison src/gb/GB.cpp @ 59:3ce48d803e74

added functions to get rom/ram sizes
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 17:40:00 -0600
parents 3e36553d0cbf
children ef59aee6d715
comparison
equal deleted inserted replaced
58:431ee7ee12de 59:3ce48d803e74
2492 // todo: remove 2492 // todo: remove
2493 utilGzWrite(gzFile, gbPalette, 128 * sizeof(u16)); 2493 utilGzWrite(gzFile, gbPalette, 128 * sizeof(u16));
2494 2494
2495 utilGzWrite(gzFile, &gbMemory[0x8000], 0x8000); 2495 utilGzWrite(gzFile, &gbMemory[0x8000], 0x8000);
2496 2496
2497
2497 if (gbRamSize && gbRam) 2498 if (gbRamSize && gbRam)
2498 { 2499 {
2499 utilGzWrite(gzFile, gbRam, gbRamSize); 2500 utilGzWrite(gzFile, gbRam, gbRamSize);
2500 } 2501 }
2501 2502
3857 break; 3858 break;
3858 } 3859 }
3859 } 3860 }
3860 } 3861 }
3861 3862
3863
3864
3865 //RLM:
3866 int getRamSize(){
3867 return gbRamSize;
3868 }
3869
3870 int getRomSize(){
3871 return gbRomSize;
3872 }
3873
3874
3862 struct EmulatedSystem GBSystem = 3875 struct EmulatedSystem GBSystem =
3863 { 3876 {
3864 // emuMain 3877 // emuMain
3865 gbEmulate, 3878 gbEmulate,
3866 // emuReset 3879 // emuReset