mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-30 02:56:42 -08:00
cfg: optimize saving config (#714)
## Link to GitHub Issue or related Pull Request, if one exists #0 ## Description of change Save config xml once instead of ~33 times ## Testing xml is still saved properly
This commit is contained in:
1 parent
89602cfcab
commit
b558df3340
3 files changed
+19
-5
No files matched your search
@@ -22,7 +22,12 @@ public:
|
||||
bool getStatus();
|
||||
bool createConfigFile();
|
||||
|
||||
bool addGame(Game &game);
|
||||
bool addGame(Game &game, bool save = true);
|
||||
|
||||
// flush pending in-memory changes to disk; intended to be paired with
|
||||
// addGame(game, false) in bulk-init paths so we write the XML once instead
|
||||
// of once per game
|
||||
void save();
|
||||
|
||||
bool updateBinding(const Game &game, const Button &button, int alternative);
|
||||
bool updateBinding(const Game &game, const Analog &analog);
|
||||
|
||||
Reference in new issue
Block a user