blob: 90e2c68b41232981ea8a7efba69a588f0e33f8f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qssgassetimporterfactory_p.h"
#include "qssgassetimporterplugin_p.h"
#include "qssgassetimporter_p.h"
#include <QtCore/qdebug.h>
#include <QtCore/private/qfactoryloader_p.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QDir>
QT_BEGIN_NAMESPACE
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QSSGAssetImporterFactoryInterface_iid, QLatin1String("/assetimporters"), Qt::CaseInsensitive))
QStringList QSSGAssetImporterFactory::keys()
{
return loader->keyMap().values();
}
QSSGAssetImporter *QSSGAssetImporterFactory::create(const QString &name, const QStringList &args)
{
return qLoadPlugin<QSSGAssetImporter, QSSGAssetImporterPlugin>(loader(), name, args);
}
QT_END_NAMESPACE
|