mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-09 17:10:56 +02:00
byuu says: Changelog: - return open bus instead of mirroring addresses on the bus (fixes Mario&Luigi, Minish Cap, etc) [Jonas Quinn] - add boolean flag to load requests for slotted game carts (fixes slot load prompts) - rename BS-X Town cart from psram to ram - icarus: add support for game database Note: I didn't rename "bsx" to "mcc" in the database for icarus before uploading that. But I just fixed it locally, so it'll be in the next WIP. For now, make it create the manifest for you and then rename it yourself. I did fix the PSRAM size to 256kbit.
32 lines
837 B
C++
32 lines
837 B
C++
struct Settings : Configuration::Document {
|
|
Settings();
|
|
~Settings();
|
|
|
|
Configuration::Node root;
|
|
string activePath;
|
|
string libraryPath;
|
|
bool createManifests = false;
|
|
bool useDatabase = true;
|
|
bool useHeuristics = true;
|
|
};
|
|
|
|
Settings::Settings() {
|
|
root.append(activePath, "ActivePath");
|
|
root.append(libraryPath, "LibraryPath");
|
|
root.append(createManifests, "CreateManifests");
|
|
root.append(useDatabase, "UseDatabase");
|
|
root.append(useHeuristics, "UseHeuristics");
|
|
append(root, "Settings");
|
|
|
|
directory::create({configpath(), "icarus/"});
|
|
load({configpath(), "icarus/settings.bml"});
|
|
save({configpath(), "icarus/settings.bml"});
|
|
|
|
if(!activePath) activePath = userpath();
|
|
if(!libraryPath) libraryPath = {userpath(), "Emulation/"};
|
|
}
|
|
|
|
Settings::~Settings() {
|
|
save({configpath(), "icarus/settings.bml"});
|
|
}
|