| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Avoids the need to rebuild multiple source files if the filesystem code
headers change.
This also gets rid of a few instances of indirect inclusions being
relied upon
|
| |\
| |
| | |
loader/{nca, xci}: Remove unnecessary includes and unused member variables
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Many of these aren't necessary and will cause this file to be required
to be recompiled whenever any changes to those files are made, which
lengthens compile times for no reason.
This also removes an unused metadata variable from AppLoader_XCI
|
| |\ \
| | |
| | | |
file_sys: Add support for registration format
|
| | | |
| | |
| | |
| | | |
Needed to avoid mismatch filetype warnings on split NAND NCAs
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We can make the enum class type compatible with fmt by providing an
overload of operator<<.
While we're at it, perform proper bounds checking. If something exceeds
the array, it should be a hard fail, because it's, without a doubt, a
programmer error in this case.
|
| | |/
|/|
| |
| | |
These mappings are leftovers from citra and don't apply to the Switch.
|
| | | |
|
| |/
|
|
| |
GetMessageForResultStatus takes a u16, not a size_t.
|
| |
|
| |
Full list of new errors and descriptions in core/loader/loader.h
|
| | |
|
| |\
| |
| | |
Add Icons and Metadata Support
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
| |
Eliminates duplicate code shared between their Load methods, after all the only difference is how the romfs is handled.
|
| |\
| |
| | |
XCI and Encrypted NCA Support
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
segment array
Using member variables for referencing the segments array increases the
size of the class in memory for little benefit. The same behavior can be
achieved through the use of accessors that just return the relevant
segment.
|
| |/
|
|
|
|
| |
General moving to keep kernel object types separate from the direct
kernel code. Also essentially a preliminary cleanup before eliminating
global kernel state in the kernel code.
|
| | |
|
| |
|
|
|
| |
Avoids unwanted implicit conversions. Thankfully, given the large amount
of cleanup in past PRs, only this tiny amount is left over to cover.
|
| |\
| |
| | |
loader: Minor cleanup
|
| | |
| |
| |
| |
| |
| | |
RealVfsFile inherits from VfsFile, the instance from std::make_shared is
already compatible with the function argument type, making the copy
constructor call unnecessary.
|
| |\ \
| | |
| | | |
linker: Remove unused parameter from WriteRelocations()
|
| | |/
| |
| |
| |
| | |
is_jump_relocation is never used within the function, so we can just
remove it.
|
| | |
| |
| |
| |
| | |
It's sufficient to use a forward declaration instead of a direct
inclusion here.
|
| | |
| |
| |
| |
| | |
Makes the code more uniform, and also braces cases where the body of an
unbraced conditional travels more than one line.
|
| | |
| |
| |
| |
| | |
Makes it consistent with the other Apploader constructors, and prevents
implicit conversions.
|
| |/
|
|
| |
This isn't used anywhere in the header.
|
| |
|
|
|
|
| |
Cleanup
Review fixes
|
| |
|
|
|
| |
Avoids unnecessary construction of std::string instances where
applicable.
|
| |
|
|
|
| |
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.
|
| |\
| |
| | |
Loader: Only print the module names and addresses if they actually exist.
|
| | | |
|
| |\ \
| | |
| | | |
filesys/loader: std::move VirtualFile instances in constructors where applicable
|
| | |/
| |
| |
| | |
This avoids unnecessary atomic reference count increments and decrements
|
| | | |
|
| |/ |
|
| |\
| |
| | |
loader: Amend Doxygen comments
|
| | |
| |
| |
| | |
These weren't adjusted when VFS was introduced
|
| |\ \
| | |
| | | |
loader/nso: Check if read succeeded in IdentifyFile() before checking magic value
|
| | |/
| |
| |
| |
| |
| |
| |
| | |
value
We should always assume the filesystem is volatile and check each IO
operation. While we're at it reorganize checks so that early-out errors
are near one another.
|