diff options
| author | mailwl <mailwl@gmail.com> | 2016-11-20 08:50:48 +0300 |
|---|---|---|
| committer | mailwl <mailwl@gmail.com> | 2016-11-30 09:51:14 +0300 |
| commit | 5b136aa21198dc98296bde3dd393bfc5468d7703 (patch) | |
| tree | 49e48570abc750b3f51e4e5c57ec98fba52c3229 /src/core/hle/service/service.h | |
| parent | cf5b8483fc53ca3b4919d231045348625a507d05 (diff) | |
Set client SDK version to Service APIs
Diffstat (limited to 'src/core/hle/service/service.h')
| -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; }; |
