diff --git a/src/common/text_logger.cpp b/src/common/text_logger.cpp index 26c28516..f7d5b638 100644 --- a/src/common/text_logger.cpp +++ b/src/common/text_logger.cpp @@ -86,15 +86,6 @@ void text_logger::set_log_info(bool in_mode) } -/** - * Return if info messages should be logged - */ -bool text_logger::log_info() const -{ - return m_log_info; -} - - /** * Set the max message size */ @@ -110,18 +101,6 @@ void text_logger::set_max_size(int in_size) } -/** - * Return the max message size - */ -int text_logger::max_size() const -{ - std::mutex mutex; - std::lock_guard lock(mutex); - - return m_max_size; -} - - /** * Clear all messages */ diff --git a/src/common/text_logger.h b/src/common/text_logger.h index 9306434a..c1a021e1 100644 --- a/src/common/text_logger.h +++ b/src/common/text_logger.h @@ -44,10 +44,7 @@ class text_logger { [[nodiscard]] bool debug_mode() const; void set_log_info(bool in_mode); - [[nodiscard]] bool log_info() const; - void set_max_size(int in_size); - [[nodiscard]] int max_size() const; void clear(); size_t count(); diff --git a/src/env/xplane/env_xplane.cpp b/src/env/xplane/env_xplane.cpp index f0d28633..f9c09462 100644 --- a/src/env/xplane/env_xplane.cpp +++ b/src/env/xplane/env_xplane.cpp @@ -139,10 +139,10 @@ std::filesystem::path env_xplane::profiles_path() */ std::filesystem::path env_xplane::includes_path() { - if (m_profiles_path.empty()) - m_profiles_path = preferences_path().string() + INCLUDES_DIRECTORY_NAME + "/"; + if (m_includes_path.empty()) + m_includes_path = preferences_path().string() + INCLUDES_DIRECTORY_NAME + "/"; - return m_profiles_path; + return m_includes_path; } diff --git a/src/env/xplane/env_xplane.h b/src/env/xplane/env_xplane.h index 58950054..56f2bbc9 100644 --- a/src/env/xplane/env_xplane.h +++ b/src/env/xplane/env_xplane.h @@ -58,6 +58,7 @@ class env_xplane : public environment { std::filesystem::path m_plugin_path; std::filesystem::path m_preferences_path; std::filesystem::path m_profiles_path; + std::filesystem::path m_includes_path; std::unique_ptr m_cmd; std::unique_ptr m_drf; diff --git a/src/profile/map/map_init/map_init_list.h b/src/profile/map/map_init/map_init_list.h index 59a2d627..9b912df3 100644 --- a/src/profile/map/map_init/map_init_list.h +++ b/src/profile/map/map_init/map_init_list.h @@ -16,7 +16,7 @@ //--------------------------------------------------------------------------------------------------------------------- #ifndef XMC_MAP_INIT_LIST_H -#define XM_CMAP_INIT_LIST_H +#define XMC_MAP_INIT_LIST_H // Standard #include @@ -47,4 +47,4 @@ class map_init_list { } // Namespace xmidictrl -#endif // MAP_INIT_LIST_H +#endif // XMC_MAP_INIT_LIST_H