Add SaveAllPalettes, SaveWithChangeQueue exp flags
This commit is contained in:
@@ -25,6 +25,10 @@ class ExperimentFlags {
|
||||
// handled manually by controller class but should be
|
||||
// ported away from that eventually.
|
||||
bool kUseNewImGuiInput = false;
|
||||
|
||||
bool kSaveAllPalettes = false;
|
||||
|
||||
bool kSaveWithChangeQueue = false;
|
||||
};
|
||||
|
||||
ExperimentFlags() = default;
|
||||
|
||||
@@ -405,11 +405,16 @@ absl::Status ROM::SaveToFile(bool backup, absl::string_view filename) {
|
||||
}
|
||||
|
||||
// Run the other save functions
|
||||
// SaveAllPalettes();
|
||||
while (!changes_.empty()) {
|
||||
auto change = changes_.top();
|
||||
change();
|
||||
changes_.pop();
|
||||
if (flags()->kSaveAllPalettes) {
|
||||
SaveAllPalettes();
|
||||
}
|
||||
|
||||
if (flags()->kSaveWithChangeQueue) {
|
||||
while (!changes_.empty()) {
|
||||
auto change = changes_.top();
|
||||
change();
|
||||
changes_.pop();
|
||||
}
|
||||
}
|
||||
|
||||
// Open the file that we know exists for writing
|
||||
|
||||
Reference in New Issue
Block a user