diff --git a/stella/src/cheat/Cheat.hxx b/stella/src/cheat/Cheat.hxx index cad24b423..8978a2140 100644 --- a/stella/src/cheat/Cheat.hxx +++ b/stella/src/cheat/Cheat.hxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: Cheat.hxx,v 1.3 2005-12-18 18:37:01 stephena Exp $ +// $Id: Cheat.hxx,v 1.4 2006-03-11 21:22:47 stephena Exp $ //============================================================================ #ifndef CHEAT_HXX @@ -35,7 +35,7 @@ class Cheat if(name == "") myName = code; myName = StringList::removePattern(myName, "\":"); } - virtual ~Cheat() { } + virtual ~Cheat() { } bool enabled() const { return myEnabled; } const string& name() const { return myName; } diff --git a/stella/src/cheat/CheatManager.cxx b/stella/src/cheat/CheatManager.cxx index f4ee8e398..e3d1ebac6 100644 --- a/stella/src/cheat/CheatManager.cxx +++ b/stella/src/cheat/CheatManager.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: CheatManager.cxx,v 1.8 2006-03-06 02:26:15 stephena Exp $ +// $Id: CheatManager.cxx,v 1.9 2006-03-11 21:22:47 stephena Exp $ //============================================================================ #include @@ -126,8 +126,8 @@ void CheatManager::addOneShot(const string& name, const string& code) if(!cheat) return; - // Enable this cheat once, and then immediately delete it - cheat->enable(); + // Evaluate this cheat once, and then immediately delete it + cheat->evaluate(); delete cheat; } diff --git a/stella/src/cheat/RamCheat.hxx b/stella/src/cheat/RamCheat.hxx index 1d0b09db3..74d894a0c 100644 --- a/stella/src/cheat/RamCheat.hxx +++ b/stella/src/cheat/RamCheat.hxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: RamCheat.hxx,v 1.1 2005-11-11 21:44:18 stephena Exp $ +// $Id: RamCheat.hxx,v 1.2 2006-03-11 21:22:47 stephena Exp $ //============================================================================ #ifndef RAM_CHEAT_HXX @@ -25,7 +25,7 @@ class RamCheat : public Cheat { public: RamCheat(OSystem* os, const string& name, const string& code); - ~RamCheat(); + virtual ~RamCheat(); virtual bool enable(); virtual bool disable();