Lioncash
5415ccb7da
common/logging: Add missing service log categories
These weren't added when the services were introduced.
8 years ago
Lioncash
18cd5b3930
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
8 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.
8 years ago
Lioncash
e3444cb2a6
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
8 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
zhupengfei
7311baa65c
Port #3972 from Citra: "common/timer: use std::chrono, avoid platform-dependent code"
8 years ago
Lioncash
cbefbc3c60
service: Add wlan services
Adds the basic skeleton for the wlan services based off the information
on Switch Brew.
8 years ago
Lioncash
82ef74be0b
service: Add btm services
Adds the skeleton for the btm services based off the information on
Switch Brew.
8 years ago
Lioncash
db0eb8968d
service: Add ncm services
Adds the basic skeleton for the ncm services based off information on
Switch Brew.
8 years ago
Lioncash
3d1b71b0a8
service: Add mii services
Adds the skeleton for the mii services based off information provided by
Switch Brew
8 years ago
Lioncash
171f57b364
service: Add nfc services
Adds the skeleton of the nfc service based off the information provided
on Switch Brew.
8 years ago
Lioncash
995ca4edd0
service/lbl: Implement EnableVrMode, DisableVrMode and GetVrMode
Implements these functions according to the information available on
Switch Brew.
8 years ago
Lioncash
6116b53dfb
service: Add ldn services
Adds ldn services based off information provided by Switch Brew.
8 years ago
Zach Hilman
bd410ce242
VFS Regression and Accuracy Fixes ( #776 )
* Regression and Mode Fixes
* Review Fixes
* string_view correction
* Add operator& for FileSys::Mode
* Return std::string from SanitizePath
* Farming Simulator Fix
* Use != With mode operator&
8 years ago
Lioncash
54b477c4f9
string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(), CodeToUTF8() and UTF8ToUTF16()
There's no need to perform the resize separately here, since the
constructor allows presizing the buffer.
Also move the empty string check before the construction of the string
to make the early out more straightforward.
8 years ago
Lioncash
cd09896057
string_util: Use emplace_back() in SplitString() instead of push_back()
This is equivalent to doing:
push_back(std::string(""));
which is likely not to cause issues, assuming a decent std::string
implementation with small-string optimizations implemented in its
design, however it's still a little unnecessary to copy that buffer
regardless. Instead, we can use emplace_back() to directly construct the
empty string within the std::vector instance, eliminating any possible
overhead from the copy.
8 years ago
Lioncash
7b00b5c322
string_util: Remove unnecessary std::string instance in TabsToSpaces()
We can just use the variant of std::string's replace() function that can
replace an occurrence with N copies of the same character, eliminating
the need to allocate a std::string containing a buffer of spaces.
8 years ago
Lioncash
861405d6c0
file_util, vfs: Use std::string_view where applicable
Avoids unnecessary construction of std::string instances where
applicable.
8 years ago
Lioncash
5440a4a9d9
file_util: Remove goto usages from Copy()
We can just leverage std::unique_ptr to automatically close these for us
in error cases instead of jumping to the end of the function to call
fclose on them.
8 years ago
Lioncash
574be087d4
file_util: Use a u64 to represent number of entries
This avoids a truncating cast on size. I doubt we'd ever traverse a
directory this large, however we also shouldn't truncate sizes away.
8 years ago
Lioncash
2684cc586e
file_util: std::move FST entries in ScanDirectoryTree()
Avoids unnecessary copies when building up the FST entries.
8 years ago
Lioncash
85ca923ed4
file_util: Use an enum class for GetUserPath()
Instead of using an unsigned int as a parameter and expecting a user to
always pass in the correct values, we can just convert the enum into an
enum class and use that type as the parameter type instead, which makes
the interface more type safe.
We also get rid of the bookkeeping "NUM_" element in the enum by just
using an unordered map. This function is generally low-frequency in
terms of calls (and I'd hope so, considering otherwise would mean we're
slamming the disk with IO all the time) so I'd consider this acceptable
in this case.
8 years ago
Lioncash
478a19a774
file_util: Remove explicit type from std::min() in GetPathWithoutTop()
Given both operands are the same type, there won't be an issue with
overload selection that requires making this explicit.
8 years ago
Lioncash
32dde02a89
file_util: Remove redundant duplicate return in GetPathWithoutTop()
8 years ago
Lioncash
8ec2f1b2b7
common: Remove synchronized_wrapper.h
This is entirely unused in the codebase.
8 years ago
Lioncash
a2e090303f
param_package: Take std::string by value in string-based Set() function
Allows avoiding string copies by letting the strings be moved into the
function calls.
8 years ago
Lioncash
3c613decdf
param_package: Use std::unordered_map's insert_or_assign instead of map indexing
This avoids a redundant std::string construction if a key doesn't exist
in the map already.
e.g.
data[key] requires constructing a new default instance of the value in
the map (but this is wasteful, since we're already setting something
into the map over top of it).
8 years ago
Lioncash
48ea3bc5fb
param_package: Get rid of file-static std::string construction
Avoids potential dynamic allocation occuring during program launch
8 years ago