Factorize permission code

This commit is contained in:
Patrick Nicolas
2024-09-21 20:51:08 +02:00
committed by Guillaume Meunier
parent 1623769816
commit 76626b8133
11 changed files with 130 additions and 37 deletions
+8 -1
View File
@@ -19,8 +19,12 @@
#pragma once
#include "hardware.h"
#include "wivrn_discover.h"
#include <map>
#include <string>
namespace xr
{
class system;
@@ -43,10 +47,13 @@ public:
float preferred_refresh_rate = 0;
float resolution_scale = 1.4;
bool show_performance_metrics = false;
bool microphone = false;
bool passthrough_enabled = false;
bool check_feature(feature f);
void set_feature(feature f, bool state);
private:
std::map<feature, bool> features;
configuration(const std::string &);
public: