File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 };
Original file line number Diff line number Diff line change 55namespace 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}
You can’t perform that action at this time.
0 commit comments