diff 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
line wrap: on
line diff
     1.1 --- a/src/gb/GB.cpp	Wed Mar 07 15:17:19 2012 -0600
     1.2 +++ b/src/gb/GB.cpp	Wed Mar 07 17:40:00 2012 -0600
     1.3 @@ -2494,6 +2494,7 @@
     1.4  
     1.5    utilGzWrite(gzFile, &gbMemory[0x8000], 0x8000);
     1.6  
     1.7 +  
     1.8    if (gbRamSize && gbRam)
     1.9      {
    1.10        utilGzWrite(gzFile, gbRam, gbRamSize);
    1.11 @@ -3859,6 +3860,18 @@
    1.12      }
    1.13  }
    1.14  
    1.15 +
    1.16 +
    1.17 +//RLM: 
    1.18 +int getRamSize(){
    1.19 +  return gbRamSize;
    1.20 +}
    1.21 +
    1.22 +int getRomSize(){
    1.23 +  return gbRomSize;
    1.24 +}
    1.25 +
    1.26 +
    1.27  struct EmulatedSystem GBSystem =
    1.28    {
    1.29      // emuMain