yuzu/src
comex 2910aa77b2 [network] Error handling reform
`network.cpp` has several error paths which either:
- report "Unhandled host socket error=n" and return `SUCCESS`, or
- switch on a few possible errors, log them, and translate them to
  Errno; the same switch statement is copied and pasted in multiple
  places in the code

Convert these paths to use a helper function `GetAndLogLastError`, which
is roughly the equivalent of one of the switch statements, but:
- handling more cases (both ones that were already in `Errno`, and a few
  more I added), and
- using OS functions to convert the error to a string when logging, so
  it'll describe the error even if it's not one of the ones in the
  switch statement.
  - To handle this, refactor the logic in `GetLastErrorMsg` to expose a
    new function `NativeErrorToString` which takes the error number
    explicitly as an argument.  And improve the Windows version a bit.

Also, add a test which exercises two random error paths.
2021-02-28 17:25:31 -05:00
..
audio_core revert to std::sin and std::cos 2021-02-12 18:48:10 -08:00
common [network] Error handling reform 2021-02-28 17:25:31 -05:00
core [network] Error handling reform 2021-02-28 17:25:31 -05:00
input_common Revert "Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to compatibility problems with certain controllers"" 2021-02-18 11:16:14 -05:00
tests [network] Error handling reform 2021-02-28 17:25:31 -05:00
video_core Merge pull request #5984 from jbeich/gcc-freebsd 2021-02-27 14:15:00 -07:00
web_service web_service: follow-up fix to #4842 ... 2020-10-28 23:16:06 -06:00
yuzu Merge pull request #4298 from FearlessTobi/remove-cache-setting 2021-02-15 20:31:16 -08:00
yuzu_cmd Merge pull request #4298 from FearlessTobi/remove-cache-setting 2021-02-15 20:31:16 -08:00
.clang-format
CMakeLists.txt cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globally 2021-01-24 17:31:29 -03:00