-
Notifications
You must be signed in to change notification settings - Fork 516
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 XCI files from the application context menu (#33)
- Loading branch information
1 parent
7e9a293
commit 6253fe1
Showing
15 changed files
with
915 additions
and
2 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.