~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/emucore/Control.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-07-12 23:49:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100712234936-juawrr3etzhr2qpv
Tags: 3.1.2-1
* New maintainer (closes: #532039).
* New upstream version (closes: #461121):
  - includes launcher (closes: #396058).
* Fix the reference to the X Window System in the description (closes:
  #411815).
* Move to main, DFSG-free ROMs are available (see README.Debian).
* Enhance the package description.
* Drop the libslang2-dev dependency (closes: #560274).
* Remove the Encoding entry from stella.desktop.
* Avoid ignoring errors when cleaning.
* Add ${misc:Depends} to the package dependencies.
* Provide a doc-base file to install the documentation using doc-base.
* Switch to debhelper 7 with a simplified rules file.
* Use autotools-dev to provide updated configuration files.
* Update to Standards-Version 3.9.0:
  - Move to menu section Applications/Emulators.
  - Move the homepage declaration.
* Re-write the manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2010 by Bradford W. Mott, Stephen Anthony
 
12
// and the Stella Team
12
13
//
13
 
// See the file "license" for information on usage and redistribution of
 
14
// See the file "License.txt" for information on usage and redistribution of
14
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
16
//
16
 
// $Id: Control.cxx,v 1.12 2008/05/12 22:40:23 stephena Exp $
 
17
// $Id: Control.cxx 2001 2010-04-10 21:37:23Z stephena $
17
18
//============================================================================
18
19
 
19
20
#include <cassert>
70
71
    case SaveKey:
71
72
      myName = "SaveKey";
72
73
      break;
 
74
    case KidVid:
 
75
      myName = "KidVid";
 
76
      break;
 
77
    case Genesis:
 
78
      myName = "Genesis";
 
79
      break;
73
80
  }
74
81
}
75
82
 
133
140
  }
134
141
  catch(...)
135
142
  {
136
 
    cerr << "Error: Controller::save() exception\n";
 
143
    cerr << "ERROR: Controller::save() exception\n";
137
144
    return false;
138
145
  }
139
146
  return true;
140
147
}
141
148
 
142
149
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
143
 
bool Controller::load(Deserializer& in)
 
150
bool Controller::load(Serializer& in)
144
151
{
145
152
  try
146
153
  {
157
164
  }
158
165
  catch(...)
159
166
  {
160
 
    cerr << "Error: Controller::load() exception\n";
 
167
    cerr << "ERROR: Controller::load() exception\n";
161
168
    return false;
162
169
  }
163
170
  return true;