Skip to content

Commit

Permalink
Add commented-out code for limiting BPS creation source refs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed Jun 21, 2024
1 parent 89512b5 commit 566de2b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion HyoutaToolsLib/Patches/Bps/CreateSimplest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,25 @@ private bool ShouldWriteNextByteFromTarget(out int s, out int t, out bool advanc
}
advancedS = true;

return s != t;
if (s != t) {
return true;
}

//ulong limit = 5;
//long sp = Source.Position;
//long tp = Target.Position;
//int s2; int t2; bool as2; bool at2;
//ulong count = 0;
//while (IsNextByteSameInSourceAndTarget(out s2, out t2, out as2, out at2)) {
// ++count;
//}
//Source.Position = sp;
//Target.Position = tp;
//if (count < limit) {
// return true;
//}

return false;
}

public static void CreatePatch(Stream source, Stream target, Stream binout) {
Expand Down

0 comments on commit 566de2b

Please sign in to comment.