Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | result: Check against self-assignment in ResultVal's copy assignment operator | Lioncash | 2018-03-29 | 1 | -0/+3 |
| | | | | Avoids doing work that doesn't need to be done. | ||||
* | ResultCode: Mark any error code that isn't 0 as an error. | Subv | 2018-02-27 | 1 | -2/+2 |
| | |||||
* | fsp_srv: Various improvements to IStorage:Read implementation. | bunnei | 2018-01-21 | 1 | -0/+2 |
| | |||||
* | hle: Use Switch formatted result codes. | bunnei | 2017-11-01 | 1 | -181/+59 |
| | |||||
* | ResultVal: Remove MoveFrom() | Yuri Kunde Schlesner | 2017-06-19 | 1 | -4/+0 |
| | | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue. | ||||
* | ResultVal: Add an rvalue overload of Unwrap() | Yuri Kunde Schlesner | 2017-06-19 | 1 | -1/+6 |
| | |||||
* | ResultVal: Add more convenience utils for creating and cascading results | Yuri Kunde Schlesner | 2017-06-06 | 1 | -0/+19 |
| | |||||
* | Kernel: Centralize error definitions in errors.h | Yuri Kunde Schlesner | 2017-05-25 | 1 | -6/+0 |
| | |||||
* | GSP_GPU: Move error codes from result.h to local file | Yuri Kunde Schlesner | 2017-05-25 | 1 | -3/+0 |
| | |||||
* | FileSys: Move all result description to errors.h | Yuri Kunde Schlesner | 2017-05-25 | 1 | -21/+0 |
| | |||||
* | result: Make error description a generic integer | Yuri Kunde Schlesner | 2017-05-25 | 1 | -3/+14 |
| | | | | | | | | | It is now known that result code description vary depending on the module, and so they're best defined on a per-module basis. To support this, allow passing in an arbitrary integer instead of limiting to the ones in the ErrorDescription enum. These will be gradually migrated to their individual users, but a few will be kept as "common" codes shared by all modules. | ||||
* | Make BitField and ResultCode constexpr-initializable | Yuri Kunde Schlesner | 2017-05-25 | 1 | -18/+15 |
| | |||||
* | Kernel: Use a Session object to keep track of the status of a Client/Server session pair. | Subv | 2017-05-15 | 1 | -0/+1 |
| | | | | Reduce the associated port's connection count when a ServerSession is destroyed. | ||||
* | file_sys: add Self NCCH archive | wwylele | 2017-02-13 | 1 | -0/+4 |
| | |||||
* | Merge pull request #2249 from Subv/sessions_v3 | Yuri Kunde Schlesner | 2016-12-15 | 1 | -0/+1 |
|\ | | | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | ||||
| * | Return an error code when connecting to a saturated port. | Subv | 2016-12-05 | 1 | -0/+1 |
| | | | | | | | | The error code was taken from the 3DS kernel. | ||||
* | | FileSys: Implement OtherSaveData | wwylele | 2016-11-29 | 1 | -0/+1 |
|/ | |||||
* | FileSys: add SDMCWriteOnlyArchive | wwylele | 2016-11-19 | 1 | -0/+1 |
| | |||||
* | FileSys: add ExtSaveDataArchive | wwylele | 2016-11-19 | 1 | -0/+1 |
| | | | | ExtSaveData is more similar to SaveData, so let it be a subclass of SaveData | ||||
* | FileSys: add SaveDataArchive | wwylele | 2016-11-19 | 1 | -0/+7 |
| | | | | The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive. | ||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -1/+0 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -2/+1 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -40/+60 |
| | |||||
* | Fix the errorcode of archive handle | JamePeng | 2016-07-04 | 1 | -0/+1 |
| | |||||
* | Result: fix and update ErrorModule | wwylele | 2016-06-30 | 1 | -6/+19 |
| | |||||
* | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 2016-06-01 | 1 | -0/+1 |
| | |||||
* | Kernel: Implemented shared memory permissions. | Subv | 2016-05-13 | 1 | -0/+1 |
| | |||||
* | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 2016-04-30 | 1 | -1/+0 |
| | |||||
* | DSP_DSP: Add return IPC headers | MerryMage | 2016-04-27 | 1 | -0/+1 |
| | |||||
* | GSP: Return proper error codes for register writes | purpasmart96 | 2016-03-31 | 1 | -0/+1 |
| | |||||
* | HLE/FS: Implemented GetFormatInfo | Subv | 2016-03-20 | 1 | -0/+1 |
| | | | | Format information is currently only implemented for the ExtSaveData, SharedExtSaveData and SaveData archives, the information is stored in a file alongside the root folder of the archive. | ||||
* | HLE/FS: Return the proper error codes on file Read/Write operations. | Subv | 2016-03-20 | 1 | -0/+1 |
| | | | | These operations are limited by the open flags specified while opening the file. | ||||
* | HLE/FS: Corrected the error codes for CreateFile | Subv | 2016-03-20 | 1 | -1/+3 |
| | |||||
* | core: Use unrestricted union to hold storage of ResultVal value | Yuri Kunde Schlesner | 2016-03-05 | 1 | -42/+16 |
| | |||||
* | BitField: Make trivially copyable and remove assignment operator | MerryMage | 2016-02-12 | 1 | -4/+4 |
| | |||||
* | HLE/SVC: Implement UnmapMemoryBlock. | Subv | 2016-01-14 | 1 | -0/+1 |
| | | | | This implementation will need to be (almost completely) changed when we implement multiprocess support. | ||||
* | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -1/+1 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -0/+1 |
| | |||||
* | result: Make comparison operators take references | Lioncash | 2015-02-28 | 1 | -2/+2 |
| | | | | It's unnecessary to make copies for simple comparisons like this. | ||||
* | Convert a few C stdlib asserts to Citra's own asserts | archshift | 2015-02-19 | 1 | -6/+4 |
| | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 1 | -1/+1 |
| | | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | ||||
* | ResultVal: Fixed compilation when reassigning a ResultVal. | Subv | 2015-02-10 | 1 | -3/+3 |
| | |||||
* | Remove result.h InvalidHandle | Yuri Kunde Schlesner | 2015-01-30 | 1 | -5/+0 |
| | | | | | It was only being used in two places, where it was replaced by a local constant. | ||||
* | Additions to ResultVal to make it more convenient to use. | Yuri Kunde Schlesner | 2015-01-30 | 1 | -1/+25 |
| | |||||
* | Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. | archshift | 2015-01-10 | 1 | -2/+2 |
| | |||||
* | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | |||||
* | Filesystem/Archives: Implemented the SaveData archive | Subv | 2014-12-18 | 1 | -0/+2 |
| | | | | | | | | | | The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information Got rid of the code duplication in File and Directory Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive. FS_U: Use the correct error code when a file wasn't found | ||||
* | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 2014-11-24 | 1 | -0/+400 |
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. |