public void init(FileInputStream is) throws Exception
    {
        int save_active;
        // Get saveram start, length (remember byteswapping)
        // First check magic, if there is saveram
        if(content[0x1b0] == 'R' && content[0x1b1] == 'A')
        {
            // Make sure start is even, end is odd, for alignment
            // A ROM that I came across had the start and end bytes of
            // the save ram the same and wouldn't work.  Fix this as seen
            // fit, I know it could probably use some work. [PKH]
            if(saveStart != saveEnd) {
                if(saveStart % 2 != 0) saveStart--;
                if(!(saveEnd % 2 != 0)) ++saveEnd;
                saveEnd -= (saveStart - 1);

                //TODO saveRam

                // If save RAM does not overlap main ROM, set it active by default since
                // a few games can't manage to properly switch it on/off.

                if(saveStart >= romSize) save_active = 1;
            }
        }
    }