mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
Path.Join()
This commit is contained in:
@@ -22,7 +22,7 @@ internal static class ImageCache
|
||||
|
||||
static ImageCache()
|
||||
{
|
||||
cacheLocation = Path.Combine(Program.AppDataDirectory, "ImageCache");
|
||||
cacheLocation = Path.Join(Program.AppDataDirectory, "ImageCache");
|
||||
var httpClientHandler = new HttpClientHandler();
|
||||
if (WebApi.ProxySet)
|
||||
httpClientHandler.Proxy = WebApi.Proxy;
|
||||
@@ -33,8 +33,8 @@ internal static class ImageCache
|
||||
|
||||
public static async Task<string> GetImage(string url, string fileId, string version)
|
||||
{
|
||||
var directoryLocation = Path.Combine(cacheLocation, fileId);
|
||||
var fileLocation = Path.Combine(directoryLocation, $"{version}.png");
|
||||
var directoryLocation = Path.Join(cacheLocation, fileId);
|
||||
var fileLocation = Path.Join(directoryLocation, $"{version}.png");
|
||||
|
||||
if (File.Exists(fileLocation))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user