diff options
| author | a1xd <[email protected]> | 2020-12-02 05:25:19 -0500 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-12-02 05:25:19 -0500 |
| commit | 7d14daf1d5fce4d09471a3abe2aca49cf7680816 (patch) | |
| tree | 43411443aadc79d36ad1da8063208cd51fdb15fe /wrapper/wrapper_io.hpp | |
| parent | merge common-install with common (diff) | |
| download | rawaccel-7d14daf1d5fce4d09471a3abe2aca49cf7680816.tar.xz rawaccel-7d14daf1d5fce4d09471a3abe2aca49cf7680816.zip | |
embed version info into assemblies
check app versions against lib, lib against driver
add an 'about' dialog which displays version details, accessible from menu
refactor error handling + add check for negative offset
Diffstat (limited to 'wrapper/wrapper_io.hpp')
| -rw-r--r-- | wrapper/wrapper_io.hpp | 8 |
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())) {} +}; |