diff --git a/GameRes/Utility.cs b/GameRes/Utility.cs index 491fec26..4654f7a6 100644 --- a/GameRes/Utility.cs +++ b/GameRes/Utility.cs @@ -101,6 +101,11 @@ namespace GameRes.Utility return GetCString (data, index, length_limit, Encodings.cp932); } + public static string GetCString (byte[] data, int index) + { + return GetCString (data, index, data.Length - index, Encodings.cp932); + } + public static uint RotR (uint v, int count) { count &= 0x1F;