modernize repository

This commit is contained in:
2024-10-27 08:45:49 +01:00
parent 32b110fca5
commit 076277bd60
37 changed files with 1389 additions and 1491 deletions

View File

@@ -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;
}
}