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-07-13 10:07:36 +03:00
|
|
|
using Nebula.Shared.ConfigMigrations;
|
2025-08-06 21:29:00 +03:00
|
|
|
using Nebula.Shared.Configurations;
|
|
|
|
|
using Nebula.Shared.Configurations.Migrations;
|
2025-02-01 18:19:18 +03:00
|
|
|
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-07-10 15:22:15 +03:00
|
|
|
|
2025-11-08 13:42:11 +03:00
|
|
|
public static readonly ConVar<string[]> AuthProfiles =
|
|
|
|
|
ConVarBuilder.BuildWithMigration<string[]>("auth.profiles.v4",
|
2025-07-10 15:22:15 +03:00
|
|
|
MigrationQueueBuilder.Instance
|
2025-11-08 13:42:11 +03:00
|
|
|
.With(new ProfileMigrationV2("auth.profiles.v2","auth.profiles.v4"))
|
|
|
|
|
.With(new ProfileMigrationV3V4("auth.profiles.v3","auth.profiles.v4"))
|
2025-07-10 15:22:15 +03:00
|
|
|
.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-07-15 18:38:53 +03:00
|
|
|
"https://auth.spacestation14.com/",
|
2025-06-15 17:13:31 +03:00
|
|
|
"https://auth.fallback.spacestation14.com/",
|
2025-07-15 18:38:53 +03:00
|
|
|
]),
|
|
|
|
|
new AuthServerCredentials(
|
|
|
|
|
"SimpleStation",
|
|
|
|
|
[
|
|
|
|
|
"https://auth.simplestation.org/",
|
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"),
|
2025-09-07 21:21:50 +03:00
|
|
|
new ServerHubRecord("AltHub","https://hub.singularity14.co.uk/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",
|
2026-01-16 18:32:37 +03:00
|
|
|
"https://github.com/icsharpcode/ILSpy/releases/download/v10.0-preview2/ILSpy_selfcontained_10.0.0.8282-preview2-x64.zip");
|
|
|
|
|
|
|
|
|
|
public static readonly ConVar<string> ILSpyVersion = ConVarBuilder.Build<string>("dotnet.version", "10");
|
2025-02-01 18:19:18 +03:00
|
|
|
}
|