mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-15 19:14:18 +02:00
Update to v106r38 release.
byuu says: Changelog: - hiro: added Qt5 support - hiro: added GTK3 support (currently runs very poorly) - bsnes: number of recent games and quick state slots can be changed programmatically now - I may expose this as a configuration file setting, but probably not within the GUI - nall: use -Wno-everything when compiling with Clang - sorry, Clang's meaningless warning messages are just endless ...
This commit is contained in:
@@ -2,7 +2,11 @@ namespace hiro {
|
||||
|
||||
Settings::Settings() {
|
||||
string path = {Path::userData(), "hiro/"};
|
||||
auto document = BML::unserialize(file::read({path, "gtk.bml"}));
|
||||
#if HIRO_GTK==2
|
||||
auto document = BML::unserialize(file::read({path, "gtk2.bml"}));
|
||||
#elif HIRO_GTK==3
|
||||
auto document = BML::unserialize(file::read({path, "gtk3.bml"}));
|
||||
#endif
|
||||
|
||||
auto get = [&](string_view name) {
|
||||
return document[name];
|
||||
@@ -32,7 +36,11 @@ Settings::~Settings() {
|
||||
set("Geometry/MenuHeight", geometry.menuHeight);
|
||||
set("Geometry/StatusHeight", geometry.statusHeight);
|
||||
|
||||
file::write({path, "gtk.bml"}, BML::serialize(document));
|
||||
#if HIRO_GTK==2
|
||||
file::write({path, "gtk2.bml"}, BML::serialize(document));
|
||||
#elif HIRO_GTK==3
|
||||
file::write({path, "gtk3.bml"}, BML::serialize(document));
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user