diff options
| author | 2017-03-08 16:28:30 -0500 | |
|---|---|---|
| committer | 2017-06-02 18:27:56 -0400 | |
| commit | 1ecb322daa0e2521fe0e179e87889db9aaaf63b0 (patch) | |
| tree | 6f8cc571b41a76c7ab93843472809bfc9121abb7 /src/core/hle | |
| parent | Fixed encrypted ROM error messages. (diff) | |
| download | yuzu-1ecb322daa0e2521fe0e179e87889db9aaaf63b0.tar.gz yuzu-1ecb322daa0e2521fe0e179e87889db9aaaf63b0.tar.xz yuzu-1ecb322daa0e2521fe0e179e87889db9aaaf63b0.zip | |
Added system for handling core errors in citra-qt.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/apt/apt.cpp | 7 | ||||
| -rw-r--r-- | src/core/hle/service/err_f.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/fs/fs_user.cpp | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 366d1eacf..a92abb58f 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "common/common_paths.h" | 5 | #include "common/common_paths.h" |
| 6 | #include "common/file_util.h" | 6 | #include "common/file_util.h" |
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "core/core.h" | ||
| 8 | #include "core/hle/applets/applet.h" | 9 | #include "core/hle/applets/applet.h" |
| 9 | #include "core/hle/kernel/event.h" | 10 | #include "core/hle/kernel/event.h" |
| 10 | #include "core/hle/kernel/mutex.h" | 11 | #include "core/hle/kernel/mutex.h" |
| @@ -74,6 +75,7 @@ void GetSharedFont(Service::Interface* self) { | |||
| 74 | LOG_ERROR(Service_APT, "shared font file missing - go dump it from your 3ds"); | 75 | LOG_ERROR(Service_APT, "shared font file missing - go dump it from your 3ds"); |
| 75 | rb.Push<u32>(-1); // TODO: Find the right error code | 76 | rb.Push<u32>(-1); // TODO: Find the right error code |
| 76 | rb.Skip(1 + 2, true); | 77 | rb.Skip(1 + 2, true); |
| 78 | Core::System::GetInstance().SetStatus(Core::System::ResultStatus::ErrorSharedFont); | ||
| 77 | return; | 79 | return; |
| 78 | } | 80 | } |
| 79 | 81 | ||
| @@ -279,8 +281,9 @@ void CancelParameter(Service::Interface* self) { | |||
| 279 | rb.Push(RESULT_SUCCESS); // No error | 281 | rb.Push(RESULT_SUCCESS); // No error |
| 280 | rb.Push(true); // Set to Success | 282 | rb.Push(true); // Set to Success |
| 281 | 283 | ||
| 282 | LOG_WARNING(Service_APT, "(STUBBED) called check_sender=0x%08X, sender_appid=0x%08X, " | 284 | LOG_WARNING(Service_APT, |
| 283 | "check_receiver=0x%08X, receiver_appid=0x%08X", | 285 | "(STUBBED) called check_sender=0x%08X, sender_appid=0x%08X, " |
| 286 | "check_receiver=0x%08X, receiver_appid=0x%08X", | ||
| 284 | check_sender, sender_appid, check_receiver, receiver_appid); | 287 | check_sender, sender_appid, check_receiver, receiver_appid); |
| 285 | } | 288 | } |
| 286 | 289 | ||
diff --git a/src/core/hle/service/err_f.cpp b/src/core/hle/service/err_f.cpp index 9da55f328..4f4dc6dc7 100644 --- a/src/core/hle/service/err_f.cpp +++ b/src/core/hle/service/err_f.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/bit_field.h" | 10 | #include "common/bit_field.h" |
| 11 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "core/core.h" | ||
| 13 | #include "core/hle/result.h" | 14 | #include "core/hle/result.h" |
| 14 | #include "core/hle/service/err_f.h" | 15 | #include "core/hle/service/err_f.h" |
| 15 | 16 | ||
| @@ -172,6 +173,7 @@ static void ThrowFatalError(Interface* self) { | |||
| 172 | const ErrInfo* errinfo = reinterpret_cast<ErrInfo*>(&cmd_buff[1]); | 173 | const ErrInfo* errinfo = reinterpret_cast<ErrInfo*>(&cmd_buff[1]); |
| 173 | LOG_CRITICAL(Service_ERR, "Fatal error type: %s", | 174 | LOG_CRITICAL(Service_ERR, "Fatal error type: %s", |
| 174 | GetErrType(errinfo->errinfo_common.specifier).c_str()); | 175 | GetErrType(errinfo->errinfo_common.specifier).c_str()); |
| 176 | Core::System::GetInstance().SetStatus(Core::System::ResultStatus::ErrorUnknown); | ||
| 175 | 177 | ||
| 176 | // Generic Info | 178 | // Generic Info |
| 177 | LogGenericInfo(errinfo->errinfo_common); | 179 | LogGenericInfo(errinfo->errinfo_common); |
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index e53a970d3..5a4437123 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/scope_exit.h" | 9 | #include "common/scope_exit.h" |
| 10 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 11 | #include "core/core.h" | ||
| 11 | #include "core/file_sys/errors.h" | 12 | #include "core/file_sys/errors.h" |
| 12 | #include "core/hle/kernel/client_session.h" | 13 | #include "core/hle/kernel/client_session.h" |
| 13 | #include "core/hle/result.h" | 14 | #include "core/hle/result.h" |
| @@ -132,6 +133,10 @@ static void OpenFileDirectly(Service::Interface* self) { | |||
| 132 | LOG_ERROR(Service_FS, | 133 | LOG_ERROR(Service_FS, |
| 133 | "failed to get a handle for archive archive_id=0x%08X archive_path=%s", | 134 | "failed to get a handle for archive archive_id=0x%08X archive_path=%s", |
| 134 | static_cast<u32>(archive_id), archive_path.DebugStr().c_str()); | 135 | static_cast<u32>(archive_id), archive_path.DebugStr().c_str()); |
| 136 | if (static_cast<u32>(archive_id) == 0x2345678A) { | ||
| 137 | Core::System::GetInstance().SetStatus(Core::System::ResultStatus::ErrorSystemFiles); | ||
| 138 | return; | ||
| 139 | } | ||
| 135 | cmd_buff[1] = archive_handle.Code().raw; | 140 | cmd_buff[1] = archive_handle.Code().raw; |
| 136 | cmd_buff[3] = 0; | 141 | cmd_buff[3] = 0; |
| 137 | return; | 142 | return; |