yuzu/src/core/hle/service
Yuri Kunde Schlesner c2588403c0 HLE: Revamp error handling throrough the HLE code
All service calls in the CTR OS return result codes indicating the
success or failure of the call. Previous to this commit, Citra's HLE
emulation of services and the kernel universally either ignored errors
or returned dummy -1 error codes.

This commit makes an initial effort to provide an infrastructure for
error reporting and propagation which can be use going forward to make
HLE calls accurately return errors as the original system. A few parts
of the code have been updated to use the new system where applicable.

One part of this effort is the definition of the `ResultCode` type,
which provides facilities for constructing and parsing error codes in
the structured format used by the CTR.

The `ResultVal` type builds on `ResultCode` by providing a container for
values returned by function that can report errors. It enforces that
correct error checking will be done on function returns by preventing
the use of the return value if the function returned an error code.

Currently this change is mostly internal since errors are still
suppressed on the ARM<->HLE border, as a temporary compatibility hack.
As functionality is implemented and tested this hack can be eventually
removed.
2014-11-24 17:08:36 -02:00
..
ac_u.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ac_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
am_net.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
am_net.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
apt_u.cpp Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
apt_u.h Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
boss_u.cpp Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
boss_u.h Add missing boss:U service, needed according to Nintendo Zone logs. 2014-11-17 07:31:37 -08:00
cfg_i.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
cfg_i.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
cfg_u.cpp Added a bunch of services 2014-11-01 15:28:35 -07:00
cfg_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
csnd_snd.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
csnd_snd.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
dsp_dsp.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
dsp_dsp.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
err_f.cpp Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
err_f.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
frd_u.cpp Add FRD:U service and functions 2014-11-10 22:43:45 -08:00
frd_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
fs_user.cpp HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
fs_user.h Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functions 2014-11-12 19:30:17 -08:00
gsp_gpu.cpp HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
gsp_gpu.h Renamed souce files of services to match port names 2014-10-29 15:55:51 -04:00
hid_user.cpp HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
hid_user.h Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
ir_rst.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ir_rst.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ir_u.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ir_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
mic_u.cpp Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-11-19 09:03:07 +00:00
mic_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ndm_u.cpp Renamed souce files of services to match port names 2014-10-29 15:55:51 -04:00
ndm_u.h Renamed souce files of services to match port names 2014-10-29 15:55:51 -04:00
nwm_uds.cpp Added a bunch of services 2014-11-01 15:28:35 -07:00
nwm_uds.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
pm_app.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
pm_app.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ptm_u.cpp Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
ptm_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
service.cpp HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
service.h HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
soc_u.cpp Added a bunch of services 2014-11-01 15:28:35 -07:00
soc_u.h Add more services and some fixes, along with more "override" 2014-11-20 17:09:57 -08:00
srv.cpp HLE: Revamp error handling throrough the HLE code 2014-11-24 17:08:36 -02:00
srv.h Add override keyword through the code. 2014-10-26 16:18:05 -02:00
ssl_c.cpp Added a bunch of services 2014-11-01 15:28:35 -07:00
ssl_c.h Added a bunch of services 2014-11-01 15:28:35 -07:00