diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-16 00:03:41 -0400 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-16 00:03:41 -0400 |
commit | 32c3462047d814eada8f3b80ee5ea2cd03936ae0 (patch) | |
tree | 9df4dd16c09f2b94e02e77b4818dc199e3323cc0 /src/core/hle/service/service.h | |
parent | acef5e0b17e85bd25a5994d83b22d0ba02f589ba (diff) |
- added stubbed out GSP::Gpu service interface
- various cleanups/refactors to HLE services
Diffstat (limited to 'src/core/hle/service/service.h')
-rw-r--r-- | src/core/hle/service/service.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 3b256aa3..9cbf8b6f 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -19,7 +19,8 @@ namespace Service { typedef s32 NativeUID; ///< Native handle for a service -static const int kCommandHeaderOffset = 0x80; ///< Offset into command buffer of header +static const int kMaxPortSize = 0x08; ///< Maximum size of a port name (8 characters) +static const int kCommandHeaderOffset = 0x80; ///< Offset into command buffer of header class Manager; @@ -59,14 +60,15 @@ public: auto itr = m_functions.find(cmd_buff[0]); if (itr == m_functions.end()) { - ERROR_LOG(OSHLE, "Unknown/unimplemented function: port=%s, command=0x%08X!", + ERROR_LOG(OSHLE, "Unknown/unimplemented function: port = %s, command = 0x%08X!", GetPortName().c_str(), cmd_buff[0]); return -1; } if (itr->second.func == NULL) { - ERROR_LOG(OSHLE, "Unimplemented function: port=%s, name=%s!", + ERROR_LOG(OSHLE, "Unimplemented function: port = %s, name = %s!", GetPortName().c_str(), itr->second.name.c_str()); - } + return -1; + } itr->second.func(); |