mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 12:56:27 -05:00
cleanups to service HLE
This commit is contained in:
parent
68e198476f
commit
b24e6f2b60
2 changed files with 8 additions and 8 deletions
|
@ -75,7 +75,7 @@ public:
|
||||||
* Gets the string name used by CTROS for a service
|
* Gets the string name used by CTROS for a service
|
||||||
* @return String name of service
|
* @return String name of service
|
||||||
*/
|
*/
|
||||||
std::string GetName() {
|
std::string GetName() const {
|
||||||
return "ServiceManager";
|
return "ServiceManager";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
* Gets the string name used by CTROS for a service
|
* Gets the string name used by CTROS for a service
|
||||||
* @return Port name of service
|
* @return Port name of service
|
||||||
*/
|
*/
|
||||||
std::string GetPortName() {
|
std::string GetPortName() const {
|
||||||
return "srv:";
|
return "srv:";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,8 +92,8 @@ public:
|
||||||
* @return Return result of svcSendSyncRequest passed back to user app
|
* @return Return result of svcSendSyncRequest passed back to user app
|
||||||
*/
|
*/
|
||||||
Syscall::Result Sync() {
|
Syscall::Result Sync() {
|
||||||
ERROR_LOG(HLE, "Unimplemented function ServiceManager::Sync");
|
ERROR_LOG(HLE, "Unimplemented function Interface_SRV::Sync");
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -102,13 +102,13 @@ public:
|
||||||
void Init() {
|
void Init() {
|
||||||
g_manager = new Manager;
|
g_manager = new Manager;
|
||||||
g_manager->AddService(new Interface_SRV);
|
g_manager->AddService(new Interface_SRV);
|
||||||
NOTICE_LOG(HLE, "ServiceManager initialized OK");
|
NOTICE_LOG(HLE, "Services initialized OK");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Shutdown ServiceManager
|
/// Shutdown ServiceManager
|
||||||
void Shutdown() {
|
void Shutdown() {
|
||||||
delete g_manager;
|
delete g_manager;
|
||||||
NOTICE_LOG(HLE, "ServiceManager shutdown OK");
|
NOTICE_LOG(HLE, "Services shutdown OK");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
* Gets the string name used by CTROS for a service
|
* Gets the string name used by CTROS for a service
|
||||||
* @return String name of service
|
* @return String name of service
|
||||||
*/
|
*/
|
||||||
virtual std::string GetName() {
|
virtual std::string GetName() const {
|
||||||
return "[UNKNOWN SERVICE NAME]";
|
return "[UNKNOWN SERVICE NAME]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public:
|
||||||
* Gets the string name used by CTROS for a service
|
* Gets the string name used by CTROS for a service
|
||||||
* @return Port name of service
|
* @return Port name of service
|
||||||
*/
|
*/
|
||||||
virtual std::string GetPortName() {
|
virtual std::string GetPortName() const {
|
||||||
return "[UNKNOWN SERVICE PORT]";
|
return "[UNKNOWN SERVICE PORT]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue