summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/ncch_container.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-09-25Loader/NCCH: Add support for loading application updates (#2927)Max Thomas1-60/+59
* loader/ncch: split NCCH parsing into its own file * loader/ncch: add support for loading update NCCHs from the SD card * loader/ncch: fix formatting * file_sys/ncch_container: Return a value for OpenFile * loader/ncch: cleanup, always instantiate overlay_ncch to base_ncch * file_sys/ncch_container: better encryption checks, allow non-app NCCHs to load properly and for the existence of NCCH structures to be checked * file_sys/ncch_container: pass filepath as a const reference
2017-08-04loader: Expose program title.bunnei1-12/+2
2017-06-03Addressed Bunnei's review comments, and made some other tweaks:TheKoopaKingdom1-1/+1
- Deleted GetStatus() because it wasn't used anywhere outside of Core::System. - Fixed design flaw where the message bar status could be set despite the game being stopped.
2017-06-03Created a whitelist of system archives to prevent false positives creating dialogs.TheKoopaKingdom1-1/+1
2017-06-03Made some changes from review comments:TheKoopaKingdom1-3/+2
- Made LoadKernelSystemMode return a pair consisting of a system mode and a result code (Could use review). - Deleted ErrorOpenGL error code in favor of just having ErrorVideoCore. - Made dialog messages more clear. - Compared archive ID in fs_user.cpp to ArchiveIdCode::NCCH as opposed to hex magic. - Cleaned up some other stuff.
2017-06-03Fixed encrypted ROM error messages.TheKoopaKingdom1-2/+3
2017-01-04Fix some warnings (#2399)Jonathan Hao1-1/+1
2016-12-22loader: Remove duplicate docstrings.bunnei1-28/+0
2016-12-15loader: Implement ReadProgramIdMerryMage1-0/+7
2016-12-07Config: auto-select region and languagewwylele1-0/+3
2016-11-28Kernel/Loader: Grab the system mode from the NCCH ExHeader.Subv1-3/+2
3dsx and elf files default to system mode 2 (96MB allocated to the application). This allows Home Menu to boot without modifications. Closes #1849
2016-11-20Kernel/Loader: Grab the system mode from the NCCH ExHeader.Subv1-0/+7
3dsx and elf files default to system mode 2 (96MB allocated to the application). This allows Home Menu to boot without modifications. Closes #1849
2016-10-20Fix typosRicardo de Almeida Gonzaga1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-2/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-2/+1
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-19/+20
2016-05-21Loader: Add a GetFileType method to get the type of a loaded fileEmmanuel Gil Peyrot1-0/+8
2016-05-04add icon & title to game listwwylele1-0/+7
2015-10-11Loader: Change NCCH header types to be explicitly little-endianGareth Poole1-16/+16
2015-10-11Loader: Implement encryption checkGareth Poole1-2/+2
2015-09-10General: Fix up doxygen commentsLioncash1-1/+3
2015-07-14Loader: Remove unnecessary pointer indirection to IOFileYuri Kunde Schlesner1-8/+8
2015-07-14FS: Stream RomFS from file instead of loading all of it to memorycondut1-2/+5
2015-05-09Loader/NCCH: Fix formatting of bracesYuri Kunde Schlesner1-9/+9
2015-05-09Kernel: Remove g_program_idYuri Kunde Schlesner1-6/+0
This has been obsoleted by the field in Process.
2015-05-09Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner1-2/+10
2015-05-07Common: Remove common.hYuri Kunde Schlesner1-1/+3
2015-04-28Services/Loader: Use more sensible log formats for certain functionspurpasmart961-4/+14
along with more info being logged.
2015-03-15NCCH: Minor updates to the ncch headerpurpasmart961-11/+14
2015-01-15Loader: Guess filetype from the magic, or fallback to the extension.Emmanuel Gil Peyrot1-1/+8
2015-01-15Loader: Keep a reference to the file and pass it to the correct AppLoader, instead of loading it multiple times.Emmanuel Gil Peyrot1-6/+1
2015-01-15Loader: Initialize the default NCCH values in the class declaration, not in the constructor.Emmanuel Gil Peyrot1-4/+4
2015-01-15Loader: Never forget to change is_loaded.Emmanuel Gil Peyrot1-1/+1
2014-12-21License changepurpasmart961-1/+1
2014-12-18Filesystem/Archives: Implemented the SaveData archiveSubv1-0/+6
The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information Got rid of the code duplication in File and Directory Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive. FS_U: Use the correct error code when a file wasn't found
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot1-1/+1
2014-09-06ncch: Remove C-style struct typedefsLioncash1-4/+4
In C++ you can simply just declare it as is.
2014-07-05Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as "override".bunnei1-7/+7
2014-07-05Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS classes as "final"bunnei1-1/+1
2014-07-05Loader: Updated read methods to be constbunnei1-8/+7
- Required "file" handle to be made local and explicitly opened/closed as needed
2014-06-27Loader: Refactored interface such that data is no longer stored by loader.bunnei1-20/+18
NCCH: Removed extra qualification ‘Loader::AppLoader_NCCH::’.
2014-06-25Loader: Refactored loading functions to only read data from binary if called.bunnei1-13/+44
NCCH: Updated LoadExec to use Memory::WriteBlock function to load binary code.
2014-06-25Loader: Refactored use of const.bunnei1-6/+5
2014-06-25NCCH: Added RomFS loading.bunnei1-0/+8
2014-06-25NCCH: Fixes reduce unnecessary logging and load logo/banner/etc. sections correctly.bunnei1-2/+3
Loader: Added ErrorNotUsed ReturnStatus type to specify when something is not used.
2014-06-25Loader: Implemented AppLoader interface for abstracting application loading.bunnei1-7/+174
- Various cleanups/refactorings to Loader, ELF, and NCCH modules. - Added AppLoader interface to ELF and NCCH. - Updated Qt/GLFW frontends to check AppLoader ResultStatus. NCCH: Removed extra qualification typos. Loader: Removed unnecessary #include's. NCCH: Improved readability of memcmp statements. NCCH: Added missing space. Elf: Removed unnecessary usage of unique_ptr. Loader: Removed unnecessary usage of unique_ptr.
2014-06-17Loader: Added support for booting NCCH executables.bunnei1-0/+21
NCCH: Fixed typo in printing NCCH filename.