modernize repository
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace PJ64Savestater;
|
||||
|
||||
namespace PJ64Savestater
|
||||
internal static class Globals
|
||||
{
|
||||
internal static class Globals
|
||||
public static bool CompareTwoByteArrays(byte[] arr1, byte[] arr2)
|
||||
{
|
||||
public static bool CompareTwoByteArrays(byte[] arr1, byte[] arr2)
|
||||
{
|
||||
if (arr2.Count() != arr1.Count())
|
||||
return false;
|
||||
for (int i = 0, loopTo = arr1.Count() - 1; i <= loopTo; i++)
|
||||
{
|
||||
if (arr1[i] != arr2[i])
|
||||
return false;
|
||||
}
|
||||
if (arr2.Length != arr1.Length)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
for (int i = 0, loopTo = arr1.Length - 1; i <= loopTo; i++)
|
||||
{
|
||||
if (arr1[i] != arr2[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user