diff options
author | gdkchan <gab.dark.100@gmail.com> | 2018-01-18 21:18:43 +0100 |
---|---|---|
committer | gdkchan <gab.dark.100@gmail.com> | 2018-01-18 21:18:43 +0100 |
commit | 3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e (patch) | |
tree | adbdffa40f00a64a800da9e96b54824b481c6506 /src | |
parent | Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96) (diff) | |
download | yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.gz yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.bz2 yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.lz yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.xz yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.tar.zst yuzu-3a409d5c8f5f0b00f1a62d54159cdb9b5e1d6d8e.zip |
Diffstat (limited to '')
-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) { bss_size = PageAlignSize(mod_header.bss_end_offset - mod_header.bss_start_offset); } codeset->data.size += bss_size; - program_image.resize(PageAlignSize(static_cast<u32>(program_image.size()) + bss_size)); + program_image.resize(static_cast<u32>(program_image.size()) + bss_size); // Load codeset for current process codeset->name = path; @@ -134,7 +134,7 @@ ResultStatus AppLoader_NRO::Load(Kernel::SharedPtr<Kernel::Process>& process) { process->address_mappings = default_address_mappings; process->resource_limit = Kernel::ResourceLimit::GetForCategory(Kernel::ResourceLimitCategory::APPLICATION); - process->Run(base_addr + sizeof(NroHeader), 48, Kernel::DEFAULT_STACK_SIZE); + process->Run(base_addr, 48, Kernel::DEFAULT_STACK_SIZE); is_loaded = true; return ResultStatus::Success; |