mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
impr: Replace horrible pattern extra data class with a more modular system
This commit is contained in:
@@ -259,6 +259,18 @@ namespace hex {
|
||||
return functionName;
|
||||
}
|
||||
|
||||
pl::PatternLanguage& getRuntime() {
|
||||
static PerProvider<pl::PatternLanguage> runtime;
|
||||
|
||||
return *runtime;
|
||||
}
|
||||
|
||||
std::scoped_lock<std::mutex> getRuntimeLock() {
|
||||
static std::mutex runtimeLock;
|
||||
|
||||
return std::scoped_lock(runtimeLock);
|
||||
}
|
||||
|
||||
void configureRuntime(pl::PatternLanguage &runtime, prv::Provider *provider) {
|
||||
runtime.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user