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

« back to all changes in this revision

Viewing changes to src/emucore/CartF0.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: CartF0.cxx 2325 2012-01-02 20:31:42Z stephena $
 
17
// $Id: CartF0.cxx 2499 2012-05-25 12:41:19Z stephena $
18
18
//============================================================================
19
19
 
20
20
#include <cassert>
160
160
  try
161
161
  {
162
162
    out.putString(name());
163
 
    out.putInt(myCurrentBank);
 
163
    out.putShort(myCurrentBank);
164
164
  }
165
 
  catch(const char* msg)
 
165
  catch(...)
166
166
  {
167
 
    cerr << "ERROR: CartridgeF0::save" << endl << "  " << msg << endl;
 
167
    cerr << "ERROR: CartridgeF0::save" << endl;
168
168
    return false;
169
169
  }
170
170
 
179
179
    if(in.getString() != name())
180
180
      return false;
181
181
 
182
 
    myCurrentBank = (uInt16) in.getInt();
 
182
    myCurrentBank = in.getShort();
183
183
  }
184
 
  catch(const char* msg)
 
184
  catch(...)
185
185
  {
186
 
    cerr << "ERROR: CartridgeF0::load" << endl << "  " << msg << endl;
 
186
    cerr << "ERROR: CartridgeF0::load" << endl;
187
187
    return false;
188
188
  }
189
189