diff options
| author | GPUCode <geoster3d@gmail.com> | 2023-11-19 11:21:53 +0200 |
|---|---|---|
| committer | t895 <clombardo169@gmail.com> | 2023-11-25 00:47:35 -0500 |
| commit | 6de2edcca1624982e99a72741d4fa289dc9d7551 (patch) | |
| tree | 8c355b39a6f71e333ccc2f929816ce96e40d3f2c /src/core/arm/nce/patch.h | |
| parent | 8fab363237083a8130a7b2a023cd9c5dd83f8f4f (diff) | |
Address some review comments
Diffstat (limited to 'src/core/arm/nce/patch.h')
| -rw-r--r-- | src/core/arm/nce/patch.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/core/arm/nce/patch.h b/src/core/arm/nce/patch.h index b727d4e48..dcce1bfc6 100644 --- a/src/core/arm/nce/patch.h +++ b/src/core/arm/nce/patch.h @@ -7,23 +7,17 @@ #include <unordered_map> #include <vector> -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wshorten-64-to-32" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshorten-64-to-32" #include <oaknut/code_block.hpp> #include <oaknut/oaknut.hpp> -#pragma clang diagnostic pop +#pragma GCC diagnostic pop #include "common/common_types.h" #include "core/hle/kernel/code_set.h" #include "core/hle/kernel/k_typed_address.h" #include "core/hle/kernel/physical_memory.h" -#include <signal.h> - -namespace Core { -struct GuestContext; -} - namespace Core::NCE { enum class PatchMode : u32 { @@ -45,9 +39,9 @@ public: const Kernel::CodeSet::Segment& code); void RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code, Kernel::PhysicalMemory& program_image, EntryTrampolines* out_trampolines); - size_t SectionSize() const noexcept; + size_t GetSectionSize() const noexcept; - [[nodiscard]] PatchMode Mode() const noexcept { + [[nodiscard]] PatchMode GetPatchMode() const noexcept { return mode; } |
