2025-06-15 13:48:56 +03:00
|
|
|
using System.Collections.Generic;
|
2025-06-23 16:39:30 +03:00
|
|
|
using System.Globalization;
|
2025-06-14 22:33:03 +03:00
|
|
|
using Nebula.Launcher.Models;
|
2025-07-02 21:32:51 +03:00
|
|
|
using Nebula.Launcher.Models.Auth;
|
2025-02-01 18:19:18 +03:00
|
|
|
using Nebula.Shared.Services;
|
2025-07-10 15:22:15 +03:00
|
|
|
using Nebula.Shared.Services.ConfigMigrations;
|
2025-02-01 18:19:18 +03:00
|
|
|
|
|
|
|
|
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-07-10 15:22:15 +03:00
|
|
|
|
|
|
|
|
public static readonly ConVar<AuthTokenCredentials[]> AuthProfiles =
|
|
|
|
|
ConVarBuilder.BuildWithMigration<AuthTokenCredentials[]>("auth.profiles.v3",
|
|
|
|
|
MigrationQueueBuilder.Instance
|
|
|
|
|
.With(new ProfileMigrationV2("auth.profiles.v2","auth.profiles.v3"))
|
|
|
|
|
.Build(),
|
|
|
|
|
[]);
|
2025-02-01 18:19:18 +03:00
|
|
|
|
2025-07-10 15:22:15 +03:00
|
|
|
public static readonly ConVar<AuthTokenCredentials?> AuthCurrent =
|
|
|
|
|
ConVarBuilder.Build<AuthTokenCredentials?>("auth.current.v2");
|
2025-02-01 18:19:18 +03:00
|
|
|
|
|
|
|
|
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
|
|
|
]);
|
2025-06-14 22:33:03 +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-06-14 22:33:03 +03:00
|
|
|
]);
|
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);
|
2025-03-14 17:08:35 +03:00
|
|
|
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
|
|
|
}
|