From 32c3462047d814eada8f3b80ee5ea2cd03936ae0 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 16 Apr 2014 00:03:41 -0400 Subject: - added stubbed out GSP::Gpu service interface - various cleanups/refactors to HLE services --- src/core/hle/service/service.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (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 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(); -- cgit v1.2.3