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-Qt/doric/registry.cpp
2019-12-21 21:55:53 +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);
}