diff options
author | mailwl <mailwl@gmail.com> | 2016-11-20 06:50:48 +0100 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2016-11-30 07:51:14 +0100 |
commit | 5b136aa21198dc98296bde3dd393bfc5468d7703 (patch) | |
tree | 49e48570abc750b3f51e4e5c57ec98fba52c3229 /src/core/hle/service/service.h | |
parent | Merge pull request #2233 from Subv/warnings (diff) | |
download | yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.gz yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.bz2 yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.lz yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.xz yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.zst yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 39b5ffaae..29daacfc4 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -29,6 +29,10 @@ public: return GetPortName(); } + virtual void SetVersion(u32 raw_version) { + version.raw = raw_version; + } + typedef void (*Function)(Interface*); struct FunctionInfo { @@ -58,6 +62,14 @@ protected: void Register(const FunctionInfo* functions, size_t n); + union { + u32 raw; + BitField<0, 8, u32> major; + BitField<8, 8, u32> minor; + BitField<16, 8, u32> build; + BitField<24, 8, u32> revision; + } version = {}; + private: boost::container::flat_map<u32, FunctionInfo> m_functions; }; |