private void GenerateHashThread(object folder)
        {
            var buildFolder = (string)folder;

            try
            {
                var sha1 = new SHA1Managed();
#if ENABLE_IL2CPP
                var il2cpp = true;
#else
                var il2cpp = false;
#endif
                var hash = GetBuildHash(buildFolder, CodeHashGenerator.GetFileFiltersStandaloneWindows(il2cpp), sha1);
                sha1.Clear();
                Complete(HashGeneratorResult.FromCodeHash(hash));
            }
            catch (Exception e)
            {
                Debug.LogError(ACTkConstants.LogPrefix + "Something went wrong in thread: " + e);
                Complete(HashGeneratorResult.FromError(e.ToString()));
            }
        }
Esempio n. 2
0
 // called from native Android plugin, from separate thread
 public void OnSuccess(string hash)
 {
     parent.Complete(HashGeneratorResult.FromCodeHash(hash));
 }