Vital
Loading...
Searching...
No Matches
Startup Class Reference

A utility class that handles initialization tasks and compatibility checks upon Vital’s startup. More...

#include <startup.h>

Static Public Member Functions

static void doStartupChecks (MidiManager *midi_manager, vital::StringLayout *layout=nullptr)
 Performs initial startup checks and configuration loading.
 
static bool isComputerCompatible ()
 Checks if the current computer hardware is compatible with Vital’s CPU instruction requirements.
 

Detailed Description

A utility class that handles initialization tasks and compatibility checks upon Vital’s startup.

The Startup class provides methods to perform essential checks and setup when Vital is launched. This includes:

  • Verifying installation and upgrade status.
  • Loading configuration data such as MIDI mappings and user preferences.
  • Ensuring the computer supports the required CPU features.

Member Function Documentation

◆ doStartupChecks()

void Startup::doStartupChecks ( MidiManager * midi_manager,
vital::StringLayout * layout = nullptr )
static

Performs initial startup checks and configuration loading.

This method checks if the software has been installed or upgraded since the last run, updates configuration if necessary, and loads vital preferences and MIDI mappings.

Parameters
midi_managerA pointer to the MidiManager, used to restore MIDI mappings and other related settings.
layoutAn optional pointer to a vital::StringLayout instance, allowing the restoration of custom keyboard layouts.

◆ isComputerCompatible()

bool Startup::isComputerCompatible ( )
static

Checks if the current computer hardware is compatible with Vital’s CPU instruction requirements.

This typically checks for SSE2 or AVX2 support on non-ARM platforms, and assumes compatibility on ARM platforms.

Returns
True if the computer meets the CPU requirements; false otherwise.

The documentation for this class was generated from the following files: