aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Horizon/LogManager/Types
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Horizon/LogManager/Types
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Horizon/LogManager/Types')
-rw-r--r--Ryujinx.Horizon/LogManager/Types/LogPacket.cs72
1 files changed, 0 insertions, 72 deletions
diff --git a/Ryujinx.Horizon/LogManager/Types/LogPacket.cs b/Ryujinx.Horizon/LogManager/Types/LogPacket.cs
deleted file mode 100644
index dbff5e3e..00000000
--- a/Ryujinx.Horizon/LogManager/Types/LogPacket.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using Ryujinx.Horizon.Sdk.Diag;
-using System.Text;
-
-namespace Ryujinx.Horizon.LogManager.Types
-{
- struct LogPacket
- {
- public string Message;
- public int Line;
- public string Filename;
- public string Function;
- public string Module;
- public string Thread;
- public long DropCount;
- public long Time;
- public string ProgramName;
- public LogSeverity Severity;
-
- public override string ToString()
- {
- StringBuilder builder = new();
- builder.AppendLine($"Guest Log:\n Log level: {Severity}");
-
- if (Time > 0)
- {
- builder.AppendLine($" Time: {Time}s");
- }
-
- if (DropCount > 0)
- {
- builder.AppendLine($" DropCount: {DropCount}");
- }
-
- if (!string.IsNullOrEmpty(ProgramName))
- {
- builder.AppendLine($" ProgramName: {ProgramName}");
- }
-
- if (!string.IsNullOrEmpty(Module))
- {
- builder.AppendLine($" Module: {Module}");
- }
-
- if (!string.IsNullOrEmpty(Thread))
- {
- builder.AppendLine($" Thread: {Thread}");
- }
-
- if (!string.IsNullOrEmpty(Filename))
- {
- builder.AppendLine($" Filename: {Filename}");
- }
-
- if (Line > 0)
- {
- builder.AppendLine($" Line: {Line}");
- }
-
- if (!string.IsNullOrEmpty(Function))
- {
- builder.AppendLine($" Function: {Function}");
- }
-
- if (!string.IsNullOrEmpty(Message))
- {
- builder.AppendLine($" Message: {Message}");
- }
-
- return builder.ToString();
- }
- }
-} \ No newline at end of file