Skip to content

Commit

Permalink
change iap image download path
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny-jeahyunchoi committed Dec 11, 2024
1 parent 6d08655 commit 8ac118f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nekoyume/Assets/_Scripts/Game/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ public IEnumerator InitializeIAP()
continue;
}

await Helper.Util.DownloadTextureRaw($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{category.Path}");
await Helper.Util.DownloadTexture($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{category.Path}");

foreach (var product in category.ProductList)
{
await Helper.Util.DownloadTextureRaw($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{product.BgPath}");
await Helper.Util.DownloadTextureRaw($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{product.Path}");
await Helper.Util.DownloadTextureRaw($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{L10nManager.Localize(product.PopupPathKey)}");
await Helper.Util.DownloadTexture($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{product.BgPath}");
await Helper.Util.DownloadTexture($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{product.GetListImagePath()}");
await Helper.Util.DownloadTexture($"{MobileShop.MOBILE_L10N_SCHEMA.Host}/{product.GetDetailImagePath()}");
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion nekoyume/Assets/_Scripts/Helper/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ private static Sprite CreateSprite(byte[] cachedTextureRaw)
return result;
}

public static async UniTask<byte[]> DownloadTextureRaw(string url)
private static async UniTask<byte[]> DownloadTextureRaw(string url)
{
if (CachedDownloadTexturesRaw.TryGetValue(url, out var cachedTexture))
{
Expand Down

0 comments on commit 8ac118f

Please sign in to comment.