diff options
author | bunnei <bunneidev@gmail.com> | 2014-08-19 03:42:44 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-08-19 03:42:44 +0200 |
commit | e9c5c563a500ac19ecb2f580ce065a9010dedac9 (patch) | |
tree | 25155672077a81a5f1b66e738826a7b850c55e82 /src/core/hle/service/service.h | |
parent | Merge pull request #45 from bunnei/master (diff) | |
parent | Core: Alter the kernel string functions to use std::string instead of const char*. (diff) | |
download | yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.gz yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.bz2 yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.lz yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.xz yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.zst yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index dcd525727..cb1ecde31 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -39,8 +39,8 @@ class Interface : public Kernel::Object { friend class Manager; public: - const char *GetName() const { return GetPortName(); } - const char *GetTypeName() const { return GetPortName(); } + std::string GetName() const { return GetPortName(); } + std::string GetTypeName() const { return GetPortName(); } static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Service; } Kernel::HandleType GetHandleType() const { return Kernel::HandleType::Service; } @@ -57,7 +57,7 @@ public: * Gets the string name used by CTROS for a service * @return Port name of service */ - virtual const char *GetPortName() const { + virtual std::string GetPortName() const { return "[UNKNOWN SERVICE PORT]"; } @@ -86,7 +86,7 @@ public: if (itr == m_functions.end()) { ERROR_LOG(OSHLE, "unknown/unimplemented function: port=%s, command=0x%08X", - GetPortName(), cmd_buff[0]); + GetPortName().c_str(), cmd_buff[0]); // TODO(bunnei): Hack - ignore error u32* cmd_buff = Service::GetCommandBuffer(); @@ -95,7 +95,7 @@ public: } if (itr->second.func == nullptr) { ERROR_LOG(OSHLE, "unimplemented function: port=%s, name=%s", - GetPortName(), itr->second.name.c_str()); + GetPortName().c_str(), itr->second.name.c_str()); // TODO(bunnei): Hack - ignore error u32* cmd_buff = Service::GetCommandBuffer(); |