|
|
@@ -30,7 +30,6 @@ int threadCount = 1; |
|
|
|
bool paramTooltip = true; |
|
|
|
bool cpuMeter = false; |
|
|
|
bool lockModules = false; |
|
|
|
bool darkMode = false; |
|
|
|
#if defined ARCH_MAC |
|
|
|
// Most Mac GPUs can't handle rendering the screen every frame, so use ~30 Hz by default. |
|
|
|
int frameSwapInterval = 2; |
|
|
@@ -87,8 +86,6 @@ json_t* toJson() { |
|
|
|
|
|
|
|
json_object_set_new(rootJ, "lockModules", json_boolean(lockModules)); |
|
|
|
|
|
|
|
json_object_set_new(rootJ, "darkMode", json_boolean(darkMode)); |
|
|
|
|
|
|
|
json_object_set_new(rootJ, "frameSwapInterval", json_integer(frameSwapInterval)); |
|
|
|
|
|
|
|
json_object_set_new(rootJ, "autosavePeriod", json_real(autosavePeriod)); |
|
|
@@ -191,10 +188,6 @@ void fromJson(json_t* rootJ) { |
|
|
|
if (lockModulesJ) |
|
|
|
lockModules = json_boolean_value(lockModulesJ); |
|
|
|
|
|
|
|
json_t* darkModeJ = json_object_get(rootJ, "darkMode"); |
|
|
|
if (darkModeJ) |
|
|
|
darkMode = json_boolean_value(darkModeJ); |
|
|
|
|
|
|
|
json_t* frameSwapIntervalJ = json_object_get(rootJ, "frameSwapInterval"); |
|
|
|
if (frameSwapIntervalJ) |
|
|
|
frameSwapInterval = json_integer_value(frameSwapIntervalJ); |
|
|
@@ -286,10 +279,5 @@ void load(const std::string& path) { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool isDarkMode() { |
|
|
|
return darkMode; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace settings |
|
|
|
} // namespace rack |