MerryMage
62e2e0a8fb
common: Implement a ring buffer
7 years ago
CaptV0rt3x
b636ffa70c
Better Title Bar Display
7 years ago
Lioncash
067e34798b
common/logging: Amend documentation comments
Multi-line doc comments still need the '<' after the ///, otherwise it's
treated as a regular comment and makes the original doc comment broken
in viewers, IDEs, etc. While we're at it, also fix some typos in the
comments.
7 years ago
Lioncash
4209a71953
common/logging/filter: Replace C-style case with C++ static_cast
7 years ago
Lioncash
ed8b4ac2b4
common/logging/filter: Make constructor explicit
Implicit conversions aren't desirable here.
7 years ago
Lioncash
0cb5150070
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
26b536c967
hex_util: Replace logic_errors with LOG_CRITICAL
Makes it so malformed hex strings do not crash the entire program.
7 years ago
Lioncash
2c16d2ccdd
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
d6812d9e92
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
7 years ago
Lioncash
890507ecf1
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
5ad776105c
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
c0f2f8a840
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
9b5b9205a5
common/xbyak: Use nested namespace specifiers where applicable
7 years ago
Lioncash
f3992cd43b
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
e6a87798b9
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
bba0f809c8
common/misc: use windows.h
linux-mingw does not really like this.
7 years ago
Lioncash
95ff8e6aac
thread_queue_list: Make contains() and get_first() const member functions
These don't directly modify the contained data.
7 years ago
Lioncash
9a76374859
thread_queue_list: Convert typedef to a type alias
7 years ago
Zach Hilman
b0531d6ea0
file_sys: Comply to style guidelines
7 years ago
Zach Hilman
54ef430e85
file_util: Add getter for NAND registration directory
7 years ago
Zach Hilman
7193c994b7
common: Move hex string processing to separate file
7 years ago
Zach Hilman
b43d01f09b
file_util: Use enum instead of bool for specifing path behavior
8 years ago
Zach Hilman
944f8b80d8
file_util: Add platform-specific slash option to SanitizePath
8 years ago
Lioncash
5415ccb7da
common/logging: Add missing service log categories
These weren't added when the services were introduced.
7 years ago
Lioncash
18cd5b3930
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
7 years ago
Lioncash
2fe76428c5
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
e3444cb2a6
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
7 years ago
Lioncash
9e90145916
vector_math: Remove unimplemented function prototypes
8 years ago
Lioncash
3868198de6
vector_math: Make functions constexpr where applicable
8 years ago
Lioncash
1393309653
vector_math: Convert typedefs to type aliases
8 years ago
Lioncash
6b1e9244c0
common: Convert type traits templates over to variable template versions where applicable
Uses the C++17 inline variable variants
8 years ago
Lioncash
30c608d046
file_util: Avoid sign-conversions in WriteArray() and ReadArray()
Prevents compiler warnings.
8 years ago
Lioncash
705c5b6166
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
8 years ago
Lioncash
ed0e62fe9e
service: Add arp services
Adds the basic skeleton of the arp services based off the information
provided by Switch Brew.
8 years ago
Lioncash
9f5ba9df95
math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
8 years ago
Lioncash
6ac24e4e5a
service: Add migration services
Adds the basic skeleton for the mig:usr service based off information
provided by Switch Brew.
8 years ago
Lioncash
f29d848665
logging/log: Remove incorrect description in PCV doc comment
PCV isn't the parental control service.
8 years ago
Lioncash
4d9067936c
service: Add psc services
Adds the basic skeleton for the psc services based off the information
provided by Switch Brew.
8 years ago
Lioncash
a267a3cc08
service: Add capture services
Adds the basic skeleton for the capture services based off information
provided by Switch Brew.
8 years ago
Lioncash
2635578300
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
feb6b2b4a8
Allow key loading from %YUZU_DIR%/keys in addition to ~/.switch
8 years ago
Zach Hilman
e7ae26a563
Use SHGetKnownFolderPath instead of SHGetFolderPathA
8 years ago
Zach Hilman
03467b64e3
Extract mbedtls to cpp file
8 years ago
Zach Hilman
b10c0d291f
Remove files that are not used
8 years ago
Lioncash
bdeda001bc
service: Add fgm services
Adds the basic skeleton for the fgm services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e136d94655
service: Add the pcie service
Adds the basic skeleton of the pcie service based off information on
Switch Brew.
8 years ago
Tobias
1e25018638
Port #3758 from Citra ( #852 ): Add missing std::string import in text_formatter
8 years ago
Cameron Cawley
edf024592e
Port #3732 from Citra: "common: Fix compilation on ARM"
8 years ago
B3n30
d480730a4c
remove polymorphism issue
8 years ago
zhupengfei
4cabe17f0b
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