-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to trim and untrim XCI files from the application context…
… menu AND in Bulk (#105)
- Loading branch information
1 parent
47b8145
commit 4831965
Showing
23 changed files
with
2,095 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,6 @@ public enum LogClass | |
TamperMachine, | ||
UI, | ||
Vic, | ||
XCIFileTrimmer | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.