diff options
| author | 2018-01-18 17:18:43 -0300 | |
|---|---|---|
| committer | 2018-01-18 17:18:43 -0300 | |
| commit | 3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e (patch) | |
| tree | adbdffa40f00a64a800da9e96b54824b481c6506 | |
| parent | Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc... (diff) | |
| download | yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.gz yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.xz yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.zip | |
Fix NRO Entry Point
| -rw-r--r-- | src/core/loader/nro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 6864a1926..0fbd38b46 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp | |||
| @@ -103,7 +103,7 @@ bool AppLoader_NRO::LoadNro(const std::string& path, VAddr load_base) { | |||
| 103 | bss_size = PageAlignSize(mod_header.bss_end_offset - mod_header.bss_start_offset); | 103 | bss_size = PageAlignSize(mod_header.bss_end_offset - mod_header.bss_start_offset); |
| 104 | } | 104 | } |
| 105 | codeset->data.size += bss_size; | 105 | codeset->data.size += bss_size; |
| 106 | program_image.resize(PageAlignSize(static_cast<u32>(program_image.size()) + bss_size)); | 106 | program_image.resize(static_cast<u32>(program_image.size()) + bss_size); |
| 107 | 107 | ||
| 108 | // Load codeset for current process | 108 | // Load codeset for current process |
| 109 | codeset->name = path; | 109 | codeset->name = path; |
| @@ -134,7 +134,7 @@ ResultStatus AppLoader_NRO::Load(Kernel::SharedPtr<Kernel::Process>& process) { | |||
| 134 | process->address_mappings = default_address_mappings; | 134 | process->address_mappings = default_address_mappings; |
| 135 | process->resource_limit = | 135 | process->resource_limit = |
| 136 | Kernel::ResourceLimit::GetForCategory(Kernel::ResourceLimitCategory::APPLICATION); | 136 | Kernel::ResourceLimit::GetForCategory(Kernel::ResourceLimitCategory::APPLICATION); |
| 137 | process->Run(base_addr + sizeof(NroHeader), 48, Kernel::DEFAULT_STACK_SIZE); | 137 | process->Run(base_addr, 48, Kernel::DEFAULT_STACK_SIZE); |
| 138 | 138 | ||
| 139 | is_loaded = true; | 139 | is_loaded = true; |
| 140 | return ResultStatus::Success; | 140 | return ResultStatus::Success; |