Add ability to trim XCI files from the application context menu #52
@ -72,5 +72,6 @@ namespace Ryujinx.Common.Logging
|
||||
TamperMachine,
|
||||
UI,
|
||||
Vic,
|
||||
XCIFileTrimmer
|
||||
}
|
||||
}
|
||||
|
30
src/Ryujinx.Common/Logging/XCIFileTrimmerLog.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Ryujinx.Common.Utilities;
|
||||
|
||||
namespace Ryujinx.Common.Logging
|
||||
{
|
||||
public class XCIFileTrimmerLog : XCIFileTrimmer.ILog
|
||||
{
|
||||
public virtual void Progress(long current, long total, string text, bool complete)
|
||||
{
|
||||
}
|
||||
|
||||
public void Write(XCIFileTrimmer.LogType logType, string text)
|
||||
{
|
||||
switch (logType)
|
||||
{
|
||||
case XCIFileTrimmer.LogType.Info:
|
||||
Logger.Notice.Print(LogClass.XCIFileTrimmer, text);
|
||||
break;
|
||||
case XCIFileTrimmer.LogType.Warn:
|
||||
Logger.Warning?.Print(LogClass.XCIFileTrimmer, text);
|
||||
break;
|
||||
case XCIFileTrimmer.LogType.Error:
|
||||
Logger.Error?.Print(LogClass.XCIFileTrimmer, text);
|
||||
break;
|
||||
case XCIFileTrimmer.LogType.Progress:
|
||||
Logger.Info?.Print(LogClass.XCIFileTrimmer, text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
487
src/Ryujinx.Common/Utilities/XCIFileTrimmer.cs
Normal file
@ -0,0 +1,487 @@
|
||||
|
||||
using Gommon;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
using System;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
using System.Collections.Generic;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
using System.Diagnostics;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
using System.IO;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
using System.Linq;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
namespace Ryujinx.Common.Utilities
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public sealed class XCIFileTrimmer
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const long BytesInAMegabyte = 1024 * 1024;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const int BufferSize = 8 * (int)BytesInAMegabyte;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const long CartSizeMBinFormattedGB = 952;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const int CartKeyAreaSize = 0x1000;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const byte PaddingByte = 0xFF;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const int HeaderFilePos = 0x100;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const int CartSizeFilePos = 0x10D;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const int DataSizeFilePos = 0x118;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private const string HeaderMagicValue = "HEAD";
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
/// <summary>
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
/// Cartridge Sizes (ByteIdentifier, SizeInGB)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
/// </summary>
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private static readonly Dictionary<byte, long> _cartSizesGB = new()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xFA, 1 },
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xF8, 2 },
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xF0, 4 },
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xE0, 8 },
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xE1, 16 },
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{ 0xE2, 32 }
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
};
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private static long RecordsToByte(long records)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return 512 + (records * 512);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public static bool CanTrim(string filename, ILog log = null)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (Path.GetExtension(filename).Equals(".XCI", StringComparison.InvariantCultureIgnoreCase))
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var trimmer = new XCIFileTrimmer(filename, log);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return trimmer.CanBeTrimmed;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public static bool CanUntrim(string filename, ILog log = null)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (Path.GetExtension(filename).Equals(".XCI", StringComparison.InvariantCultureIgnoreCase))
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var trimmer = new XCIFileTrimmer(filename, log);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return trimmer.CanBeUntrimmed;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private ILog _log;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private string _filename;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private FileStream _fileStream;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private BinaryReader _binaryReader;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private long _offsetB, _dataSizeB, _cartSizeB, _fileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private bool _fileOK = true;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private bool _freeSpaceChecked = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private bool _freeSpaceValid = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public enum OperationOutcome
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
InvalidXCIFile,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
NoTrimNecessary,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
NoUntrimPossible,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
FreeSpaceCheckFailed,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
FileIOWriteError,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
ReadOnlyFileCannotFix,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
FileSizeChanged,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Successful
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public enum LogType
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Info,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Warn,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Error,
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Progress
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public interface ILog
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public void Write(LogType logType, string text);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public void Progress(long current, long total, string text, bool complete);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool FileOK => _fileOK;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool Trimmed => _fileOK && FileSizeB < UntrimmedFileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool ContainsKeyArea => _offsetB != 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool CanBeTrimmed => _fileOK && FileSizeB > TrimmedFileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool CanBeUntrimmed => _fileOK && FileSizeB < UntrimmedFileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool FreeSpaceChecked => _fileOK && _freeSpaceChecked;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public bool FreeSpaceValid => _fileOK && _freeSpaceValid;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long DataSizeB => _dataSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long CartSizeB => _cartSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long FileSizeB => _fileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long DiskSpaceSavedB => CartSizeB - FileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long DiskSpaceSavingsB => CartSizeB - DataSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long TrimmedFileSizeB => _offsetB + _dataSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long UntrimmedFileSizeB => _offsetB + _cartSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public ILog Log
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
get => _log;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
set => _log = value;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public String Filename
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
get => _filename;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
set
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_filename = value;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Reset();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public long Pos
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
get => _fileStream.Position;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
set => _fileStream.Position = value;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public XCIFileTrimmer(string path, ILog log = null)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log = log;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Filename = path;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
ReadHeader();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public void CheckFreeSpace()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (FreeSpaceChecked)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (CanBeTrimmed)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceValid = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
OpenReaders();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Pos = TrimmedFileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
bool freeSpaceValid = true;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long readSizeB = FileSizeB - TrimmedFileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Stopwatch timedSw = Lambda.Timed(() =>
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
freeSpaceValid = CheckPadding(readSizeB);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
});
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (timedSw.Elapsed.TotalSeconds > 0)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, $"Checked at {readSizeB / (double)XCIFileTrimmer.BytesInAMegabyte / timedSw.Elapsed.TotalSeconds:N} Mb/sec");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (freeSpaceValid)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, "Free space is valid");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceValid = freeSpaceValid;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
CloseReaders();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
else
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Warn, "There is no free space to check.");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceValid = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceChecked = true;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private bool CheckPadding(long readSizeB)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long maxReads = readSizeB / XCIFileTrimmer.BufferSize;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long read = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var buffer = new byte[BufferSize];
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
while (true)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
int bytes = _fileStream.Read(buffer, 0, XCIFileTrimmer.BufferSize);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (bytes == 0)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
break;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Progress(read, maxReads, "Verifying file can be trimmed", false);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (buffer.Take(bytes).AsParallel().Any(b => b != XCIFileTrimmer.PaddingByte))
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Warn, "Free space is NOT valid");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
read++;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return true;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private void Reset()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceChecked = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_freeSpaceValid = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
ReadHeader();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public OperationOutcome Trim()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!FileOK)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.InvalidXCIFile;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!CanBeTrimmed)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.NoTrimNecessary;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!FreeSpaceChecked)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
CheckFreeSpace();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!FreeSpaceValid)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.FreeSpaceCheckFailed;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, "Trimming...");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var info = new FileInfo(Filename);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if ((info.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, "Attempting to remove ReadOnly attribute");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
File.SetAttributes(Filename, info.Attributes & ~FileAttributes.ReadOnly);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
catch (Exception e)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, e.ToString());
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.ReadOnlyFileCannotFix;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (info.Length != FileSizeB)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, "File size has changed, cannot safely trim.");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.FileSizeChanged;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var outfileStream = new FileStream(_filename, FileMode.Open, FileAccess.Write, FileShare.Write);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
outfileStream.SetLength(TrimmedFileSizeB);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.Successful;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
outfileStream.Close();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Reset();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
catch (Exception e)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, e.ToString());
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.FileIOWriteError;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
public OperationOutcome Untrim()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!FileOK)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.InvalidXCIFile;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!CanBeUntrimmed)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.NoUntrimPossible;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, "Untrimming...");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var info = new FileInfo(Filename);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if ((info.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, "Attempting to remove ReadOnly attribute");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
File.SetAttributes(Filename, info.Attributes & ~FileAttributes.ReadOnly);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
catch (Exception e)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, e.ToString());
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.ReadOnlyFileCannotFix;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (info.Length != FileSizeB)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, "File size has changed, cannot safely untrim.");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.FileSizeChanged;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var outfileStream = new FileStream(_filename, FileMode.Append, FileAccess.Write, FileShare.Write);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long bytesToWriteB = UntrimmedFileSizeB - FileSizeB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Stopwatch timedSw = Lambda.Timed(() =>
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
WritePadding(outfileStream, bytesToWriteB);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
});
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (timedSw.Elapsed.TotalSeconds > 0)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Info, $"Wrote at {bytesToWriteB / (double)XCIFileTrimmer.BytesInAMegabyte / timedSw.Elapsed.TotalSeconds:N} Mb/sec");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.Successful;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
outfileStream.Close();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Reset();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
catch (Exception e)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, e.ToString());
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return OperationOutcome.FileIOWriteError;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private void WritePadding(FileStream outfileStream, long bytesToWriteB)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long bytesLeftToWriteB = bytesToWriteB;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long writes = bytesLeftToWriteB / XCIFileTrimmer.BufferSize;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
int write = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
var buffer = new byte[BufferSize];
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Array.Fill<byte>(buffer, XCIFileTrimmer.PaddingByte);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
while (bytesLeftToWriteB > 0)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long bytesToWrite = Math.Min(XCIFileTrimmer.BufferSize, bytesLeftToWriteB);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
outfileStream.Write(buffer, 0, (int)bytesToWrite);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
bytesLeftToWriteB -= bytesToWrite;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Progress(write, writes, "Writing padding data...", false);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
write++;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Progress(write, writes, "Writing padding data...", true);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private void OpenReaders()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (_binaryReader == null)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileStream = new FileStream(_filename, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_binaryReader = new BinaryReader(_fileStream);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private void CloseReaders()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (_binaryReader != null && _binaryReader.BaseStream != null)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_binaryReader.Close();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_binaryReader = null;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileStream = null;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
GC.Collect();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private void ReadHeader()
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
OpenReaders();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
try
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Attempt without key area
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
bool success = CheckAndReadHeader(false);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!success)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Attempt with key area
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
success = CheckAndReadHeader(true);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileOK = success;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
finally
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
CloseReaders();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
catch (Exception ex)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, ex.Message);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileOK = false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_dataSizeB = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_cartSizeB = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileSizeB = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_offsetB = 0;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
private bool CheckAndReadHeader(bool assumeKeyArea)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Read file size
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_fileSizeB = _fileStream.Length;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (_fileSizeB < 32 * 1024)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, "The source file doesn't look like an XCI file as the data size is too small");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Setup offset
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_offsetB = (long)(assumeKeyArea ? XCIFileTrimmer.CartKeyAreaSize : 0);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Check header
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Pos = _offsetB + XCIFileTrimmer.HeaderFilePos;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
string head = System.Text.Encoding.ASCII.GetString(_binaryReader.ReadBytes(4));
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (head != XCIFileTrimmer.HeaderMagicValue)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!assumeKeyArea)
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Warn, $"Incorrect header found, file mat contain a key area...");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
else
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, "The source file doesn't look like an XCI file as the header is corrupted");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Read Cart Size
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Pos = _offsetB + XCIFileTrimmer.CartSizeFilePos;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
byte cartSizeId = _binaryReader.ReadByte();
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
if (!_cartSizesGB.TryGetValue(cartSizeId, out long cartSizeNGB))
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
{
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Log?.Write(LogType.Error, $"The source file doesn't look like an XCI file as the Cartridge Size is incorrect (0x{cartSizeId:X2})");
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return false;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_cartSizeB = cartSizeNGB * XCIFileTrimmer.CartSizeMBinFormattedGB * XCIFileTrimmer.BytesInAMegabyte;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
// Read data size
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
Pos = _offsetB + XCIFileTrimmer.DataSizeFilePos;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
long records = (long)BitConverter.ToUInt32(_binaryReader.ReadBytes(4), 0);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
_dataSizeB = RecordsToByte(records);
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
return true;
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
||||
}
|
||||
![]() This function can be entirely replaced with This function can be entirely replaced with `Lambda.Timed(Action)`, from my common library `Gommon` (which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.
![]() Thanks @GreemDev , I have updated the branch with your suggested changes, definitely don't want to duplicate any code. Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
|
@ -84,8 +84,11 @@
|
||||
"GameListContextMenuOpenModsDirectoryToolTip": "Opens the directory which contains Application's Mods",
|
||||
"GameListContextMenuOpenSdModsDirectory": "Open Atmosphere Mods Directory",
|
||||
"GameListContextMenuOpenSdModsDirectoryToolTip": "Opens the alternative SD card Atmosphere directory which contains Application's Mods. Useful for mods that are packaged for real hardware.",
|
||||
"GameListContextMenuTrimXCI": "Check and Trim XCI File",
|
||||
"GameListContextMenuTrimXCIToolTip": "Check and Trim XCI File to Save Disk Space",
|
||||
"StatusBarGamesLoaded": "{0}/{1} Games Loaded",
|
||||
"StatusBarSystemVersion": "System Version: {0}",
|
||||
"StatusBarXCIFileTrimming": "Trimming XCI File '{0}'",
|
||||
"LinuxVmMaxMapCountDialogTitle": "Low limit for memory mappings detected",
|
||||
"LinuxVmMaxMapCountDialogTextPrimary": "Would you like to increase the value of vm.max_map_count to {0}",
|
||||
"LinuxVmMaxMapCountDialogTextSecondary": "Some games might try to create more memory mappings than currently allowed. Ryujinx will crash as soon as this limit gets exceeded.",
|
||||
@ -718,6 +721,16 @@
|
||||
"SelectDlcDialogTitle": "Select DLC files",
|
||||
"SelectUpdateDialogTitle": "Select update files",
|
||||
"SelectModDialogTitle": "Select mod directory",
|
||||
"TrimXCIFileDialogTitle": "Check and Trim XCI File",
|
||||
"TrimXCIFileDialogPrimaryText": "This function will first check the empty space and then trim the XCI File to save disk space.",
|
||||
"TrimXCIFileDialogSecondaryText": "Current File Size: {0:n} MB\nGame Data Size: {1:n} MB\nDisk Space Savings: {2:n} MB",
|
||||
"TrimXCIFileNoTrimNecessary": "XCI File does not need to be trimmed. Check logs for further details",
|
||||
"TrimXCIFileReadOnlyFileCannotFix": "XCI File is Read Only and could not be made writable. Check logs for further details",
|
||||
"TrimXCIFileFileSizeChanged": "XCI File has changed in size since it was scanned. Please check the file is not being written to and try again.",
|
||||
"TrimXCIFileFreeSpaceCheckFailed": "XCI File has data in the free space area, it is not safe to trim",
|
||||
"TrimXCIFileInvalidXCIFile": "XCI File contains invalid data. Check logs for further details",
|
||||
"TrimXCIFileFileIOWriteError": "XCI File could not be opened for writing. Check logs for further details",
|
||||
"TrimXCIFileFailedPrimaryText": "Trimming of the XCI file failed",
|
||||
"UserProfileWindowTitle": "User Profiles Manager",
|
||||
"CheatWindowTitle": "Cheats Manager",
|
||||
"DlcWindowTitle": "Manage Downloadable Content for {0} ({1})",
|
||||
@ -735,6 +748,7 @@
|
||||
"AutoloadDlcAndUpdateAddedMessage": "{0} new downloadable content(s) and {1} new update(s) added",
|
||||
"ModWindowHeading": "{0} Mod(s)",
|
||||
"UserProfilesEditProfile": "Edit Selected",
|
||||
"Continue": "Continue",
|
||||
"Cancel": "Cancel",
|
||||
"Save": "Save",
|
||||
"Discard": "Discard",
|
||||
|
24
src/Ryujinx/Common/XCIFileTrimmerLog.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using Ryujinx.Ava.UI.ViewModels;
|
||||
|
||||
namespace Ryujinx.Ava.Common
|
||||
{
|
||||
internal class XCIFileTrimmerLog : Ryujinx.Common.Logging.XCIFileTrimmerLog
|
||||
{
|
||||
private readonly MainWindowViewModel _viewModel;
|
||||
|
||||
public XCIFileTrimmerLog(MainWindowViewModel viewModel)
|
||||
{
|
||||
_viewModel = viewModel;
|
||||
}
|
||||
|
||||
public override void Progress(long current, long total, string text, bool complete)
|
||||
{
|
||||
Avalonia.Threading.Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
_viewModel.StatusBarProgressMaximum = (int)(total);
|
||||
_viewModel.StatusBarProgressValue = (int)(current);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -70,6 +70,12 @@
|
||||
Header="{locale:Locale GameListContextMenuOpenSdModsDirectory}"
|
||||
Icon="{icon:Icon mdi-folder-file}"
|
||||
ToolTip.Tip="{locale:Locale GameListContextMenuOpenSdModsDirectoryToolTip}" />
|
||||
<Separator />
|
||||
<MenuItem
|
||||
Click="TrimXCI_Click"
|
||||
Header="{locale:Locale GameListContextMenuTrimXCI}"
|
||||
IsEnabled="{Binding TrimXCIEnabled}"
|
||||
ToolTip.Tip="{locale:Locale GameListContextMenuTrimXCIToolTip}" />
|
||||
<Separator />
|
||||
<MenuItem Header="{locale:Locale GameListContextMenuCacheManagement}" Icon="{icon:Icon mdi-cached}">
|
||||
<MenuItem
|
||||
|
@ -2,6 +2,7 @@ using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Platform.Storage;
|
||||
using Avalonia.Threading;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Tools.FsSystem.NcaUtils;
|
||||
using Ryujinx.Ava.Common;
|
||||
@ -17,6 +18,8 @@ using SkiaSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Path = System.IO.Path;
|
||||
|
||||
namespace Ryujinx.Ava.UI.Controls
|
||||
@ -323,5 +326,15 @@ namespace Ryujinx.Ava.UI.Controls
|
||||
if (sender is MenuItem { DataContext: MainWindowViewModel { SelectedApplication: not null } viewModel })
|
||||
await viewModel.LoadApplication(viewModel.SelectedApplication);
|
||||
}
|
||||
|
||||
public async void TrimXCI_Click(object sender, RoutedEventArgs args)
|
||||
{
|
||||
var viewModel = (sender as MenuItem)?.DataContext as MainWindowViewModel;
|
||||
|
||||
if (viewModel?.SelectedApplication != null)
|
||||
{
|
||||
await viewModel.TrimXCIFile(viewModel.SelectedApplication.Path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ using Ryujinx.Ava.UI.Windows;
|
||||
using Ryujinx.Common;
|
||||
using Ryujinx.Common.Configuration;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Common.Utilities;
|
||||
using Ryujinx.Cpu;
|
||||
using Ryujinx.HLE;
|
||||
using Ryujinx.HLE.FileSystem;
|
||||
@ -37,6 +38,7 @@ using SkiaSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@ -80,6 +82,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
private bool _isAppletMenuActive;
|
||||
private int _statusBarProgressMaximum;
|
||||
private int _statusBarProgressValue;
|
||||
private string _statusBarProgressStatusText;
|
||||
private bool _statusBarProgressStatusVisible;
|
||||
private bool _isPaused;
|
||||
private bool _showContent = true;
|
||||
private bool _isLoadingIndeterminate = true;
|
||||
@ -371,6 +375,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
|
||||
public bool OpenDeviceSaveDirectoryEnabled => !SelectedApplication.ControlHolder.ByteSpan.IsZeros() && SelectedApplication.ControlHolder.Value.DeviceSaveDataSize > 0;
|
||||
|
||||
public bool TrimXCIEnabled => Ryujinx.Common.Utilities.XCIFileTrimmer.CanTrim(SelectedApplication.Path, new Common.XCIFileTrimmerLog(this));
|
||||
|
||||
public bool OpenBcatSaveDirectoryEnabled => !SelectedApplication.ControlHolder.ByteSpan.IsZeros() && SelectedApplication.ControlHolder.Value.BcatDeliveryCacheStorageSize > 0;
|
||||
|
||||
public bool CreateShortcutEnabled => !ReleaseInformation.IsFlatHubBuild;
|
||||
@ -485,6 +491,28 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public bool StatusBarProgressStatusVisible
|
||||
{
|
||||
get => _statusBarProgressStatusVisible;
|
||||
set
|
||||
{
|
||||
_statusBarProgressStatusVisible = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public string StatusBarProgressStatusText
|
||||
{
|
||||
get => _statusBarProgressStatusText;
|
||||
set
|
||||
{
|
||||
_statusBarProgressStatusText = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public string FifoStatusText
|
||||
{
|
||||
get => _fifoStatusText;
|
||||
@ -1802,6 +1830,114 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public async void ProcessTrimResult(String filename, Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome operationOutcome)
|
||||
{
|
||||
string notifyUser = null;
|
||||
|
||||
switch (operationOutcome)
|
||||
{
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.NoTrimNecessary:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileNoTrimNecessary];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.ReadOnlyFileCannotFix:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileReadOnlyFileCannotFix];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.FreeSpaceCheckFailed:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileFreeSpaceCheckFailed];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.InvalidXCIFile:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileInvalidXCIFile];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.FileIOWriteError:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileFileIOWriteError];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.FileSizeChanged:
|
||||
notifyUser = LocaleManager.Instance[LocaleKeys.TrimXCIFileFileSizeChanged];
|
||||
break;
|
||||
case Ryujinx.Common.Utilities.XCIFileTrimmer.OperationOutcome.Successful:
|
||||
if (Avalonia.Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
if (desktop.MainWindow is MainWindow mainWindow)
|
||||
mainWindow.LoadApplications();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (notifyUser != null)
|
||||
{
|
||||
await ContentDialogHelper.CreateWarningDialog(
|
||||
LocaleManager.Instance[LocaleKeys.TrimXCIFileFailedPrimaryText],
|
||||
notifyUser
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public async Task TrimXCIFile(string filename)
|
||||
{
|
||||
if (filename == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var trimmer = new XCIFileTrimmer(filename, new Common.XCIFileTrimmerLog(this));
|
||||
|
||||
if (trimmer.CanBeTrimmed)
|
||||
{
|
||||
var savings = (double)trimmer.DiskSpaceSavingsB / 1024.0 / 1024.0;
|
||||
var currentFileSize = (double)trimmer.FileSizeB / 1024.0 / 1024.0;
|
||||
var cartDataSize = (double)trimmer.DataSizeB / 1024.0 / 1024.0;
|
||||
string secondaryText = LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.TrimXCIFileDialogSecondaryText, currentFileSize, cartDataSize, savings);
|
||||
|
||||
var result = await ContentDialogHelper.CreateConfirmationDialog(
|
||||
LocaleManager.Instance[LocaleKeys.TrimXCIFileDialogPrimaryText],
|
||||
secondaryText,
|
||||
LocaleManager.Instance[LocaleKeys.Continue],
|
||||
LocaleManager.Instance[LocaleKeys.Cancel],
|
||||
LocaleManager.Instance[LocaleKeys.TrimXCIFileDialogTitle]
|
||||
);
|
||||
|
||||
if (result == UserResult.Yes)
|
||||
{
|
||||
Thread XCIFileTrimThread = new(() =>
|
||||
{
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
StatusBarProgressStatusText = LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.StatusBarXCIFileTrimming, Path.GetFileName(filename));
|
||||
StatusBarProgressStatusVisible = true;
|
||||
StatusBarProgressMaximum = 1;
|
||||
StatusBarProgressValue = 0;
|
||||
StatusBarVisible = true;
|
||||
});
|
||||
|
||||
try
|
||||
{
|
||||
XCIFileTrimmer.OperationOutcome operationOutcome = trimmer.Trim();
|
||||
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
ProcessTrimResult(filename, operationOutcome);
|
||||
});
|
||||
}
|
||||
finally
|
||||
{
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
StatusBarProgressStatusVisible = false;
|
||||
StatusBarProgressStatusText = string.Empty;
|
||||
StatusBarVisible = false;
|
||||
});
|
||||
}
|
||||
})
|
||||
{
|
||||
Name = "GUI.XCFileTrimmerThread",
|
||||
IsBackground = true,
|
||||
};
|
||||
XCIFileTrimThread.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
Margin="5"
|
||||
VerticalAlignment="Center"
|
||||
IsVisible="{Binding EnableNonGameRunningControls}">
|
||||
<Grid Margin="0" ColumnDefinitions="Auto,Auto,*">
|
||||
<Grid Margin="0" ColumnDefinitions="Auto,Auto,Auto,*">
|
||||
<Button
|
||||
Width="25"
|
||||
Height="25"
|
||||
@ -50,9 +50,16 @@
|
||||
VerticalAlignment="Center"
|
||||
IsVisible="{Binding EnableNonGameRunningControls}"
|
||||
Text="{locale:Locale StatusBarGamesLoaded}" />
|
||||
<TextBlock
|
||||
Name="StatusBarProgressStatus"
|
||||
Grid.Column="2"
|
||||
Margin="10,0,5,0"
|
||||
VerticalAlignment="Center"
|
||||
IsVisible="{Binding StatusBarProgressStatusVisible}"
|
||||
Text="{Binding StatusBarProgressStatusText}" />
|
||||
<ProgressBar
|
||||
Name="LoadProgressBar"
|
||||
Grid.Column="2"
|
||||
Grid.Column="3"
|
||||
Height="6"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource SystemAccentColorLight2}"
|
||||
|
This function can be entirely replaced with
Lambda.Timed(Action)
, from my common libraryGommon
(which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.This function can be entirely replaced with
Lambda.Timed(Action)
, from my common libraryGommon
(which is already referenced by this Ryujinx fork). The only difference is that Timed returns the stopwatch directly instead of its Elapsed property.Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.
Thanks @GreemDev ,
I have updated the branch with your suggested changes, definitely don't want to duplicate any code.