summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-08-18 21:42:44 -0400
committerGravatar bunnei2014-08-18 21:42:44 -0400
commite9c5c563a500ac19ecb2f580ce065a9010dedac9 (patch)
tree25155672077a81a5f1b66e738826a7b850c55e82 /src/core/hle/kernel/kernel.h
parentMerge pull request #45 from bunnei/master (diff)
parentCore: Alter the kernel string functions to use std::string instead of const c... (diff)
downloadyuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.gz
yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.tar.xz
yuzu-e9c5c563a500ac19ecb2f580ce065a9010dedac9.zip
Merge pull request #55 from lioncash/string
Core: Alter the kernel string functions to use std::string instead of const char*.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index d9afcdd25..6a2e395ed 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -4,6 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <string>
7#include "common/common.h" 8#include "common/common.h"
8 9
9typedef u32 Handle; 10typedef u32 Handle;
@@ -33,7 +34,6 @@ enum class HandleType : u32 {
33}; 34};
34 35
35enum { 36enum {
36 MAX_NAME_LENGTH = 0x100,
37 DEFAULT_STACK_SIZE = 0x4000, 37 DEFAULT_STACK_SIZE = 0x4000,
38}; 38};
39 39
@@ -45,8 +45,8 @@ class Object : NonCopyable {
45public: 45public:
46 virtual ~Object() {} 46 virtual ~Object() {}
47 Handle GetHandle() const { return handle; } 47 Handle GetHandle() const { return handle; }
48 virtual const char* GetTypeName() const { return "[BAD KERNEL OBJECT TYPE]"; } 48 virtual std::string GetTypeName() const { return "[BAD KERNEL OBJECT TYPE]"; }
49 virtual const char* GetName() const { return "[UNKNOWN KERNEL OBJECT]"; } 49 virtual std::string GetName() const { return "[UNKNOWN KERNEL OBJECT]"; }
50 virtual Kernel::HandleType GetHandleType() const = 0; 50 virtual Kernel::HandleType GetHandleType() const = 0;
51 51
52 /** 52 /**