From 72f297a479b6749674ec80e91be53b8c482123d2 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:07:39 +1000 Subject: crowbar --- Make.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Make.cs') diff --git a/Make.cs b/Make.cs index 6999c4d..293312e 100644 --- a/Make.cs +++ b/Make.cs @@ -1,6 +1,7 @@ namespace Q1Emu; using System; +using System.Buffers.Binary; public static class Make { @@ -45,4 +46,8 @@ public static class Make u8 b4 = (u8) (value & 0xFF); return new ref8([b1, b2, b3, b4], 0, 4); } + public static i16 i16(ref8 value) + { + return BinaryPrimitives.ReadInt16BigEndian(value); + } } \ No newline at end of file -- cgit v1.3.1