summaryrefslogtreecommitdiffstats
path: root/src/core/hle/syscall.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-19 00:24:24 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-19 00:24:24 +0200
commit725d240bf7b9cb48de7a66f8696695ef7aabc889 (patch)
treef9bbcff151b96109da675e00b23fb65c7a042f25 /src/core/hle/syscall.cpp
parent- moved Handle/Result definitions to kernel.h (diff)
downloadyuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar.gz
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar.bz2
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar.lz
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar.xz
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.tar.zst
yuzu-725d240bf7b9cb48de7a66f8696695ef7aabc889.zip
Diffstat (limited to 'src/core/hle/syscall.cpp')
-rw-r--r--src/core/hle/syscall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/syscall.cpp b/src/core/hle/syscall.cpp
index 047d8c40f..1d7daf95c 100644
--- a/src/core/hle/syscall.cpp
+++ b/src/core/hle/syscall.cpp
@@ -83,7 +83,7 @@ Result MapMemoryBlock(Handle memblock, u32 addr, u32 mypermissions, u32 otherper
/// Connect to an OS service given the port name, returns the handle to the port to out
Result ConnectToPort(void* out, const char* port_name) {
Service::Interface* service = Service::g_manager->FetchFromPortName(port_name);
- Core::g_app_core->SetReg(1, service->GetUID());
+ Core::g_app_core->SetReg(1, service->GetHandle());
DEBUG_LOG(SVC, "ConnectToPort called port_name=%s", port_name);
return 0;
}
@@ -91,7 +91,7 @@ Result ConnectToPort(void* out, const char* port_name) {
/// Synchronize to an OS service
Result SendSyncRequest(Handle session) {
DEBUG_LOG(SVC, "SendSyncRequest called session=0x%08X");
- Service::Interface* service = Service::g_manager->FetchFromUID(session);
+ Service::Interface* service = Service::g_manager->FetchFromHandle(session);
service->Sync();
return 0;
}