Browse Source
memory_hook: Default virtual destructor in the cpp file
Prevents creating multiple copies of the vtable in every translation unit that uses the class.
Also silences a -Wweak-vtables warning
pull/15/merge
Lioncash
8 years ago
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
3 changed files with
13 additions and
1 deletions
-
src/core/CMakeLists.txt
-
src/core/memory_hook.cpp
-
src/core/memory_hook.h
|
|
|
@ -253,6 +253,7 @@ add_library(core STATIC |
|
|
|
loader/nso.h |
|
|
|
memory.cpp |
|
|
|
memory.h |
|
|
|
memory_hook.cpp |
|
|
|
memory_hook.h |
|
|
|
memory_setup.h |
|
|
|
perf_stats.cpp |
|
|
|
|
|
|
|
@ -0,0 +1,11 @@ |
|
|
|
// Copyright 2018 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "core/memory_hook.h"
|
|
|
|
|
|
|
|
namespace Memory { |
|
|
|
|
|
|
|
MemoryHook::~MemoryHook() = default; |
|
|
|
|
|
|
|
} // namespace Memory
|
|
|
|
@ -23,7 +23,7 @@ namespace Memory { |
|
|
|
*/ |
|
|
|
class MemoryHook { |
|
|
|
public: |
|
|
|
virtual ~MemoryHook() = default; |
|
|
|
virtual ~MemoryHook(); |
|
|
|
|
|
|
|
virtual boost::optional<bool> IsValidAddress(VAddr addr) = 0; |
|
|
|
|
|
|
|
|