From 9cef70bbd4fef39a2bdeae620418ba9ee988b558 Mon Sep 17 00:00:00 2001 From: fincs Date: Thu, 21 Aug 2014 01:29:22 +0200 Subject: [PATCH] Remove #ifdef SRV_OVERRIDE_SUPPORT --- libctru/include/3ds/srv.h | 2 -- libctru/source/srv.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/libctru/include/3ds/srv.h b/libctru/include/3ds/srv.h index fbf01ff..09d5afe 100644 --- a/libctru/include/3ds/srv.h +++ b/libctru/include/3ds/srv.h @@ -1,8 +1,6 @@ #ifndef SRV_H #define SRV_H -#define SRV_OVERRIDE_SUPPORT - Result srvInit(); Result srvExit(); Result srvRegisterClient(); diff --git a/libctru/source/srv.c b/libctru/source/srv.c index 5edfecb..f074e79 100644 --- a/libctru/source/srv.c +++ b/libctru/source/srv.c @@ -8,7 +8,6 @@ #include <3ds/svc.h> -#ifdef SRV_OVERRIDE_SUPPORT /* The homebrew loader can choose to supply a list of service handles that have been "stolen" from other processes that have been compromised. This allows us @@ -30,13 +29,11 @@ typedef struct { } service_list_t; extern service_list_t* __service_ptr; -#endif static Handle g_srv_handle = 0; -#ifdef SRV_OVERRIDE_SUPPORT static int __name_cmp(const char* a, const char* b) { u32 i; @@ -63,7 +60,6 @@ static Handle __get_handle_from_list(char* name) { return 0; } -#endif Result srvInit() { @@ -101,7 +97,6 @@ Result srvRegisterClient() Result srvGetServiceHandle(Handle* out, char* name) { -#ifdef SRV_OVERRIDE_SUPPORT /* Look in service-list given to us by loader. If we find find a match, we return it. */ Handle h = __get_handle_from_list(name); @@ -109,7 +104,6 @@ Result srvGetServiceHandle(Handle* out, char* name) if(h != 0) { return svcDuplicateHandle(out, h); } -#endif /* Normal request to service manager. */ u32* cmdbuf = getThreadCommandBuffer();