Lime3DS/src
Vitor K 480d3aaf19
common: Port some changes from dolphin (#5127)
* IOFile: Make the move constructor and move assignment operator noexcept

Certain parts of the standard library try to determine whether or not a
transfer operation should either be a copy or a move. The prevalent notion
of move constructors/assignment operators is that they should not throw,
they simply move an already existing resource somewhere else.

This is typically done with 'std::move_if_noexcept'. Like the name says,
if a type's move constructor is noexcept, then the functions retrieves an
r-value reference (for move semantics), or an l-value (for copy semantics)
if it is not noexcept.

As IOFile deletes the copy constructor and copy assignment operators,
using IOFile with certain parts of the standard library can fail in
unexcepted ways (especially when used with various container
implementations). This prevents that.

* fix various instances of -1 being assigned to unsigned types

* do not assign in conditional statements

* File/IOFile: Check _tfopen_s properly

* common/file_util.cpp: address review comments

Co-authored-by: Lioncash <mathew1800@gmail.com>
Co-authored-by: Shawn Hoffman <godisgovernment@gmail.com>
Co-authored-by: Sepalani <sepalani@hotmail.fr>
2020-03-25 14:33:37 -05:00
..
android android: add logging 2019-03-09 18:23:32 -06:00
audio_core fix formatting for media-ndk 2020-03-17 21:15:33 -05:00
citra video_core: add texture filtering (#5017) 2020-03-16 09:42:05 -05:00
citra_qt video_core: add texture filtering (#5017) 2020-03-16 09:42:05 -05:00
common common: Port some changes from dolphin (#5127) 2020-03-25 14:33:37 -05:00
core Merge pull request #5120 from zhaowenlan1779/file-write 2020-03-22 01:00:31 +08:00
dedicated_room Fix moderation by room host in dedicated rooms 2019-11-17 09:59:54 -05:00
input_common Fix compilation 2020-02-10 12:10:42 +01:00
network network/room: add message/join/leave/kick/ban/unban/game name logging 2019-11-03 09:55:38 -05:00
tests core: Add support for N3DS memory mappings (#5103) 2020-02-29 19:48:27 +01:00
video_core video_core: don't use NULL for non-pointer after a7d3489dc9 2020-03-19 00:10:43 +00:00
web_service HTTP_C::Implement Context::MakeRequest (#4754) 2020-02-21 19:04:04 +01:00
.clang-format add java to .clang-format 2019-02-22 16:29:19 -06:00
CMakeLists.txt Remove C++ standard flag 2020-02-21 16:45:02 -06:00