aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/service.h
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2016-11-30 08:04:23 -0500
committerGitHub <noreply@github.com>2016-11-30 08:04:23 -0500
commite5a7f2ef29a8dc715ab9670dedb632a02b835372 (patch)
tree49e48570abc750b3f51e4e5c57ec98fba52c3229 /src/core/hle/service/service.h
parentcf5b8483fc53ca3b4919d231045348625a507d05 (diff)
parent5b136aa21198dc98296bde3dd393bfc5468d7703 (diff)
Merge pull request #1820 from mailwl/service-ver
Set client SDK version to Service APIs
Diffstat (limited to 'src/core/hle/service/service.h')
-rw-r--r--src/core/hle/service/service.h12
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;
};