summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/service.cpp12
-rw-r--r--src/core/hle/service/service.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 4bc96cc18..3434b6dbf 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -75,7 +75,7 @@ public:
75 * Gets the string name used by CTROS for a service 75 * Gets the string name used by CTROS for a service
76 * @return String name of service 76 * @return String name of service
77 */ 77 */
78 std::string GetName() { 78 std::string GetName() const {
79 return "ServiceManager"; 79 return "ServiceManager";
80 } 80 }
81 81
@@ -83,7 +83,7 @@ public:
83 * Gets the string name used by CTROS for a service 83 * Gets the string name used by CTROS for a service
84 * @return Port name of service 84 * @return Port name of service
85 */ 85 */
86 std::string GetPortName() { 86 std::string GetPortName() const {
87 return "srv:"; 87 return "srv:";
88 } 88 }
89 89
@@ -92,8 +92,8 @@ public:
92 * @return Return result of svcSendSyncRequest passed back to user app 92 * @return Return result of svcSendSyncRequest passed back to user app
93 */ 93 */
94 Syscall::Result Sync() { 94 Syscall::Result Sync() {
95 ERROR_LOG(HLE, "Unimplemented function ServiceManager::Sync"); 95 ERROR_LOG(HLE, "Unimplemented function Interface_SRV::Sync");
96 return -1; 96 return 0;
97 } 97 }
98 98
99}; 99};
@@ -102,13 +102,13 @@ public:
102void Init() { 102void Init() {
103 g_manager = new Manager; 103 g_manager = new Manager;
104 g_manager->AddService(new Interface_SRV); 104 g_manager->AddService(new Interface_SRV);
105 NOTICE_LOG(HLE, "ServiceManager initialized OK"); 105 NOTICE_LOG(HLE, "Services initialized OK");
106} 106}
107 107
108/// Shutdown ServiceManager 108/// Shutdown ServiceManager
109void Shutdown() { 109void Shutdown() {
110 delete g_manager; 110 delete g_manager;
111 NOTICE_LOG(HLE, "ServiceManager shutdown OK"); 111 NOTICE_LOG(HLE, "Services shutdown OK");
112} 112}
113 113
114 114
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 3fd855dee..3cad6c642 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -40,7 +40,7 @@ public:
40 * Gets the string name used by CTROS for a service 40 * Gets the string name used by CTROS for a service
41 * @return String name of service 41 * @return String name of service
42 */ 42 */
43 virtual std::string GetName() { 43 virtual std::string GetName() const {
44 return "[UNKNOWN SERVICE NAME]"; 44 return "[UNKNOWN SERVICE NAME]";
45 } 45 }
46 46
@@ -48,7 +48,7 @@ public:
48 * Gets the string name used by CTROS for a service 48 * Gets the string name used by CTROS for a service
49 * @return Port name of service 49 * @return Port name of service
50 */ 50 */
51 virtual std::string GetPortName() { 51 virtual std::string GetPortName() const {
52 return "[UNKNOWN SERVICE PORT]"; 52 return "[UNKNOWN SERVICE PORT]";
53 } 53 }
54 54