chore: cleanup config data

This commit is contained in:
Hyblocker committed 2026-06-22 20:34:48 +02:00
1 parent 5a334e6b55
commit 0fa961ce3e
3 files changed
+5 -6

No files matched your search

@@ -99,21 +99,20 @@ namespace spacecal {
struct Calibration_t {
bool is_active = false;
Transform ref_to_target_transform; // @TODO: redundant?
Transform calibrated_transform;
Transform anchor_transform; // @TODO: redundant?
AnchorMode anchor_mode = AnchorMode::FixedWorld;
ContinuousCalibrationData continuous;
bool calibrate_motion_vectors = false;
uint64_t calibration_speed = 0;
std::string hmd_tracking_system; // @TODO: redundant?
TrackingDevice reference_device;
TrackingDevice target_device;
};
std::string uiLocale = "system";
std::string ui_locale = "system";
bool advanced_settings = false;
std::vector<Calibration_t> calibrations;
};
+1 -1
View File
@@ -58,7 +58,7 @@ namespace spacecal {
m_nativeLanguageNames.clear();
// config will be valid by this point, so we can read it
m_selectedLocale = getLocaleFromRegionString(ConfigurationManager::getInstance()->getConfiguration()->uiLocale);
m_selectedLocale = getLocaleFromRegionString(ConfigurationManager::getInstance()->getConfiguration()->ui_locale);
if (m_selectedLocale == Locale::System) {
m_selectedLocale = estimateSystemLocale();
}
+1 -1
View File
@@ -483,7 +483,7 @@ namespace spacecal {
ImGui::TextUnformatted(LOCALE_GET("settings_locale").c_str());
ImGui::SameLine();
std::string& szLocale = ConfigurationManager::getInstance()->getConfiguration()->uiLocale;
std::string& szLocale = ConfigurationManager::getInstance()->getConfiguration()->ui_locale;
Locale eLocale = LocalisationManager::getInstance()->getLocaleFromRegionString(szLocale);
std::string selectedLocaleNativeName = LocalisationManager::getInstance()->getNativeTongueLocaleName(eLocale);