]> Chaos Git - corbenik/ctrulib.git/commitdiff
Remove #ifdef SRV_OVERRIDE_SUPPORT
authorfincs <fincs.alt1@gmail.com>
Wed, 20 Aug 2014 23:29:22 +0000 (01:29 +0200)
committerfincs <fincs.alt1@gmail.com>
Wed, 20 Aug 2014 23:29:22 +0000 (01:29 +0200)
libctru/include/3ds/srv.h
libctru/source/srv.c

index fbf01ff627817b80d45d4f926d6095ef0b09d990..09d5afe53df37e9643f1600d02ef2d53c86aa529 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef SRV_H
 #define SRV_H
 
-#define SRV_OVERRIDE_SUPPORT
-
 Result srvInit();
 Result srvExit();
 Result srvRegisterClient();
index 5edfecb2e3d7567b174beaa2cae3b7fa15be35ee..f074e791638962437ab018bfd8ee7c9703cd956a 100644 (file)
@@ -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();