diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-16 04:40:19 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-16 04:40:19 +0200 |
commit | 7ec5950bc4c8e4a786df1f4c3392d7b5332d1613 (patch) | |
tree | 7d7046dcced5ce635921ebdadabf1a1aa8b0647f /src/core/hle/service/service.h | |
parent | added helper functions for upper/lowercase strings (diff) | |
download | yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar.gz yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar.bz2 yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar.lz yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar.xz yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.tar.zst yuzu-7ec5950bc4c8e4a786df1f4c3392d7b5332d1613.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 365583ed2..9368a9f0f 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -39,14 +39,6 @@ public: /** * Gets the string name used by CTROS for a service - * @return String name of service - */ - virtual std::string GetName() const { - return "[UNKNOWN SERVICE NAME]"; - } - - /** - * Gets the string name used by CTROS for a service * @return Port name of service */ virtual std::string GetPortName() const { @@ -59,8 +51,19 @@ public: */ virtual Syscall::Result Sync() = 0; +protected: + /** + * Registers the functions in the service + */ + void Register(const HLE::FunctionDef* functions, int len) { + for (int i = 0; i < len; i++) { + m_functions[functions[i].id] = functions[i]; + } + } + private: u32 m_uid; + std::map<u32, HLE::FunctionDef> m_functions; }; /// Simple class to manage accessing services from ports and UID handles |