Add NixOS and Go

This commit is contained in:
2026-10-27 11:35:32 +01:00
parent 881b61a66d
commit 97d2685302
64 changed files with 1295 additions and 204 deletions
+11
View File
@@ -15,6 +15,7 @@ namespace KernelPanic.Run
private static PendingRun _pendingRun;
private static ResolvedRunCheckpoint _pendingResume;
private static RunConfig _pendingTutorial;
private static Language? _returnLanguage;
public static bool HasPendingRun => _pendingRun != null || _pendingResume != null || _pendingTutorial != null;
public static int? LastRunSeed { get; private set; }
@@ -26,6 +27,16 @@ namespace KernelPanic.Run
_pendingResume = null;
LastRunSeed = null;
_pendingTutorial = null;
_returnLanguage = null;
}
public static void ReturnToLanguage(Language language) => _returnLanguage = language;
public static bool TryTakeLanguageReturn(out Language language)
{
language = _returnLanguage.GetValueOrDefault();
bool returning = _returnLanguage.HasValue;
_returnLanguage = null;
return returning;
}
public static void Set(DistroDefinition distro, IReadOnlyList<CardDefinition> equippedCards, Language primaryLanguage, Language secondaryLanguage)