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

« back to all changes in this revision

Viewing changes to src/cheat/CheatManager.cxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2013-06-28 09:53:13 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20130628095313-j8jkkgxpvx1t18ym
Tags: 3.9-1
New upstream version.

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: CheatManager.cxx 2579 2013-01-04 19:49:01Z stephena $
 
17
// $Id: CheatManager.cxx 2726 2013-05-08 23:34:42Z stephena $
18
18
//============================================================================
19
19
 
20
20
#include <fstream>
300
300
  // (and remove the key from the settings, so they won't get set again)
301
301
  const string& cheats = myOSystem->settings().getString("cheat");
302
302
  if(cheats != "")
303
 
    myOSystem->settings().setString("cheat", "");
 
303
    myOSystem->settings().setValue("cheat", "");
304
304
 
305
305
  CheatCodeMap::iterator iter = myCheatMap.find(md5sum);
306
306
  if(iter == myCheatMap.end() && cheats == "")