summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-14 03:02:46 -0400
committerLioncash <mathew1800@gmail.com>2018-05-16 18:55:49 -0400
commit4b25538f2f45a61cb345b00662698846dc454f4e (patch)
tree28b7efd47dd35b218fd88e4e6146e9b4cb8fdbf9 /Source/Core/VideoCommon/TextureCacheBase.cpp
parentb547f72878f954ca030c7a6d6672ee676a57eba4 (diff)
CachedInterpreter: Factor function hooking code out of Jit()
Extracts the self-contained code into its own function to clean up the flow of Jit() a little more. This also introduces a helper function to HLE.h that will be used to reduce the boilerplate here and in the interpreter and Jit64 in the following commits. This function performs all of the preliminary checks required prior to attempting to hook/replace a function at a given address. The function then calls a provided object that satisfies the FunctionObject concept in the C++ standard library. This can be a lambda, a regular function pointer, an object with an overloaded function call operator, etc. The only requirement is that the function return a bool, indicating whether or not the function was replaced, and that it can take parameters in the form: fn(u32 function, HLE::HookType type)
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
0 files changed, 0 insertions, 0 deletions