Vital
Loading...
Searching...
No Matches
startup.cpp
Go to the documentation of this file.
1#include "startup.h"
2#include "load_save.h"
3#include "JuceHeader.h"
4#include "synth_base.h"
5
7 // If Vital is not installed or properly configured, no action is taken.
9 return;
10
11 // If Vital was upgraded since the last run, update the stored version information.
14
15 // Load configuration data, which may include MIDI mappings, GUI layout preferences, and other settings.
16 LoadSave::loadConfig(midi_manager, layout);
17}
18
20 #if defined(__ARM_NEON__)
21 // On ARM platforms with NEON, assume compatibility.
22 return true;
23 #else
24 // On x86 platforms, check for SSE2 or AVX2 support.
25 return SystemStats::hasSSE2() || SystemStats::hasAVX2();
26 #endif
27}
static bool isInstalled()
Checks if Vital is fully installed (data directory present).
Definition load_save.cpp:1515
static void saveVersionConfig()
Saves the current synth version to the config file.
Definition load_save.cpp:1274
static void loadConfig(MidiManager *midi_manager, vital::StringLayout *layout=nullptr)
Loads configuration data into a MidiManager and optional StringLayout.
Definition load_save.cpp:1386
static bool wasUpgraded()
Checks if Vital was upgraded from a previous version.
Definition load_save.cpp:1519
The MidiManager class handles all incoming MIDI messages and directs them to the synthesizer engine.
Definition midi_manager.h:44
static bool isComputerCompatible()
Checks if the current computer hardware is compatible with Vital’s CPU instruction requirements.
Definition startup.cpp:19
static void doStartupChecks(MidiManager *midi_manager, vital::StringLayout *layout=nullptr)
Performs initial startup checks and configuration loading.
Definition startup.cpp:6
Manages a keyboard layout mapping for a computer keyboard used as a MIDI input device.
Definition synth_types.h:134