mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
fixed errors.
This commit is contained in:
parent
b068b56ca4
commit
816bb74ddc
@ -37,7 +37,7 @@ namespace GameRes
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Name of the stream (could be name of the underlying file) or an empty string.
|
/// Name of the stream (could be name of the underlying file) or an empty string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
string Name { get; get; }
|
string Name { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// First 4 bytes of the stream as a little-endian integer.
|
/// First 4 bytes of the stream as a little-endian integer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -177,7 +177,7 @@ namespace GameRes
|
|||||||
|
|
||||||
public static bool AsciiEqual<TArray> (this TArray arr, int index, string str) where TArray : IList<byte>
|
public static bool AsciiEqual<TArray> (this TArray arr, int index, string str) where TArray : IList<byte>
|
||||||
{
|
{
|
||||||
if (arr.Length-index < str.Length)
|
if (arr.Count-index < str.Length)
|
||||||
return false;
|
return false;
|
||||||
for (int i = 0; i < str.Length; ++i)
|
for (int i = 0; i < str.Length; ++i)
|
||||||
if ((char)arr[index+i] != str[i])
|
if ((char)arr[index+i] != str[i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user