2011-09-27 11:55:02 +00:00
|
|
|
static Settings *settings = nullptr;
|
2011-02-24 09:27:21 +00:00
|
|
|
|
|
|
|
void Settings::load() {
|
|
|
|
string path = { userpath(), ".config/phoenix/gtk.cfg" };
|
|
|
|
configuration::load(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Settings::save() {
|
|
|
|
string path = { userpath(), ".config/" };
|
|
|
|
mkdir(path, 0755);
|
|
|
|
path.append("phoenix/");
|
|
|
|
mkdir(path, 0755);
|
|
|
|
path.append("gtk.cfg");
|
|
|
|
configuration::save(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
Settings::Settings() {
|
2012-01-15 08:29:57 +00:00
|
|
|
append(frameGeometryX = 4, "frameGeometryX");
|
|
|
|
append(frameGeometryY = 24, "frameGeometryY");
|
|
|
|
append(frameGeometryWidth = 8, "frameGeometryWidth");
|
|
|
|
append(frameGeometryHeight = 28, "frameGeometryHeight");
|
|
|
|
append(menuGeometryHeight = 20, "menuGeometryHeight");
|
|
|
|
append(statusGeometryHeight = 20, "statusGeometryHeight");
|
Update to v085r08 release.
byuu says:
Changelog:
- follow the Laevateinn topic to get most of it
- also added NMI, IRQ step buttons to CPU debugger
- also added trace masking + trace mask reset
- also added memory export
- cartridge loading is entirely folder-based now
FitzRoy, I'll go ahead and make a second compromise with you for v086:
I'll match the following:
/path/to/SNES.sfc/*.sfc
/path/to/NES.fc/*.prg, *.chr (split format)
/path/to/NES.fc/*.fc (merged format)
/path/to/GB.gb/*.gb
/path/to/GBC.gbc/*.gbc
Condition will be that there can only be one of each file. If there's
more than one, it'll abort. That lets me name my ROMs as
"Game.fc/Game.fc", and you can name yours as "Game.fc/cartridge.prg,
cartridge.chr". Or whatever you want.
We'll just go with that, see what fares out as the most popular, and
then restrict it back to that method.
The folder must have the .fc, etc extension though. That will be how we
avoid false-positive folder matches.
[Editor's note - the Laevateinn topic mentions these changes for
v085r08:
Added SMP/PPU breakpoints, SMP debugger, SMP stepping / tracing,
memory editing on APU-bus / VRAM / OAM / CGRAM, save state menu,
WRAM mirroring on breakpoints, protected MMIO memory regions
(otherwise, viewing $002100 could crash your game.)
Major missing components:
- trace mask
- trace mask clear / usage map clear
- window geometry caching / sizing improvements
- VRAM viewer
- properties viewer
- working memory export button
The rest will most likely appear after v086 is released.
]
2012-02-12 05:35:40 +00:00
|
|
|
append(windowBackgroundColor = 0xedeceb, "windowBackgroundColor");
|
2011-02-24 09:27:21 +00:00
|
|
|
}
|