mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +01:00
byuu says: More V30MZ implemented, a lot more to go. icarus now supports importing WS and WSC games. It expects them to have the correct file extension, same for GB and GBC. > Ugh, apparently HiDPI icarus doesn't let you press the check boxes. I set the flag value in the plist to false for now. Forgot to do it for higan, but hopefully I won't forget before release.
25 lines
669 B
C++
25 lines
669 B
C++
struct Settings : Markup::Node {
|
|
Settings();
|
|
~Settings();
|
|
};
|
|
|
|
Settings::Settings() {
|
|
Markup::Node::operator=(BML::unserialize(string::read(locate("settings.bml"))));
|
|
|
|
auto set = [&](const string& name, const string& value) {
|
|
//create node and set to default value only if it does not already exist
|
|
if(!operator[](name)) operator()(name).setValue(value);
|
|
};
|
|
|
|
set("Library/Location", {userpath(), "Emulation/"});
|
|
|
|
set("icarus/Path", userpath());
|
|
set("icarus/CreateManifests", false);
|
|
set("icarus/UseDatabase", true);
|
|
set("icarus/UseHeuristics", true);
|
|
}
|
|
|
|
Settings::~Settings() {
|
|
file::write(locate("settings.bml"), BML::serialize(*this));
|
|
}
|