Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ private async UniTask SetUpDynamicSecret()
Debug.Log("SetUpDynamicSecret end");
}

private async UniTask LoadMetadataForAOTAssemblies()
private void LoadMetadataForAOTAssemblies()
{
var aotListHandle = YooAssets.LoadAssetAsync<TextAsset>(aotDllListFilePath);
await aotListHandle.Task;
var aotListHandle = YooAssets.LoadAssetSync<TextAsset>(aotDllListFilePath);
TextAsset aotDataAsset = aotListHandle.GetAssetObject<TextAsset>();
Comment thread
JasonXuDeveloper marked this conversation as resolved.
var aotDllList = NinoDeserializer.Deserialize<List<string>>(aotDataAsset.bytes);
aotListHandle.Release();
Expand All @@ -168,8 +167,7 @@ private async UniTask LoadMetadataForAOTAssemblies()
continue;
}

var handle = YooAssets.LoadAssetAsync<TextAsset>(aotDllName);
await handle.Task;
var handle = YooAssets.LoadAssetSync<TextAsset>(aotDllName);
byte[] dllBytes = handle.GetAssetObject<TextAsset>().bytes;
Comment thread
JasonXuDeveloper marked this conversation as resolved.
var err = RuntimeApi.LoadMetadataForAOTAssembly(dllBytes, HomologousImageMode.SuperSet);
Debug.Log($"LoadMetadataForAOTAssembly:{aotDllName}. ret:{err}");
Expand Down Expand Up @@ -293,7 +291,7 @@ await Prompt.ShowDialogAsync(t.dialogTitleNotice,

// First supplement metadata
updateStatusText.text = text.loadingCode;
await LoadMetadataForAOTAssemblies();
LoadMetadataForAOTAssemblies();
// Set dynamic key
updateStatusText.text = text.decryptingResources;
await SetUpDynamicSecret();
Expand Down
Loading