mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 06:37:57 -05:00
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
This commit is contained in:
@ -187,10 +187,9 @@ public:
|
||||
|
||||
/**
|
||||
* Loads the Exheader and returns the system mode for this application.
|
||||
* @param system_mode Out variable where the system mode will be stored.
|
||||
* @return ResultStatus result of the operation
|
||||
* @return Optional with the kernel system mode
|
||||
*/
|
||||
ResultStatus LoadKernelSystemMode(u32& system_mode);
|
||||
boost::optional<u32> LoadKernelSystemMode();
|
||||
|
||||
/**
|
||||
* Get the code (typically .code section) of the application
|
||||
|
Reference in New Issue
Block a user