summaryrefslogtreecommitdiff
path: root/src/core/loader/ncch.h
AgeCommit message (Collapse)Author
2017-10-12Remove lots more 3DS-specific code.bunnei
2017-09-26Loaders: Don't automatically set the current process every time we load an ↵Subv
application. The loaders will now just create a Kernel::Process, construct it and return it to the caller, which is responsible for setting it as the current process and configuring the global page table.
2017-09-25Loader/NCCH: Add support for loading application updates (#2927)Max Thomas
* 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-03loader: Expose program title.bunnei
2017-06-02Addressed Bunnei's review comments, and made some other tweaks:TheKoopaKingdom
- 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-02Created a whitelist of system archives to prevent false positives creating ↵TheKoopaKingdom
dialogs.
2017-06-02Made some changes from review comments:TheKoopaKingdom
- 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-02Fixed encrypted ROM error messages.TheKoopaKingdom
2017-01-04Fix some warnings (#2399)Jonathan Hao
2016-12-29Merge pull request #2240 from wwylele/auto-regionbunnei
Config: auto-select region and language
2016-12-21loader: Remove duplicate docstrings.bunnei
2016-12-15loader: Implement ReadProgramIdMerryMage
2016-12-07Config: auto-select region and languagewwylele
2016-11-27Kernel/Loader: Grab the system mode from the NCCH ExHeader.Subv
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-19Kernel/Loader: Grab the system mode from the NCCH ExHeader.Subv
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 Gonzaga
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-05-21Loader: Add a GetFileType method to get the type of a loaded fileEmmanuel Gil Peyrot
2016-05-04add icon & title to game listwwylele
2015-10-10Loader: Change NCCH header types to be explicitly little-endianGareth Poole
2015-10-10Loader: Implement encryption checkGareth Poole
2015-09-10General: Fix up doxygen commentsLioncash
2015-07-13Loader: Remove unnecessary pointer indirection to IOFileYuri Kunde Schlesner
2015-07-13FS: Stream RomFS from file instead of loading all of it to memorycondut
2015-05-08Loader/NCCH: Fix formatting of bracesYuri Kunde Schlesner
2015-05-08Kernel: Remove g_program_idYuri Kunde Schlesner
This has been obsoleted by the field in Process.
2015-05-08Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner
2015-05-07Common: Remove common.hYuri Kunde Schlesner
2015-04-27Services/Loader: Use more sensible log formats for certain functionspurpasmart96
along with more info being logged.
2015-03-15NCCH: Minor updates to the ncch headerpurpasmart96
2015-01-15Loader: Guess filetype from the magic, or fallback to the extension.Emmanuel Gil Peyrot
2015-01-15Loader: Keep a reference to the file and pass it to the correct AppLoader, ↵Emmanuel Gil Peyrot
instead of loading it multiple times.
2015-01-15Loader: Initialize the default NCCH values in the class declaration, not in ↵Emmanuel Gil Peyrot
the constructor.
2015-01-15Loader: Never forget to change is_loaded.Emmanuel Gil Peyrot
2014-12-20License changepurpasmart96
2014-12-17Filesystem/Archives: Implemented the SaveData archiveSubv
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 ↵Emmanuel Gil Peyrot
or generated
2014-09-06ncch: Remove C-style struct typedefsLioncash
In C++ you can simply just declare it as is.
2014-07-04Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as ↵bunnei
"override".
2014-07-04Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS classes as "final"bunnei
2014-07-04Loader: Updated read methods to be constbunnei
- 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.bunnei
NCCH: Removed extra qualification ‘Loader::AppLoader_NCCH::’.
2014-06-24Loader: Refactored loading functions to only read data from binary if called.bunnei
NCCH: Updated LoadExec to use Memory::WriteBlock function to load binary code.
2014-06-24Loader: Refactored use of const.bunnei
2014-06-24NCCH: Added RomFS loading.bunnei
2014-06-24NCCH: Fixes reduce unnecessary logging and load logo/banner/etc. sections ↵bunnei
correctly. Loader: Added ErrorNotUsed ReturnStatus type to specify when something is not used.
2014-06-24Loader: Implemented AppLoader interface for abstracting application loading.bunnei
- 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-16Loader: Added support for booting NCCH executables.bunnei
NCCH: Fixed typo in printing NCCH filename.