Files
NebulaLauncher/Nebula.Launcher/LauncherConVar.cs

45 lines
1.9 KiB
C#
Raw Normal View History

2025-06-15 13:48:56 +03:00
using System.Collections.Generic;
2025-06-23 16:39:30 +03:00
using System.Globalization;
using Nebula.Launcher.Models;
2025-02-01 18:19:18 +03:00
using Nebula.Launcher.ViewModels.Pages;
using Nebula.Shared.Services;
namespace Nebula.Launcher;
public static class LauncherConVar
{
2025-06-20 16:27:42 +03:00
public static readonly ConVar<bool> DoMigration =
ConVarBuilder.Build("migration.doMigrate", true);
2025-02-01 18:19:18 +03:00
public static readonly ConVar<ProfileAuthCredentials[]> AuthProfiles =
ConVarBuilder.Build<ProfileAuthCredentials[]>("auth.profiles.v2", []);
public static readonly ConVar<CurrentAuthInfo?> AuthCurrent =
ConVarBuilder.Build<CurrentAuthInfo?>("auth.current.v2");
public static readonly ConVar<string[]> Favorites =
ConVarBuilder.Build<string[]>("server.favorites", []);
2025-06-22 22:11:27 +03:00
public static readonly ConVar<Dictionary<string,string>> ServerCustomNames =
ConVarBuilder.Build<Dictionary<string,string>>("server.names", []);
public static readonly ConVar<AuthServerCredentials[]> AuthServers =
ConVarBuilder.Build<AuthServerCredentials[]>("launcher.authServers", [
2025-05-03 18:35:26 +03:00
new AuthServerCredentials(
"WizDen",
[
2025-06-15 16:29:15 +03:00
"https://harpy.durenko.tatar/auth-api/",
2025-06-15 17:13:31 +03:00
"https://auth.fallback.spacestation14.com/",
2025-05-03 18:35:26 +03:00
])
2025-02-01 18:19:18 +03:00
]);
public static readonly ConVar<ServerHubRecord[]> Hub = ConVarBuilder.Build<ServerHubRecord[]>("launcher.hub.v2", [
2025-06-18 21:36:50 +03:00
new ServerHubRecord("WizDen", "https://harpy.durenko.tatar/hub-api/api/servers"),
new ServerHubRecord("AltHub","https://web.networkgamez.com/api/servers")
]);
2025-02-02 19:34:15 +03:00
2025-06-23 16:39:30 +03:00
public static readonly ConVar<string> CurrentLang = ConVarBuilder.Build<string>("launcher.language", CultureInfo.CurrentCulture.Name);
public static readonly ConVar<string> ILSpyUrl = ConVarBuilder.Build<string>("decompiler.url",
"https://github.com/icsharpcode/ILSpy/releases/download/v9.0/ILSpy_binaries_9.0.0.7889-x64.zip");
2025-06-15 13:48:56 +03:00
2025-02-01 18:19:18 +03:00
}