From 5b136aa21198dc98296bde3dd393bfc5468d7703 Mon Sep 17 00:00:00 2001 From: mailwl Date: Sun, 20 Nov 2016 08:50:48 +0300 Subject: Set client SDK version to Service APIs --- src/core/hle/service/service.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/core/hle/service/service.h') 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 m_functions; }; -- cgit v1.2.3