Lioncash
c74b7ee204
file_util: Correct return value in early exit of ReadFileToString()
While still essentially being zero, we should be returning a numeric
value here, not a boolean typed value.
7 years ago
Zach Hilman
06487c2c8d
hex_util: Replace logic_errors with LOG_CRITICAL
Makes it so malformed hex strings do not crash the entire program.
7 years ago
Lioncash
5a53d75313
logging/text_formatter: Use empty braces for initializing CONSOLE_SCREEN_BUFFER_INFO instance
The previous form of initializing done here is a C-ism, an empty set of
braces is sufficient for initializing (and doesn't potentially cause
missing brace warnings, given the first member of the struct is a COORD
struct).
7 years ago
Lioncash
36090521ce
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
7 years ago
Lioncash
b39cd70cd4
common: Namespace hex_util.h/.cpp
It's in the common code, so it should be under the Common namespace like
everything else.
7 years ago
Lioncash
60f476cd8f
common/telemetry: Migrate core-independent info gathering to common
Previously core itself was the library containing the code to gather
common information (build info, CPU info, and OS info), however all of
this isn't core-dependent and can be moved to the common code and use
the common interfaces. We can then just call those functions from the
core instead.
This will allow replacing our CPU detection with Xbyak's which has
better detection facilities than ours. It also keeps more
architecture-dependent code in common instead of core.
7 years ago
Lioncash
6d549abb4e
common/xbyak_abi: Mark defined functions in header as inline
Avoids potential One Definition Rule violations when these are used in
the future.
7 years ago
Lioncash
0ce0905380
common/xbyak: Use nested namespace specifiers where applicable
7 years ago
Lioncash
11895d54af
common: Remove unused old breakpoint source files
These currently aren't used and contain commented out source code that
corresponds to Dolphin's JIT. Given our CPU code is organized quite
differently, we shouldn't be keeping this around (at the moment it just
adds to compile times marginally).
7 years ago
Lioncash
bc7bfd96f0
logging/backend: Use const reference to refer to log filter
The filter is returned via const reference, so this was making a
pointless copy of the entire filter every time a message was being
pushed into the logger instance.
7 years ago
Zhu PengFei
59d18ef55b
common/misc: use windows.h
linux-mingw does not really like this.
7 years ago
Lioncash
11470f331a
thread_queue_list: Make contains() and get_first() const member functions
These don't directly modify the contained data.
7 years ago
Lioncash
55c73e10a7
thread_queue_list: Convert typedef to a type alias
7 years ago
Zach Hilman
167bfddafa
file_sys: Comply to style guidelines
7 years ago
Zach Hilman
b70a831608
file_util: Add getter for NAND registration directory
7 years ago
Zach Hilman
10aac376d1
common: Move hex string processing to separate file
7 years ago
Zach Hilman
2b6128fe0b
file_util: Use enum instead of bool for specifing path behavior
7 years ago
Zach Hilman
3f82dad1e4
file_util: Add platform-specific slash option to SanitizePath
8 years ago
Lioncash
6e90f0bf6a
common/logging: Add missing service log categories
These weren't added when the services were introduced.
7 years ago
Lioncash
5a9c00ea04
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
7 years ago
Lioncash
76197a4be9
common/color: Get rid of undefined behavior
Gets rid of type punning via reinterpret_cast within functions. Instead,
we use memcpy to transfer the contents across types.
7 years ago
Lioncash
cc9d7bbf01
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
7 years ago
Lioncash
766c1a2d50
vector_math: Remove unimplemented function prototypes
7 years ago
Lioncash
5c323d96e0
vector_math: Make functions constexpr where applicable
7 years ago
Lioncash
4e3bc37791
vector_math: Convert typedefs to type aliases
7 years ago
Lioncash
a7d6efc520
common: Convert type traits templates over to variable template versions where applicable
Uses the C++17 inline variable variants
7 years ago
Lioncash
0735a0c8a1
file_util: Avoid sign-conversions in WriteArray() and ReadArray()
Prevents compiler warnings.
7 years ago
Lioncash
45bc449ff9
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
7 years ago
Lioncash
de72956181
service: Add arp services
Adds the basic skeleton of the arp services based off the information
provided by Switch Brew.
8 years ago
Lioncash
f2a03468b1
math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
8 years ago
Lioncash
7469e26e5e
service: Add migration services
Adds the basic skeleton for the mig:usr service based off information
provided by Switch Brew.
8 years ago
Lioncash
42c5171322
logging/log: Remove incorrect description in PCV doc comment
PCV isn't the parental control service.
8 years ago
Lioncash
5233040ab4
service: Add psc services
Adds the basic skeleton for the psc services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e39294c267
service: Add capture services
Adds the basic skeleton for the capture services based off information
provided by Switch Brew.
8 years ago
Lioncash
d109279543
service: Add bpc and pcv services
Adds the basic skeleton for the remaining pcv-related services based off
information on Switch Brew.
8 years ago
Zach Hilman
150527ec19
Allow key loading from %YUZU_DIR%/keys in addition to ~/.switch
8 years ago
Zach Hilman
cc8234fa89
Use SHGetKnownFolderPath instead of SHGetFolderPathA
8 years ago
Zach Hilman
22342487e8
Extract mbedtls to cpp file
8 years ago
Zach Hilman
df5b75694f
Remove files that are not used
8 years ago
Lioncash
268eeeb406
service: Add fgm services
Adds the basic skeleton for the fgm services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e373027a73
service: Add the pcie service
Adds the basic skeleton of the pcie service based off information on
Switch Brew.
8 years ago
Tobias
420f8fb29e
Port #3758 from Citra ( #852 ): Add missing std::string import in text_formatter
8 years ago
Cameron Cawley
1670c4421f
Port #3732 from Citra: "common: Fix compilation on ARM"
8 years ago
B3n30
6e5f83ee24
remove polymorphism issue
8 years ago
zhupengfei
ff510157d8
common/string_utils: replace boost::transform with std counterpart
Note: according to cppreference it is necessary to convert char to unsigned char when using std::tolower and std::toupper, otherwise the behaviour would be undefined.
8 years ago
zhupengfei
38a1113674
Port #3972 from Citra: "common/timer: use std::chrono, avoid platform-dependent code"
8 years ago
Lioncash
6ea416091e
service: Add wlan services
Adds the basic skeleton for the wlan services based off the information
on Switch Brew.
8 years ago
Lioncash
ca7655be3a
service: Add btm services
Adds the skeleton for the btm services based off the information on
Switch Brew.
8 years ago
Lioncash
7931cc0ceb
service: Add ncm services
Adds the basic skeleton for the ncm services based off information on
Switch Brew.
8 years ago
Lioncash
f46bfdd77d
service: Add mii services
Adds the skeleton for the mii services based off information provided by
Switch Brew
8 years ago