Skip to content

Commit

Permalink
Added more KSoft Debug files.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Jan 31, 2024
1 parent a36b699 commit e96ddb6
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cli/roms/*.*
cli/roms/*/extracted/**
!cli/roms/*/prereq/**
!cli/roms/PUT ROMS HERE.txt
!KSoft/KSoft/Debug/**
!KSoft/*/Debug/**

cli/ui/music/**
!cli/ui/music/PUT UI BACKGROUND MUSIC HERE.txt
Expand Down
40 changes: 40 additions & 0 deletions FinModelUtility/Games/HaloWars/KSoft/KSoft.Phoenix/Debug/Trace.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using Diag = System.Diagnostics;

namespace KSoft.Phoenix.Debug
{
/// <summary>Utility class for tracing assembly logic (or lack thereof)</summary>
internal static class Trace
{
static Diag.TraceSource kPhoenixSource
, kEngineSource
, kResourceSource
, kSecuritySource
, kTriggerSystemSource
, kXmlSource
;

static Trace()
{
kPhoenixSource = new Diag.TraceSource("KSoft.Phoenix", Diag.SourceLevels.All);
kEngineSource = new Diag.TraceSource("KSoft.Phoenix.Engine", Diag.SourceLevels.All);
kResourceSource = new Diag.TraceSource("KSoft.Phoenix.Resource", Diag.SourceLevels.All);
kSecuritySource = new Diag.TraceSource("KSoft.Security", Diag.SourceLevels.All);
kTriggerSystemSource = new Diag.TraceSource("KSoft.Phoenix.Triggers", Diag.SourceLevels.All);
kXmlSource = new Diag.TraceSource("KSoft.Phoenix.XML", Diag.SourceLevels.All);
}

/// <summary>Tracer for the <see cref="KSoft.Phoenix"/> namespace</summary>
public static Diag.TraceSource Phoenix { get { return kPhoenixSource; } }
/// <summary>Tracer for the <see cref="KSoft.Phoenix.Engine"/> namespace</summary>
public static Diag.TraceSource Engine { get { return kEngineSource; } }
/// <summary>Tracer for the <see cref="KSoft.Phoenix.Resource"/> namespace</summary>
public static Diag.TraceSource Resource { get { return kResourceSource; } }
/// <summary>Tracer for the <see cref="KSoft.Security"/> namespace</summary>
public static Diag.TraceSource Security { get { return kSecuritySource; } }
/// <summary>Tracer for the Trigger System related code</summary>
public static Diag.TraceSource TriggerSystem{ get { return kTriggerSystemSource; } }
/// <summary>Tracer for the <see cref="KSoft.Phoenix.XML"/> namespace</summary>
public static Diag.TraceSource XML { get { return kXmlSource; } }
};
}
24 changes: 24 additions & 0 deletions FinModelUtility/Games/HaloWars/KSoft/KSoft.Wwise/Debug/Trace.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using Diag = System.Diagnostics;

namespace KSoft.Wwise.Debug
{
/// <summary>Utility class for tracing assembly logic (or lack thereof)</summary>
internal static class Trace
{
static Diag.TraceSource kWwiseSource
, kFilePackageSource
;

static Trace()
{
kWwiseSource = new Diag.TraceSource("KSoft.Wwise", Diag.SourceLevels.All);
kFilePackageSource = new Diag.TraceSource("KSoft.Wwise.FilePackage", Diag.SourceLevels.All);
}

/// <summary>Tracer for the <see cref="KSoft.Wwise"/> namespace</summary>
public static Diag.TraceSource Wwise { get { return kWwiseSource; } }
/// <summary>Tracer for the <see cref="KSoft.Wwise.FilePackage"/> namespace</summary>
public static Diag.TraceSource FilePackage { get { return kFilePackageSource; } }
};
}

0 comments on commit e96ddb6

Please sign in to comment.