mirror of
https://github.com/hyblocker/OpenVR-SpaceCalibrator.git
synced 2026-10-29 04:01:43 +01:00
chore: cleanup config data
This commit is contained in:
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;
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user