Преглед на файлове

service: changed interface to return 0 (no error) when a service method is unimplemented - hack to make apps boot further

bunnei преди 12 години
родител
ревизия
70af9d620b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/core/hle/service/service.h

+ 2 - 2
src/core/hle/service/service.h

@@ -87,12 +87,12 @@ public:
         if (itr == m_functions.end()) {
             ERROR_LOG(OSHLE, "Unknown/unimplemented function: port = %s, command = 0x%08X!", 
                 GetPortName(), cmd_buff[0]);
-            return -1;
+            return 0; // TODO(bunnei): Hack - ignore error
         }
         if (itr->second.func == NULL) {
             ERROR_LOG(OSHLE, "Unimplemented function: port = %s, name = %s!", 
                 GetPortName(), itr->second.name.c_str());
-            return -1;
+            return 0; // TODO(bunnei): Hack - ignore error
         } 
 
         itr->second.func(this);