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