This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric/registry.cpp
2019-12-14 18:28:04 +08:00

18 lines
398 B
C++

#include <QDebug>
#include "registry.h"
#include "plugin/shader_plugin.h"
Registry::Registry() {
registerNativePlugin("shader", typeid(ShaderPlugin).name());
}
void Registry::registerNativePlugin(QString key, QString value) {
qDebug() << key + " " + value;
pluginInfoMap.insert(key, value);
}
QString Registry::acquirePluginInfo(QString key) {
return pluginInfoMap.take(key);
}