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

« back to all changes in this revision

Viewing changes to src/emucore/Cart3F.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: Cart3F.cxx 2318 2011-12-31 21:56:36Z stephena $
 
17
// $Id: Cart3F.cxx 2499 2012-05-25 12:41:19Z stephena $
18
18
//============================================================================
19
19
 
20
20
#include <cassert>
192
192
  try
193
193
  {
194
194
    out.putString(name());
195
 
    out.putInt(myCurrentBank);
 
195
    out.putShort(myCurrentBank);
196
196
  }
197
 
  catch(const char* msg)
 
197
  catch(...)
198
198
  {
199
 
    cerr << "ERROR: Cartridge3F::save" << endl << "  " << msg << endl;
 
199
    cerr << "ERROR: Cartridge3F::save" << endl;
200
200
    return false;
201
201
  }
202
202
 
211
211
    if(in.getString() != name())
212
212
      return false;
213
213
 
214
 
    myCurrentBank = (uInt16) in.getInt();
 
214
    myCurrentBank = in.getShort();
215
215
  }
216
 
  catch(const char* msg)
 
216
  catch(...)
217
217
  {
218
 
    cerr << "ERROR: Cartridge3F::load" << endl << "  " << msg << endl;
 
218
    cerr << "ERROR: Cartridge3F::load" << endl;
219
219
    return false;
220
220
  }
221
221