summaryrefslogtreecommitdiff
path: root/src/core/loader (follow)
Commit message (Collapse)AuthorAgeFilesLines
* deconstructed_rom_directory: Remove unused FindRomFS() functionGravatar Lioncash2018-07-241-29/+0
|
* core: Make converting constructors explicit where applicableGravatar Lioncash2018-07-232-2/+2
| | | | | Avoids unwanted implicit conversions. Thankfully, given the large amount of cleanup in past PRs, only this tiny amount is left over to cover.
* Merge pull request #784 from lioncash/loaderGravatar bunnei2018-07-231-1/+1
|\ | | | | loader: Minor cleanup
| * loader: Remove unnecessary constructor call in IdentifyFile()Gravatar Lioncash2018-07-231-1/+1
| | | | | | | | | | | | RealVfsFile inherits from VfsFile, the instance from std::make_shared is already compatible with the function argument type, making the copy constructor call unnecessary.
* | Merge pull request #783 from lioncash/linkerGravatar bunnei2018-07-232-7/+4
|\ \ | | | | | | linker: Remove unused parameter from WriteRelocations()
| * | linker: Remove unused parameter from WriteRelocations()Gravatar Lioncash2018-07-232-7/+4
| |/ | | | | | | | | is_jump_relocation is never used within the function, so we can just remove it.
* | nro: Replace inclusion with a forward declarationGravatar Lioncash2018-07-232-1/+8
| | | | | | | | | | It's sufficient to use a forward declaration instead of a direct inclusion here.
* | nro: Make bracing consistentGravatar Lioncash2018-07-231-10/+24
| | | | | | | | | | Makes the code more uniform, and also braces cases where the body of an unbraced conditional travels more than one line.
* | nro: Make constructor explicitGravatar Lioncash2018-07-231-1/+1
| | | | | | | | | | Makes it consistent with the other Apploader constructors, and prevents implicit conversions.
* | nro: Remove unused forward declarationGravatar Lioncash2018-07-231-2/+0
|/ | | | This isn't used anywhere in the header.
* NRO Assets and NACP file formatGravatar Zach Hilman2018-07-232-1/+90
| | | | | | Cleanup Review fixes
* file_util, vfs: Use std::string_view where applicableGravatar Lioncash2018-07-221-1/+2
| | | | | Avoids unnecessary construction of std::string instances where applicable.
* file_util: Use a u64 to represent number of entriesGravatar Lioncash2018-07-211-1/+1
| | | | | 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.
* Merge pull request #752 from Subv/vfs_loadGravatar bunnei2018-07-201-5/+2
|\ | | | | Loader: Only print the module names and addresses if they actually exist.
| * Loader: Only print the module names and addresses if they actually exist.Gravatar Subv2018-07-201-5/+2
| |
* | Merge pull request #737 from lioncash/moveGravatar bunnei2018-07-202-2/+4
|\ \ | | | | | | filesys/loader: std::move VirtualFile instances in constructors where applicable
| * | loader/{nca, nro}: std::move VirtualFile in the constructors where applicableGravatar Lioncash2018-07-202-2/+4
| |/ | | | | | | This avoids unnecessary atomic reference count increments and decrements
* | nso: Silence implicit sign conversion warningsGravatar Lioncash2018-07-191-4/+6
| |
* | nso: Remove unused function ReadSegment()Gravatar Lioncash2018-07-191-13/+0
|/
* Merge pull request #719 from lioncash/docsGravatar bunnei2018-07-192-5/+5
|\ | | | | loader: Amend Doxygen comments
| * loader: Amend Doxygen commentsGravatar Lioncash2018-07-192-5/+5
| | | | | | | | These weren't adjusted when VFS was introduced
* | Merge pull request #718 from lioncash/readGravatar bunnei2018-07-191-4/+6
|\ \ | | | | | | loader/nso: Check if read succeeded in IdentifyFile() before checking magic value
| * | loader/nso: Check if read succeeded in IdentifyFile() before checking magic ↵Gravatar Lioncash2018-07-191-4/+6
| |/ | | | | | | | | | | | | | | 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.
* | loader/nro: Resolve sign mismatch warningsGravatar Lioncash2018-07-181-1/+1
| |
* | loader/nso: Remove unnecessary vector resizesGravatar Lioncash2018-07-181-4/+2
| | | | | | | | We can just initialize these vectors directly via their constructor.
* | loader/nso: Resolve sign mismatch warningsGravatar Lioncash2018-07-181-1/+1
|/
* Virtual Filesystem 2: Electric Boogaloo (#676)Gravatar Zach Hilman2018-07-1812-525/+146
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* General Filesystem and Save Data Fixes (#670)Gravatar Zach Hilman2018-07-173-5/+3
|
* More improvements to GDBStub (#653)Gravatar Hedges2018-07-124-0/+15
| | | | | | | | | | | * More improvements to GDBStub - Debugging of threads should work correctly with source and assembly level stepping and modifying registers and memory, meaning threads and callstacks are fully clickable in VS. - List of modules is available to the client, with assumption that .nro and .nso are backed up by an .elf with symbols, while deconstructed ROMs keep N names. - Initial support for floating point registers. * Tidy up as requested in PR feedback * Tidy up as requested in PR feedback
* Revert "Virtual Filesystem (#597)"Gravatar bunnei2018-07-0712-140/+540
| | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* Virtual Filesystem (#597)Gravatar Zach Hilman2018-07-0612-540/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename
* Update clang formatGravatar James Rowe2018-07-021-5/+5
|
* Rename logging macro back to LOG_*Gravatar James Rowe2018-07-026-27/+27
|
* Add support for decrypted NCA files (#567)Gravatar Zach Hilman2018-06-216-11/+434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start to add NCA support in loader * More nca stuff * More changes to nca.cpp * Now identifies decrypted NCA cont. * Game list fixes and more structs and stuff * More updates to Nca class * Now reads ExeFs (i think) * ACTUALLY LOADS EXEFS! * RomFS loads and games execute * Cleanup and Finalize * plumbing, cleanup and testing * fix some things that i didnt think of before * Preliminary Review Changes * Review changes for bunnei and subv
* general: Make formatting of logged hex values more straightforwardGravatar Lioncash2018-05-022-4/+4
| | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
* general: Convert assertion macros over to be fmt-compatibleGravatar Lioncash2018-04-271-1/+1
|
* loader: Move old logging macros over to new fmt-capable onesGravatar Lioncash2018-04-245-26/+25
|
* Kernel: Use 0x2C as default main thread priority for homebrew and lone NRO/NSOsGravatar Subv2018-04-202-2/+2
|
* core, main.h: Abort on 32Bit ROMs (#309)Gravatar N00byKing2018-04-062-0/+6
| | | | | | * core, main.h: Abort on 32Bit ROMs * main.cpp: Fix Grammar
* deconstructed_rom_directory.cpp: Fix TypoGravatar N00byKing2018-04-031-1/+1
|
* memory: Fix stack region.Gravatar bunnei2018-03-313-3/+3
|
* Clean Warnings (?)Gravatar N00byKing2018-03-191-1/+1
|
* kernel: Move stack region outside of application heap.Gravatar bunnei2018-03-163-3/+3
|
* core: Move process creation out of global state.Gravatar bunnei2018-03-144-9/+5
|
* Kernel: Store the program id in the Process class instead of the CodeSet class.Gravatar Subv2018-03-015-12/+12
| | | | There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
* loader: Check error on NPDM load, use TID for CodeSetGravatar shinyquagsire232018-02-253-6/+10
|
* loader: Use NPDM information when loading NSOsGravatar shinyquagsire232018-02-252-4/+15
|
* nso: Silence formatting specifier warningsGravatar Lioncash2018-02-141-2/+4
|
* deconstructed_rom_directory: Silence formatting specifier warningsGravatar Lioncash2018-02-141-3/+4
|
* Changed .istorage to .romfsGravatar David Marcec2018-02-052-5/+5
|