Add pre detection hooks to resource manager. Closes #2184

This commit is contained in:
morg 2022-02-08 07:29:55 +01:00 committed by Adam Honse
parent 5ae6ef2c79
commit 5b4d55bb42
5 changed files with 39 additions and 3 deletions

View file

@ -49,4 +49,13 @@ public:
{
ResourceManager::get()->RegisterDynamicDetector(name, detector);
}
};
};
class PreDetectionHook
{
public:
PreDetectionHook(PreDetectionHookFunction hook)
{
ResourceManager::get()->RegisterPreDetectionHook(hook);
}
};