summaryrefslogtreecommitdiff
path: root/src/core/hle/service/service.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-20 18:13:25 -0400
committerGravatar bunnei2014-05-20 18:13:25 -0400
commit44336329eddd7dbe1f76144e9a1e95e5f76ed372 (patch)
tree49c103d52af50fe6ef451324f1c8aae6363d0468 /src/core/hle/service/service.cpp
parentapt: changed stubbed handle to be something other than 0xDEADBEEF (used as a ... (diff)
downloadyuzu-44336329eddd7dbe1f76144e9a1e95e5f76ed372.tar.gz
yuzu-44336329eddd7dbe1f76144e9a1e95e5f76ed372.tar.xz
yuzu-44336329eddd7dbe1f76144e9a1e95e5f76ed372.zip
- created a Kernel namespace
- cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues) - added handle types for all different CTROS handles
Diffstat (limited to 'src/core/hle/service/service.cpp')
-rw-r--r--src/core/hle/service/service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index b3e414e0f..08d0c43ff 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -34,7 +34,7 @@ Manager::~Manager() {
34 34
35/// Add a service to the manager (does not create it though) 35/// Add a service to the manager (does not create it though)
36void Manager::AddService(Interface* service) { 36void Manager::AddService(Interface* service) {
37 m_port_map[service->GetPortName()] = g_kernel_objects.Create(service); 37 m_port_map[service->GetPortName()] = Kernel::g_object_pool.Create(service);
38 m_services.push_back(service); 38 m_services.push_back(service);
39} 39}
40 40
@@ -48,7 +48,7 @@ void Manager::DeleteService(std::string port_name) {
48 48
49/// Get a Service Interface from its Handle 49/// Get a Service Interface from its Handle
50Interface* Manager::FetchFromHandle(Handle handle) { 50Interface* Manager::FetchFromHandle(Handle handle) {
51 return g_kernel_objects.GetFast<Interface>(handle); 51 return Kernel::g_object_pool.GetFast<Interface>(handle);
52} 52}
53 53
54/// Get a Service Interface from its port 54/// Get a Service Interface from its port