shinyquagsire23
a151c0edec
file_sys/ncch_container: add RomFS, ExeFS override to allow for backward compatibility with existing .romfs system archive dumps
8 years ago
Max Thomas
042b389b57
Loader/NCCH: Add support for loading application updates ( #2927 )
* 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
8 years ago
bunnei
e5f2839605
loader: Expose program title.
9 years ago
TheKoopaKingdom
e0f8f75f43
Addressed Bunnei's review comments, and made some other tweaks:
- 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.
9 years ago
TheKoopaKingdom
b817071212
Created a whitelist of system archives to prevent false positives creating dialogs.
9 years ago
TheKoopaKingdom
cee9b78a15
Made some changes from review comments:
- 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.
9 years ago
TheKoopaKingdom
1b9c3436ab
Fixed encrypted ROM error messages.
9 years ago
Jonathan Hao
1df720ed08
Fix some warnings ( #2399 )
9 years ago
bunnei
fdcff791c3
loader: Remove duplicate docstrings.
9 years ago
MerryMage
af97174940
loader: Implement ReadProgramId
9 years ago
wwylele
a88ec032cd
Config: auto-select region and language
9 years ago
Subv
7adac27868
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).
This allows Home Menu to boot without modifications.
Closes #1849
9 years ago
Subv
d00d0d61e0
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).
This allows Home Menu to boot without modifications.
Closes #1849
9 years ago
Ricardo de Almeida Gonzaga
07fdcf150d
Fix typos
9 years ago
Emmanuel Gil Peyrot
1138ec0d49
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
1e4a5da9f4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
628ed4376a
Sources: Run clang-format on everything.
9 years ago
Emmanuel Gil Peyrot
85a4eea460
Loader: Add a GetFileType method to get the type of a loaded file
10 years ago
wwylele
a23e3f1cd5
add icon & title to game list
10 years ago
Gareth Poole
780fd6247f
Loader: Change NCCH header types to be explicitly little-endian
10 years ago
Gareth Poole
1874d33c0b
Loader: Implement encryption check
10 years ago
Lioncash
54fa043c92
General: Fix up doxygen comments
10 years ago
Yuri Kunde Schlesner
2d7299a86f
Loader: Remove unnecessary pointer indirection to IOFile
11 years ago
condut
c385b7767d
FS: Stream RomFS from file instead of loading all of it to memory
11 years ago
Yuri Kunde Schlesner
7eb413155f
Loader/NCCH: Fix formatting of braces
11 years ago
Yuri Kunde Schlesner
a5eba2f984
Kernel: Remove g_program_id
This has been obsoleted by the field in Process.
11 years ago
Yuri Kunde Schlesner
6d60acf0f1
Kernel: Introduce skeleton Process class to hold process data
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
purpasmart96
c3a480160e
Services/Loader: Use more sensible log formats for certain functions
along with more info being logged.
11 years ago
purpasmart96
061c69a6bb
NCCH: Minor updates to the ncch header
11 years ago
Emmanuel Gil Peyrot
82ec17db7d
Loader: Guess filetype from the magic, or fallback to the extension.
11 years ago
Emmanuel Gil Peyrot
b5237e885d
Loader: Keep a reference to the file and pass it to the correct AppLoader, instead of loading it multiple times.
11 years ago
Emmanuel Gil Peyrot
2d63df90a9
Loader: Initialize the default NCCH values in the class declaration, not in the constructor.
11 years ago
Emmanuel Gil Peyrot
85030c6e6b
Loader: Never forget to change is_loaded.
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Subv
ea9ce0fba7
Filesystem/Archives: Implemented the SaveData archive
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
11 years ago
Emmanuel Gil Peyrot
f5d38649c7
Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated
11 years ago
Lioncash
f68776ce13
ncch: Remove C-style struct typedefs
In C++ you can simply just declare it as is.
11 years ago
bunnei
1099d83455
Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as "override".
12 years ago
bunnei
2d734bb6c5
Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS classes as "final"
12 years ago
bunnei
2c62d92551
Loader: Updated read methods to be const
- Required "file" handle to be made local and explicitly opened/closed as needed
12 years ago
bunnei
d8da707bb9
Loader: Refactored interface such that data is no longer stored by loader.
NCCH: Removed extra qualification ‘Loader::AppLoader_NCCH::’.
12 years ago
bunnei
a7f1c54490
Loader: Refactored loading functions to only read data from binary if called.
NCCH: Updated LoadExec to use Memory::WriteBlock function to load binary code.
12 years ago
bunnei
62b444cd17
Loader: Refactored use of const.
12 years ago
bunnei
a8c4648520
NCCH: Added RomFS loading.
12 years ago
bunnei
3da2bc6830
NCCH: Fixes reduce unnecessary logging and load logo/banner/etc. sections correctly.
Loader: Added ErrorNotUsed ReturnStatus type to specify when something is not used.
12 years ago
bunnei
7889cafc76
Loader: Implemented AppLoader interface for abstracting application loading.
- 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.
12 years ago
bunnei
3577dd027d
Loader: Added support for booting NCCH executables.
NCCH: Fixed typo in printing NCCH filename.
12 years ago