summaryrefslogtreecommitdiff
path: root/wrapper/wrapper_io.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-12-05 21:28:08 -0500
committerGitHub <[email protected]>2020-12-05 21:28:08 -0500
commitc8503654da5bc40a129e58914549cd394349d059 (patch)
treee4760c579597d0e292c7b03dff95d19bb8f3c750 /wrapper/wrapper_io.hpp
parentMerge pull request #45 from JacobPalecki/fix (diff)
parentupdate signed, add installers (diff)
downloadrawaccel-c8503654da5bc40a129e58914549cd394349d059.tar.xz
rawaccel-c8503654da5bc40a129e58914549cd394349d059.zip
Merge pull request #46 from a1xd/1.3
Diffstat (limited to 'wrapper/wrapper_io.hpp')
-rw-r--r--wrapper/wrapper_io.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/wrapper/wrapper_io.hpp b/wrapper/wrapper_io.hpp
index 19f096f..6b94e46 100644
--- a/wrapper/wrapper_io.hpp
+++ b/wrapper/wrapper_io.hpp
@@ -1,6 +1,8 @@
#pragma once
+#include <rawaccel-error.hpp>
#include <rawaccel-settings.h>
+#include <rawaccel-version.h>
using namespace rawaccel;
using namespace System;
@@ -8,6 +10,7 @@ using namespace System;
struct wrapper_io {
static void writeToDriver(const settings&);
static void readFromDriver(settings&);
+ static void getDriverVersion(version_t&);
};
public ref struct DriverIOException : public IO::IOException {
@@ -16,4 +19,7 @@ public:
DriverIOException(String^ what) : IO::IOException(what) {}
};
-public ref struct DriverNotInstalledException : public DriverIOException {};
+public ref struct DriverNotInstalledException : public DriverIOException {
+ DriverNotInstalledException() :
+ DriverIOException(gcnew String(install_error().what())) {}
+};