Explorar el Código

applet_oe: Fix GetOperationMode and GetPerformanceMode.

bunnei hace 8 años
padre
commit
f621310da2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/core/hle/service/am/applet_oe.cpp

+ 2 - 2
src/core/hle/service/am/applet_oe.cpp

@@ -185,7 +185,7 @@ private:
     void GetOperationMode(Kernel::HLERequestContext& ctx) {
         IPC::RequestBuilder rb{ctx, 3};
         rb.Push(RESULT_SUCCESS);
-        rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld));
+        rb.Push(static_cast<u8>(OperationMode::Handheld));
 
         LOG_WARNING(Service, "(STUBBED) called");
     }
@@ -193,7 +193,7 @@ private:
     void GetPerformanceMode(Kernel::HLERequestContext& ctx) {
         IPC::RequestBuilder rb{ctx, 3};
         rb.Push(RESULT_SUCCESS);
-        rb.Push<u32>(0);
+        rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld));
 
         LOG_WARNING(Service, "(STUBBED) called");
     }