diff options
| author | 2016-10-31 16:16:12 -0400 | |
|---|---|---|
| committer | 2016-10-31 16:16:12 -0400 | |
| commit | ae2fab4a0edd9626ea2f43643558bbe6eff0b980 (patch) | |
| tree | a7e615f4273651899b36e5d2a09834d2b4d2a0c1 | |
| parent | Merge pull request #2149 from wwylele/fix-contributing (diff) | |
| parent | NWM: stub Initialize with an error (diff) | |
| download | yuzu-ae2fab4a0edd9626ea2f43643558bbe6eff0b980.tar.gz yuzu-ae2fab4a0edd9626ea2f43643558bbe6eff0b980.tar.xz yuzu-ae2fab4a0edd9626ea2f43643558bbe6eff0b980.zip | |
Merge pull request #2126 from wwylele/stub-nwm
NWM: stub Initialize with an error
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/nwm_uds.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cpp index 27e829209..80081aae2 100644 --- a/src/core/hle/service/nwm_uds.cpp +++ b/src/core/hle/service/nwm_uds.cpp | |||
| @@ -97,10 +97,21 @@ static void Initialize(Service::Interface* self) { | |||
| 97 | u32 value = cmd_buff[13]; | 97 | u32 value = cmd_buff[13]; |
| 98 | u32 handle = cmd_buff[14]; | 98 | u32 handle = cmd_buff[14]; |
| 99 | 99 | ||
| 100 | // Because NWM service is not implemented at all, we stub the Initialize function with an error | ||
| 101 | // code instead of success to prevent games from using the service and from causing more issues. | ||
| 102 | // The error code is from a real 3DS with wifi off, thus believed to be "network disabled". | ||
| 103 | /* | ||
| 100 | cmd_buff[1] = RESULT_SUCCESS.raw; | 104 | cmd_buff[1] = RESULT_SUCCESS.raw; |
| 101 | cmd_buff[2] = 0; | 105 | cmd_buff[2] = 0; |
| 102 | cmd_buff[3] = Kernel::g_handle_table.Create(handle_event) | 106 | cmd_buff[3] = Kernel::g_handle_table.Create(handle_event) |
| 103 | .MoveFrom(); // TODO(purpasmart): Verify if this is a event handle | 107 | .MoveFrom(); // TODO(purpasmart): Verify if this is a event handle |
| 108 | */ | ||
| 109 | cmd_buff[0] = IPC::MakeHeader(0x1B, 1, 2); | ||
| 110 | cmd_buff[1] = ResultCode(static_cast<ErrorDescription>(2), ErrorModule::UDS, | ||
| 111 | ErrorSummary::StatusChanged, ErrorLevel::Status) | ||
| 112 | .raw; | ||
| 113 | cmd_buff[2] = 0; | ||
| 114 | cmd_buff[3] = 0; | ||
| 104 | 115 | ||
| 105 | LOG_WARNING(Service_NWM, "(STUBBED) called unk1=0x%08X, unk2=0x%08X, value=%u, handle=0x%08X", | 116 | LOG_WARNING(Service_NWM, "(STUBBED) called unk1=0x%08X, unk2=0x%08X, value=%u, handle=0x%08X", |
| 106 | unk1, unk2, value, handle); | 117 | unk1, unk2, value, handle); |