diff --git a/shell.nix b/shell.nix index 0555690..e453fac 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,23 @@ {pkgs ? import {}}: +let +rust-toolchain = pkgs.symlinkJoin { + name = "rust-toolchain"; + paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy]; + }; +in pkgs.mkShell { nativeBuildInputs = with pkgs.buildPackages; [ - rustup + rust-toolchain + pkg-config xe lzma cargo-tarpaulin gnumake + iconv + + dotnet-sdk_8 ]; + + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; } diff --git a/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs b/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs index 0f57195..aa4366d 100644 --- a/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs +++ b/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs @@ -18,7 +18,7 @@ internal sealed class SendToServicePointDisplay : IFrameConsumer private readonly MapService _mapService; private readonly ILogger _logger; private readonly PlayerServer _players; - private readonly ByteGrid _scoresBuffer; + private readonly Cp437Grid _scoresBuffer; private readonly TimeSpan _minFrameTime; private readonly IOptionsMonitor _options; @@ -43,7 +43,7 @@ internal sealed class SendToServicePointDisplay : IFrameConsumer var localIp = GetLocalIPv4(displayConfig.Value).Split('.'); Debug.Assert(localIp.Length == 4); - _scoresBuffer = ByteGrid.New(12, 20); + _scoresBuffer = Cp437Grid.New(12, 20); _scoresBuffer[00] = "== TANKS! =="; _scoresBuffer[01] = "-- scores --"; diff --git a/tanks-backend/TanksServer/TanksServer.csproj b/tanks-backend/TanksServer/TanksServer.csproj index d4ef742..702cd9c 100644 --- a/tanks-backend/TanksServer/TanksServer.csproj +++ b/tanks-backend/TanksServer/TanksServer.csproj @@ -21,7 +21,7 @@ - + diff --git a/tanks-backend/servicepoint b/tanks-backend/servicepoint index ff71369..c5cb647 160000 --- a/tanks-backend/servicepoint +++ b/tanks-backend/servicepoint @@ -1 +1 @@ -Subproject commit ff713690e3799eaaf7aed5ec5ac557cc91d96178 +Subproject commit c5cb6475b24fdcdcd073ea44457628daed4e21a6