Skip to content

Commit

Permalink
Fix logging oversights
Browse files Browse the repository at this point in the history
  • Loading branch information
SnipUndercover committed Oct 28, 2024
1 parent 2c630f0 commit bc27fd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Celeste.Mod.mm/Mod/Helpers/ILCursorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static bool TryGotoNextBestFit(this ILCursor cursor, MoveType moveType, i
if (!cursor.TryGotoNext(MoveType.After, matcher))
{
Logger.Verbose(NextBestFitLogID,
$"Matched predicate #1 at index 0x{savedCursorPosition:X4}, but failed to match predicate #{i}. Continuing search.");
$"Matched predicate #0 at index 0x{savedCursorPosition:X4}, but failed to match predicate #{i}. Continuing search.");

matchFound = false;
break;
Expand All @@ -170,7 +170,7 @@ public static bool TryGotoNextBestFit(this ILCursor cursor, MoveType moveType, i
if (instructionSpread > maxInstructionSpread)
{
Logger.Debug(NextBestFitLogID,
$"Matched predicate #1 at index 0x{savedCursorPosition:X4}, but the instruction spread between predicates #{i-1} and ${i} has been exceeded " +
$"Matched predicate #0 at index 0x{savedCursorPosition:X4}, but the instruction spread between predicates #{i-1} and #{i} has been exceeded " +
$"({instructionSpread} > {maxInstructionSpread}). Continuing search.");

matchFound = false;
Expand Down Expand Up @@ -402,7 +402,7 @@ public static bool TryGotoPrevBestFit(this ILCursor cursor, MoveType moveType, i
if (!cursor.TryGotoNext(MoveType.After, matcher))
{
Logger.Verbose(PrevBestFitLogID,
$"Matched predicate #1 at index 0x{savedCursorPosition:X4}, but failed to match predicate #{i}. Continuing search.");
$"Matched predicate #0 at index 0x{savedCursorPosition:X4}, but failed to match predicate #{i}. Continuing search.");

matchFound = false;
break;
Expand All @@ -414,7 +414,7 @@ public static bool TryGotoPrevBestFit(this ILCursor cursor, MoveType moveType, i
if (instructionSpread > maxInstructionSpread)
{
Logger.Debug(PrevBestFitLogID,
$"Matched predicate #1 at index 0x{savedCursorPosition:X4}, but the instruction spread between predicates #{i-1} and ${i} has been exceeded " +
$"Matched predicate #0 at index 0x{savedCursorPosition:X4}, but the instruction spread between predicates #{i-1} and #{i} has been exceeded " +
$"({instructionSpread} > {maxInstructionSpread}). Continuing search.");

matchFound = false;
Expand Down

0 comments on commit bc27fd6

Please sign in to comment.