forked from eden-emu/eden
Loader: Added support for booting NCCH executables.
NCCH: Fixed typo in printing NCCH filename.
This commit is contained in:
parent
0aca202ae9
commit
3577dd027d
6 changed files with 384 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "core/loader/loader.h"
|
||||
#include "core/loader/elf_reader.h"
|
||||
#include "core/loader/ncch.h"
|
||||
#include "core/system.h"
|
||||
#include "core/core.h"
|
||||
#include "core/hle/kernel/kernel.h"
|
||||
|
@ -165,6 +166,10 @@ bool LoadFile(std::string &filename, std::string *error_string) {
|
|||
case FILETYPE_CTR_BIN:
|
||||
return Load_BIN(filename);
|
||||
|
||||
case FILETYPE_CTR_CXI:
|
||||
case FILETYPE_CTR_CCI:
|
||||
return Loader::Load_NCCH(filename, error_string);
|
||||
|
||||
case FILETYPE_ERROR:
|
||||
ERROR_LOG(LOADER, "Could not read file");
|
||||
*error_string = "Error reading file";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue