~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/emucore/CartEFSC.cxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: CartEFSC.cxx 2325 2012-01-02 20:31:42Z stephena $
 
17
// $Id: CartEFSC.cxx 2499 2012-05-25 12:41:19Z stephena $
18
18
//============================================================================
19
19
 
20
20
#include <cassert>
208
208
  try
209
209
  {
210
210
    out.putString(name());
211
 
    out.putInt(myCurrentBank);
 
211
    out.putShort(myCurrentBank);
 
212
    out.putByteArray(myRAM, 128);
212
213
  }
213
 
  catch(const char* msg)
 
214
  catch(...)
214
215
  {
215
 
    cerr << "ERROR: CartridgeEFSC::save" << endl << "  " << msg << endl;
 
216
    cerr << "ERROR: CartridgeEFSC::save" << endl;
216
217
    return false;
217
218
  }
218
219
 
227
228
    if(in.getString() != name())
228
229
      return false;
229
230
 
230
 
    myCurrentBank = (uInt16) in.getInt();
 
231
    myCurrentBank = in.getShort();
 
232
    in.getByteArray(myRAM, 128);
231
233
  }
232
 
  catch(const char* msg)
 
234
  catch(...)
233
235
  {
234
 
    cerr << "ERROR: CartridgeEFSC::load" << endl << "  " << msg << endl;
 
236
    cerr << "ERROR: CartridgeEFSC::load" << endl;
235
237
    return false;
236
238
  }
237
239