aboutsummaryrefslogtreecommitdiff
path: root/include/GsrInfo.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-24 00:42:33 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-24 00:42:33 +0100
commitf036fcbc0ff56dbab185d42c40f748e9c097bf22 (patch)
tree69eef4cacfae906c7866a3180d361b318408d83f /include/GsrInfo.hpp
parent5b84d7421f44c8bc00999071f2b3d46d238a9946 (diff)
Add 'restart replay on save' option
Diffstat (limited to 'include/GsrInfo.hpp')
-rw-r--r--include/GsrInfo.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/GsrInfo.hpp b/include/GsrInfo.hpp
index 86df0b7..a8c0742 100644
--- a/include/GsrInfo.hpp
+++ b/include/GsrInfo.hpp
@@ -2,6 +2,7 @@
#include <string>
#include <vector>
+#include <stdint.h>
#include <mglpp/system/vec.hpp>
@@ -24,6 +25,21 @@ namespace gsr {
mgl::vec2i size;
};
+ struct GsrVersion {
+ uint8_t major = 0;
+ uint8_t minor = 0;
+ uint8_t patch = 0;
+
+ bool operator>(const GsrVersion &other) const;
+ bool operator>=(const GsrVersion &other) const;
+ bool operator<(const GsrVersion &other) const;
+ bool operator<=(const GsrVersion &other) const;
+ bool operator==(const GsrVersion &other) const;
+ bool operator!=(const GsrVersion &other) const;
+
+ std::string to_string() const;
+ };
+
struct SupportedCaptureOptions {
bool window = false;
bool focused = false;
@@ -40,6 +56,7 @@ namespace gsr {
struct SystemInfo {
DisplayServer display_server = DisplayServer::UNKNOWN;
bool supports_app_audio = false;
+ GsrVersion gsr_version;
};
enum class GpuVendor {