diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-02-28 01:06:33 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-02-28 01:06:33 +0100 |
| commit | 06a08de68a95506a9cbe4633c58f6bdb5ded0c70 (patch) | |
| tree | 122a2d66da07e0fdbdbf3c466c1cf88d4d4b4d01 /src/core/hle/kernel/code_set.h | |
| parent | f8712e50e6860616b4ea86d57a9b09cd99aad728 (diff) | |
[core/loader] prevent program_image reallocations in NSO+KIP loading methods (#3639)
also changes some methods to std::span<> as well, but mainly std::vector<> in the NSO/KIP loading stuff is not needed to be memcpy'ed and memmove'd around
this should save a marginal amount of loading time (RDR1)
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3639
Reviewed-by: DraVee <dravee@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/core/hle/kernel/code_set.h')
| -rw-r--r-- | src/core/hle/kernel/code_set.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/code_set.h b/src/core/hle/kernel/code_set.h index 1416fc52b1..88bc7f5e66 100644 --- a/src/core/hle/kernel/code_set.h +++ b/src/core/hle/kernel/code_set.h @@ -7,9 +7,9 @@ #pragma once #include <cstddef> +#include <vector> #include "core/hle/kernel/k_typed_address.h" -#include "core/hle/kernel/physical_memory.h" namespace Kernel { @@ -97,8 +97,7 @@ struct CodeSet final { #endif /// The overall data that backs this code set. - Kernel::PhysicalMemory memory; - + std::vector<u8> memory; /// The segments that comprise this code set. std::array<Segment, 3> segments; |
