add asset js loader & export doric classes

This commit is contained in:
王劲鹏
2021-06-10 10:31:23 +08:00
committed by osborn
parent 928a4ab038
commit 0b4b9c2ed6
20 changed files with 92 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
#include "DoricAssetJSLoader.h"
#include "utils/DoricUtils.h"
DoricAssetJSLoader::DoricAssetJSLoader() {}
bool DoricAssetJSLoader::filter(QString source) {
return source.startsWith("assets");
}
std::shared_ptr<DoricAsyncResult> DoricAssetJSLoader::request(QString source) {
QString protocol = "assets://";
QString assetPath = source.mid(protocol.length());
std::shared_ptr<DoricAsyncResult> asyncResult =
std::make_shared<DoricAsyncResult>();
return asyncResult;
}