diff options
author | wwylele <wwylele@gmail.com> | 2016-10-12 15:02:08 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-10-12 16:33:44 +0200 |
commit | 32789a70fb3189e6cc467e86417d85bada7fb7e2 (patch) | |
tree | e5406423a23cf34076297e54ad9e324ed1fd8b6d /src/core/hle/service/nwm_uds.cpp | |
parent | Merge pull request #1652 from wwylele/kernal-tool (diff) | |
download | yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar.gz yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar.bz2 yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar.lz yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar.xz yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.tar.zst yuzu-32789a70fb3189e6cc467e86417d85bada7fb7e2.zip |
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) { u32 value = cmd_buff[13]; u32 handle = cmd_buff[14]; + // Because NWM service is not implemented at all, we stub the Initialize function with an error + // code instead of success to prevent games from using the service and from causing more issues. + // The error code is from a real 3DS with wifi off, thus believed to be "network disabled". + /* cmd_buff[1] = RESULT_SUCCESS.raw; cmd_buff[2] = 0; cmd_buff[3] = Kernel::g_handle_table.Create(handle_event) .MoveFrom(); // TODO(purpasmart): Verify if this is a event handle + */ + cmd_buff[0] = IPC::MakeHeader(0x1B, 1, 2); + cmd_buff[1] = ResultCode(static_cast<ErrorDescription>(2), ErrorModule::UDS, + ErrorSummary::StatusChanged, ErrorLevel::Status) + .raw; + cmd_buff[2] = 0; + cmd_buff[3] = 0; LOG_WARNING(Service_NWM, "(STUBBED) called unk1=0x%08X, unk2=0x%08X, value=%u, handle=0x%08X", unk1, unk2, value, handle); |