Remove now-defunct custom R77 save logic.

This commit is contained in:
Christian Speckner 2019-05-02 01:11:49 +02:00
parent ff8b9b41d4
commit c6ed729600
2 changed files with 0 additions and 30 deletions

View File

@ -72,30 +72,3 @@ SettingsR77::SettingsR77()
setPermanent("tv.phosblend", "45"); // level 6
setPermanent("tv.scanlines", "18"); // level 3
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool SettingsR77::saveConfigFile(const string& cfgfile) const
{
// Almost no settings can be changed, so we completely disable saving
// most of them. This may also fix reported issues of the config file
// becoming corrupt.
//
// There are currently only a few settings that can be changed
// These will be expanded as more support is added
ofstream out(cfgfile);
if(!out || !out.is_open())
return false;
out << "fullscreen = " << getString("fullscreen") << endl;
out << "lastrom = " << getString("lastrom") << endl;
out << "tia.fs_stretch = " << getString("tia.fs_stretch") << endl;
// out << "keymap = " << getString("keymap") << endl;
// out << "joymap = " << getString("joymap") << endl;
out.flush();
out.close();
system("/bin/fsync /mnt/stella/stellarc&");
return true;
}

View File

@ -35,9 +35,6 @@ class SettingsR77 : public Settings
explicit SettingsR77();
virtual ~SettingsR77() = default;
protected:
bool saveConfigFile(const string& cfgfile) const;
private:
// Following constructors and assignment operators not supported
SettingsR77(const SettingsR77&) = delete;