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.

39 lines
1.1KB

  1. /* Copyright 2013-2019 Matt Tytel
  2. *
  3. * vital is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * vital is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with vital. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include "startup.h"
  17. #include "load_save.h"
  18. #include "JuceHeader.h"
  19. #include "synth_base.h"
  20. void Startup::doStartupChecks(MidiManager* midi_manager, vital::StringLayout* layout) {
  21. if (!LoadSave::isInstalled())
  22. return;
  23. if (LoadSave::wasUpgraded())
  24. LoadSave::saveVersionConfig();
  25. LoadSave::loadConfig(midi_manager, layout);
  26. }
  27. bool Startup::isComputerCompatible() {
  28. #if defined(__ARM_NEON__)
  29. return true;
  30. #else
  31. return SystemStats::hasSSE2() || SystemStats::hasAVX2();
  32. #endif
  33. }