Search Unity

[bug] always download remote catalog

Discussion in 'Addressables' started by nik_d, Jun 12, 2019.

  1. nik_d

    nik_d

    Joined:
    Apr 27, 2018
    Posts:
    66
    workaround: ContentCatalogProvider.cs OnCatalogLoaded(...):
    Code (CSharp):
    1.                     //**addressables: bugfix for hash incorrect name in the cache
    2.                     //File.WriteAllText(localCachePath.Replace(".json", ".hash"), m_HashValue);
    3.                     var hashPath = localCachePath.Substring(0, localCachePath.LastIndexOf(".", StringComparison.Ordinal)) + ".hash";
    4.                     File.WriteAllText(hashPath, m_HashValue);
    5.                     ////<addressables: bugfix for hash incorrect name in the cachse
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    looking at the code, i'm not sure I see what outcome changes. What exactly is the bug you're fixing?
     
  3. nik_d

    nik_d

    Joined:
    Apr 27, 2018
    Posts:
    66
    It's from the time when hash had ".json.hash" extension. It already has only one ".hash", so fix is not actual now - sorry.
     
    unity_bill likes this.