Skip to content

Commit 51af9b3

Browse files
committed
fix: match_or_fail
1 parent 89a1682 commit 51af9b3

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

include/REL/Pattern.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,13 @@ namespace REL
146146
if (!this->match(a_address)) {
147147
const auto mod = Module::GetSingleton();
148148
const auto version = mod->version();
149-
REX::FAIL(
149+
REX::IMPL::FAIL(
150+
a_loc,
150151
"A pattern has failed to match.\n"
151152
"This means the plugin is incompatible with either the "
152153
"current version of the game ({}), or another "
153-
"installed mod."sv,
154-
version.string(), a_loc);
154+
"installed mod.",
155+
version.string());
155156
}
156157
}
157158
};

include/REX/REX/Singleton.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace REX
66
{
77
template <class T>
8-
class Singleton
8+
class TSingleton
99
{
1010
public:
1111
static T* GetSingleton()
@@ -15,13 +15,16 @@ namespace REX
1515
}
1616

1717
protected:
18-
Singleton() = default;
19-
~Singleton() = default;
18+
TSingleton() = default;
19+
~TSingleton() = default;
2020

21-
Singleton(const Singleton&) = delete;
22-
Singleton(Singleton&&) = delete;
21+
TSingleton(const TSingleton&) = delete;
22+
TSingleton(TSingleton&&) = delete;
2323

24-
Singleton& operator=(const Singleton&) = delete;
25-
Singleton& operator=(Singleton&&) = delete;
24+
TSingleton& operator=(const TSingleton&) = delete;
25+
TSingleton& operator=(TSingleton&&) = delete;
2626
};
27+
28+
template <class T>
29+
using Singleton = TSingleton<T>;
2730
}

0 commit comments

Comments
 (0)