From b24e6f2b609e1a75f05124a6246801dd0e56183a Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 12 Apr 2014 22:08:48 -0400 Subject: [PATCH] cleanups to service HLE --- src/core/hle/service/service.cpp | 12 ++++++------ src/core/hle/service/service.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 4bc96cc188..3434b6dbf2 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -75,7 +75,7 @@ public: * Gets the string name used by CTROS for a service * @return String name of service */ - std::string GetName() { + std::string GetName() const { return "ServiceManager"; } @@ -83,7 +83,7 @@ public: * Gets the string name used by CTROS for a service * @return Port name of service */ - std::string GetPortName() { + std::string GetPortName() const { return "srv:"; } @@ -92,8 +92,8 @@ public: * @return Return result of svcSendSyncRequest passed back to user app */ Syscall::Result Sync() { - ERROR_LOG(HLE, "Unimplemented function ServiceManager::Sync"); - return -1; + ERROR_LOG(HLE, "Unimplemented function Interface_SRV::Sync"); + return 0; } }; @@ -102,13 +102,13 @@ public: void Init() { g_manager = new Manager; g_manager->AddService(new Interface_SRV); - NOTICE_LOG(HLE, "ServiceManager initialized OK"); + NOTICE_LOG(HLE, "Services initialized OK"); } /// Shutdown ServiceManager void Shutdown() { delete g_manager; - NOTICE_LOG(HLE, "ServiceManager shutdown OK"); + NOTICE_LOG(HLE, "Services shutdown OK"); } diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 3fd855dee7..3cad6c6429 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -40,7 +40,7 @@ public: * Gets the string name used by CTROS for a service * @return String name of service */ - virtual std::string GetName() { + virtual std::string GetName() const { return "[UNKNOWN SERVICE NAME]"; } @@ -48,7 +48,7 @@ public: * Gets the string name used by CTROS for a service * @return Port name of service */ - virtual std::string GetPortName() { + virtual std::string GetPortName() const { return "[UNKNOWN SERVICE PORT]"; }