InstalledGameVersionCatalog
This commit is contained in:
@@ -60,4 +60,9 @@ public static class PathHelper
|
||||
|
||||
public static IOPath GetModpackManifestPath(string game_version) =>
|
||||
Path.Concat(GetVersionDir(game_version), "timerix_modpack_files.json");
|
||||
|
||||
public static IOPath GetCacheDir() =>
|
||||
Path.Concat(GetRootFullPath(), "cache");
|
||||
public static IOPath GetInstalledVersionCatalogPath() =>
|
||||
Path.Concat(GetCacheDir(), "installed_versions.json");
|
||||
}
|
||||
|
||||
12
Mlaumcherb.Client.Avalonia/холопы/ReverseComparer.cs
Normal file
12
Mlaumcherb.Client.Avalonia/холопы/ReverseComparer.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Mlaumcherb.Client.Avalonia.холопы;
|
||||
|
||||
// compares Y with X instead of X with Y
|
||||
public class ReverseComparer<T> : IComparer<T> where T : IComparable<T>
|
||||
{
|
||||
public int Compare(T? x, T? y)
|
||||
{
|
||||
if (y is null)
|
||||
return x is null ? 0 : -1;
|
||||
return y.CompareTo(x);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user