Skip to content

Commit

Permalink
config: save system options
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Nov 13, 2021
1 parent b4fa447 commit c2ffd61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/platform/windows/config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ void saveConfigFile() {
{"timeTravel", config.options.emulator.timeTravel},
};

json["options"]["system"] = {
{"ram8mb", config.options.system.ram8mb},
};

auto l = config.debug.log;
json["debug"]["log"] = {
{"bios", l.bios}, //
Expand Down Expand Up @@ -127,6 +131,10 @@ void loadConfigFile() {
config.options.emulator.timeTravel = e["timeTravel"];
}

if (auto s = json["options"]["system"]; !s.is_null()) {
config.options.system.ram8mb = s["ram8mb"];
}

if (auto l = json["debug"]["log"]; !l.is_null()) {
config.debug.log.bios = l["bios"];
config.debug.log.cdrom = l["cdrom"];
Expand Down

0 comments on commit c2ffd61

Please sign in to comment.