mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-11 13:45:26 +00:00
26 lines
687 B
C#
26 lines
687 B
C#
using System;
|
|
using BinaryObjectScanner;
|
|
using MPF.Core.Data;
|
|
|
|
namespace MPF.Core
|
|
{
|
|
public static class ConsoleLogger
|
|
{
|
|
/// <summary>
|
|
/// Simple process counter to write to console
|
|
/// </summary>
|
|
public static void ProgressUpdated(object? sender, Result value)
|
|
{
|
|
Console.WriteLine(value.Message);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Simple process counter to write to console
|
|
/// </summary>
|
|
public static void ProgressUpdated(object? sender, ProtectionProgress value)
|
|
{
|
|
Console.WriteLine($"{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}");
|
|
}
|
|
}
|
|
}
|