c2588403c0
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.
156 lines
5.1 KiB
CMake
156 lines
5.1 KiB
CMake
set(SRCS
|
|
arm/disassembler/arm_disasm.cpp
|
|
arm/disassembler/load_symbol_map.cpp
|
|
arm/dyncom/arm_dyncom.cpp
|
|
arm/dyncom/arm_dyncom_dec.cpp
|
|
arm/dyncom/arm_dyncom_interpreter.cpp
|
|
arm/dyncom/arm_dyncom_run.cpp
|
|
arm/dyncom/arm_dyncom_thumb.cpp
|
|
arm/interpreter/arm_interpreter.cpp
|
|
arm/interpreter/armcopro.cpp
|
|
arm/interpreter/armemu.cpp
|
|
arm/interpreter/arminit.cpp
|
|
arm/interpreter/armsupp.cpp
|
|
arm/interpreter/armvirt.cpp
|
|
arm/interpreter/thumbemu.cpp
|
|
arm/skyeye_common/vfp/vfp.cpp
|
|
arm/skyeye_common/vfp/vfpdouble.cpp
|
|
arm/skyeye_common/vfp/vfpinstr.cpp
|
|
arm/skyeye_common/vfp/vfpsingle.cpp
|
|
file_sys/archive_romfs.cpp
|
|
file_sys/archive_sdmc.cpp
|
|
file_sys/file_romfs.cpp
|
|
file_sys/file_sdmc.cpp
|
|
file_sys/directory_romfs.cpp
|
|
file_sys/directory_sdmc.cpp
|
|
hle/kernel/address_arbiter.cpp
|
|
hle/kernel/archive.cpp
|
|
hle/kernel/event.cpp
|
|
hle/kernel/kernel.cpp
|
|
hle/kernel/mutex.cpp
|
|
hle/kernel/shared_memory.cpp
|
|
hle/kernel/thread.cpp
|
|
hle/service/ac_u.cpp
|
|
hle/service/am_net.cpp
|
|
hle/service/apt_u.cpp
|
|
hle/service/boss_u.cpp
|
|
hle/service/cfg_i.cpp
|
|
hle/service/cfg_u.cpp
|
|
hle/service/csnd_snd.cpp
|
|
hle/service/dsp_dsp.cpp
|
|
hle/service/err_f.cpp
|
|
hle/service/fs_user.cpp
|
|
hle/service/frd_u.cpp
|
|
hle/service/gsp_gpu.cpp
|
|
hle/service/hid_user.cpp
|
|
hle/service/ir_rst.cpp
|
|
hle/service/ir_u.cpp
|
|
hle/service/mic_u.cpp
|
|
hle/service/ndm_u.cpp
|
|
hle/service/nwm_uds.cpp
|
|
hle/service/pm_app.cpp
|
|
hle/service/ptm_u.cpp
|
|
hle/service/service.cpp
|
|
hle/service/soc_u.cpp
|
|
hle/service/srv.cpp
|
|
hle/service/ssl_c.cpp
|
|
hle/config_mem.cpp
|
|
hle/hle.cpp
|
|
hle/svc.cpp
|
|
hw/gpu.cpp
|
|
hw/hw.cpp
|
|
hw/ndma.cpp
|
|
loader/elf.cpp
|
|
loader/loader.cpp
|
|
loader/ncch.cpp
|
|
core.cpp
|
|
core_timing.cpp
|
|
mem_map.cpp
|
|
mem_map_funcs.cpp
|
|
settings.cpp
|
|
system.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
arm/disassembler/arm_disasm.h
|
|
arm/disassembler/load_symbol_map.h
|
|
arm/dyncom/arm_dyncom.h
|
|
arm/dyncom/arm_dyncom_dec.h
|
|
arm/dyncom/arm_dyncom_interpreter.h
|
|
arm/dyncom/arm_dyncom_run.h
|
|
arm/dyncom/arm_dyncom_thumb.h
|
|
arm/interpreter/arm_interpreter.h
|
|
arm/skyeye_common/arm_regformat.h
|
|
arm/skyeye_common/armcpu.h
|
|
arm/skyeye_common/armdefs.h
|
|
arm/skyeye_common/armemu.h
|
|
arm/skyeye_common/armmmu.h
|
|
arm/skyeye_common/armos.h
|
|
arm/skyeye_common/skyeye_defs.h
|
|
arm/skyeye_common/skyeye_types.h
|
|
arm/skyeye_common/vfp/asm_vfp.h
|
|
arm/skyeye_common/vfp/vfp.h
|
|
arm/skyeye_common/vfp/vfp_helper.h
|
|
arm/arm_interface.h
|
|
file_sys/archive.h
|
|
file_sys/archive_romfs.h
|
|
file_sys/archive_sdmc.h
|
|
file_sys/file.h
|
|
file_sys/file_romfs.h
|
|
file_sys/file_sdmc.h
|
|
file_sys/directory.h
|
|
file_sys/directory_romfs.h
|
|
file_sys/directory_sdmc.h
|
|
hle/kernel/address_arbiter.h
|
|
hle/kernel/archive.h
|
|
hle/kernel/event.h
|
|
hle/kernel/kernel.h
|
|
hle/kernel/mutex.h
|
|
hle/kernel/shared_memory.h
|
|
hle/kernel/thread.h
|
|
hle/service/ac_u.h
|
|
hle/service/am_net.h
|
|
hle/service/apt_u.h
|
|
hle/service/boss_u.h
|
|
hle/service/cfg_i.h
|
|
hle/service/cfg_u.h
|
|
hle/service/csnd_snd.h
|
|
hle/service/dsp_dsp.h
|
|
hle/service/err_f.h
|
|
hle/service/fs_user.h
|
|
hle/service/frd_u.h
|
|
hle/service/gsp_gpu.h
|
|
hle/service/hid_user.h
|
|
hle/service/ir_rst.h
|
|
hle/service/ir_u.h
|
|
hle/service/mic_u.h
|
|
hle/service/ndm_u.h
|
|
hle/service/nwm_uds.h
|
|
hle/service/pm_app.h
|
|
hle/service/ptm_u.h
|
|
hle/service/service.h
|
|
hle/service/soc_u.h
|
|
hle/service/srv.h
|
|
hle/service/ssl_c.h
|
|
hle/config_mem.h
|
|
hle/result.h
|
|
hle/function_wrappers.h
|
|
hle/hle.h
|
|
hle/svc.h
|
|
hw/gpu.h
|
|
hw/hw.h
|
|
hw/ndma.h
|
|
loader/elf.h
|
|
loader/loader.h
|
|
loader/ncch.h
|
|
core.h
|
|
core_timing.h
|
|
mem_map.h
|
|
settings.h
|
|
system.h
|
|
)
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
add_library(core STATIC ${SRCS} ${HEADERS})
|