You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
726B

  1. #pragma once
  2. #include "common.hpp"
  3. #include "math.hpp"
  4. #include <jansson.h>
  5. namespace rack {
  6. struct Settings {
  7. std::string token;
  8. math::Vec windowSize;
  9. math::Vec windowPos;
  10. float zoom = 1.0;
  11. float cableOpacity = 0.5;
  12. float cableTension = 0.5;
  13. bool allowCursorLock = true;
  14. float sampleRate = 44100.0;
  15. int threadCount = 1;
  16. bool paramTooltip = false;
  17. bool cpuMeter = false;
  18. bool lockModules = false;
  19. bool checkVersion = true;
  20. float frameRateLimit = 70.0;
  21. bool frameRateSync = true;
  22. bool skipLoadOnLaunch = false;
  23. std::string patchPath;
  24. json_t *toJson();
  25. void fromJson(json_t *rootJ);
  26. void save(std::string filename);
  27. void load(std::string filename);
  28. };
  29. extern Settings settings;
  30. } // namespace rack