Skip to content

Commit 9ed9bbc

Browse files
committed
Clean up namespaces for SignatureScanner usage
1 parent 9ed7bab commit 9ed9bbc

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎Games/Fallout 4/FixCameraClipping/DllMain.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Signatures.h"
22

3+
using namespace CMF::System::Memory;
4+
35
// Pre-next-gen metadata
46
EXPORT bool F4SEPlugin_Query(const F4SEInterface* in_pF4SE, PluginInfo* in_pInfo)
57
{
@@ -41,9 +43,9 @@ EXPORT bool F4SEPlugin_Load(const F4SEInterface* in_pF4SE)
4143
{
4244
cmf::sys::Logger::Init();
4345

44-
if (!cmf::sys::mem::SignatureScanner::Status.Success)
46+
if (!SignatureScanner::Status.Success)
4547
{
46-
LOGFN_ERROR("Error: {}\n{}", cmf::sys::mem::SignatureScanner::Status.pMessage, cmf::sys::mem::SignatureScanner::Status.GetPatternString());
48+
LOGFN_ERROR("Error: {}\n{}", SignatureScanner::Status.pMessage, SignatureScanner::Status.GetPatternString());
4749
MessageBoxA(nullptr, "Failed to install patches.", MOD_NAME, MB_ICONERROR);
4850
return false;
4951
}

‎Games/Sonic Colours Ultimate/GameplayAndUIFixes/DllMain.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Signatures.h"
22

3+
using namespace CMF::System::Memory;
4+
35
class CLevelInfo
46
{
57
public:
@@ -57,9 +59,9 @@ EXPORT void Init()
5759
{
5860
cmf::sys::Logger::Init();
5961

60-
if (!cmf::sys::mem::SignatureScanner::Status.Success)
62+
if (!SignatureScanner::Status.Success)
6163
{
62-
LOGFN_ERROR("Error: {}\n{}", cmf::sys::mem::SignatureScanner::Status.pMessage, cmf::sys::mem::SignatureScanner::Status.GetPatternString());
64+
LOGFN_ERROR("Error: {}\n{}", SignatureScanner::Status.pMessage, SignatureScanner::Status.GetPatternString());
6365
return;
6466
}
6567

‎Games/Yakuza/FixAnalogDeadzone/DllMain.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Signatures.h"
22

3+
using namespace CMF::System::Memory;
4+
35
static float* g_pAnalogDeadzone{};
46
static constexpr float g_kGamepadDeadzone{ 1.0f };
57
static constexpr float g_kKeyboardDeadzone{ 1.3157895f };
@@ -32,9 +34,9 @@ static void Init()
3234
cmf::sys::Logger::Init();
3335
#endif
3436

35-
if (!cmf::sys::mem::SignatureScanner::Status.Success)
37+
if (!SignatureScanner::Status.Success)
3638
{
37-
LOGFN_ERROR("Error: {}\n{}", cmf::sys::mem::SignatureScanner::Status.pMessage, cmf::sys::mem::SignatureScanner::Status.GetPatternString());
39+
LOGFN_ERROR("Error: {}\n{}", SignatureScanner::Status.pMessage, SignatureScanner::Status.GetPatternString());
3840
MessageBoxA(nullptr, "Failed to install patches.", MOD_NAME, MB_ICONERROR);
3941
return;
4042
}

0 commit comments

Comments
 (0)