| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
| |
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
|
| |
|
|
|
|
|
|
|
| |
Makes our error coverage a little more consistent across the board by
applying it to Linux side of things as well. This also makes it more
consistent with the warning settings in other libraries in the project.
This also updates httplib to 0.7.9, as there are several warning
cleanups made that allow us to enable several warnings as errors.
|
| |
|
|
|
| |
We can supply the content provider as an argument instead of hardcoding
a global accessor in the implementation.
|
| |\
| |
| | |
file_sys: Replace inclusions with forward declarations where applicable
|
| | |
| |
| |
| | |
Same behavior, minus unnecessary inclusions where not necessary.
|
| |/
|
|
|
| |
We can convert these maps into constexpr arrays to eliminate some
runtime static constructors.
|
| |\
| |
| | |
common/fileutil: Convert namespace to Common::FS
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Migrates a remaining common file over to the Common namespace, making it
consistent with the rest of common files.
This also allows for high-traffic FS related code to alias the
filesystem function namespace as
namespace FS = Common::FS;
for more concise typing.
|
| |\ \
| |/
|/| |
aes_util: Make use of non-template variant of Transcode
|
| | |
| |
| |
| |
| | |
We can use sizeof to make it obvious at the call site where the value is
coming from.
|
| | |
| |
| |
| | |
Same behavior, less template instantiations.
|
| |\ \
| |/
|/| |
partition_data_manager: Make data arrays constexpr
|
| | |
| |
| |
| | |
Fills in some hashes that were previously unhandled.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously the constructor for all of these would run at program
startup, consuming time before the application can enter main().
This is also particularly dangerous, given the logging system wouldn't
have been initialized properly yet, yet the program would use the logs
to signify an error.
To rectify this, we can replace the literals with constexpr functions
that perform the conversion at compile-time, completely eliminating the
runtime cost of initializing these arrays.
|
| |/
|
|
|
|
| |
In a few places, the data to be set as the IV is already within an array.
We shouldn't require this data to be heap-allocated if it doesn't need
to be. This allows certain callers to reduce heap churn.
|
| |
|
|
| |
If the keys are zero, don't write them to the autogenerated file.
|
| |
|
|
| |
Our codebase uppercases member function names.
|
| |
|
|
| |
Prevents the singleton from being moved from.
|
| |
|
|
|
|
|
| |
operator= typically returns a reference, it's not void.
While we're at it, we can correct the parameter formatting to adhere to the
codebase.
|
| |
|
|
|
|
| |
Previously, we were reading the keys everytime a KeyManager object was created, causing yuzu to reread the keys file multiple hundreds of times when loading the game list.
With this change, it is only loaded once.
On my system, this decreased game list loading times by a factor of 20.
|
| |\
| |
| | |
CMakeLists: Enable -Wmissing-declarations on Linux builds
|
| | | |
|
| |/ |
|
| |\
| |
| | |
core: Make most implicit type conversion warnings errors on MSVC
|
| | |
| |
| |
| |
| |
| |
| | |
Since the introduction of this library, numerous improvements have been
made. Notably, many of the warnings we would get by simply including the
library header have now been fixed. This makes it much easier to make
conversion warning an error.
|
| | | |
|
| |\ \
| | |
| | | |
core: Migrate off deprecated mbedtls functions
|
| | |/
| |
| |
| |
| | |
These functions are marked for deprecation and it's recommended that the
*_ret variants be used instead.
|
| |/
|
|
|
|
|
|
|
| |
This properly handles unicode-based paths on Windows, while opening a
raw stream doesn't out-of-the-box.
Prevents file creation from potentially failing on Windows PCs that make
use of unicode characters in their save paths (e.g. writing to a user's
AppData folder, where the user has a name with non-ASCII characters).
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
loader, file_sys: Add support for parsing and loading KIP (Kernel Internal Process) files
|
| | |
| |
| |
| | |
Previously, this TU contained the necessary headers to parse KIP/INI but now it should just use the FileSys class.
|
| |/
|
|
|
|
| |
These can be generified together by using a concept type to designate
them. This also has the benefit of not making copies of potentially very
large arrays.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fixes Unicode Key File Directories
Adds code so that when loading a file it converts to UTF16 first, to
ensure the files can be opened. Code borrowed from FileUtil::Exists.
* Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
* Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
* Using FileUtil instead to be cleaner.
* Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
|
| |\
| |
| | |
crypto/key_manager: Remove unused variable in GetTicketblob()
|
| | | |
|
| |/
|
|
|
|
|
|
|
| |
We can just return a new instance of this when it's requested. This only
ever holds pointers to the existing registed caches, so it's not a large
object. Plus, this also gets rid of the need to keep around a separate
member function just to properly clear out the union.
Gets rid of one of five globals in the filesystem code.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* get rid of boost::optional
* Remove optional references
* Use std::reference_wrapper for optional references
* Fix clang format
* Fix clang format part 2
* Adressed feedback
* Fix clang format and MacOS build
|
| |
|
|
| |
Crypto revisions are hex numbers and this function only checks if the string is valid for stoul in base 16, so it should be isxdigit.
|
| | |
|
| |
|
|
| |
Fixes a fatal crash on start when deriving keys.
|
| | |
|