change to asset read
This commit is contained in:
@@ -12,8 +12,12 @@ std::shared_ptr<DoricAsyncResult> DoricAssetJSLoader::request(QString source) {
|
||||
QString protocol = "assets://";
|
||||
QString assetPath = source.mid(protocol.length());
|
||||
|
||||
QString script = DoricUtils::readAssetFile("/" + assetPath);
|
||||
|
||||
std::shared_ptr<DoricAsyncResult> asyncResult =
|
||||
std::make_shared<DoricAsyncResult>();
|
||||
|
||||
asyncResult->setResult(script);
|
||||
|
||||
return asyncResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user