Refactors

This commit is contained in:
ahsanswr
2026-07-26 17:24:36 +02:00
committed by Guillaume Meunier
parent 80ee73128d
commit 84d172f2e8
7 changed files with 205 additions and 213 deletions
+6 -1
View File
@@ -28,6 +28,7 @@
#include <simdjson.h>
#include <string>
#include <type_traits>
#include <vector>
#include <openxr/openxr.h>
namespace xr
@@ -36,6 +37,9 @@ class session;
class system;
} // namespace xr
// key <-> member serialization descriptor, defined in configuration.cpp
struct config_field;
enum class feature
{
microphone,
@@ -124,7 +128,8 @@ private:
std::map<feature, bool> features;
std::optional<float> stream_scale;
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
// table of scalar settings shared by save()/load(); non-scalar settings are explicit
static const std::vector<config_field> & config_fields();
public:
configuration(xr::system &, xr::session &);