diff --git a/BepInEx.Debug.sln b/BepInEx.Debug.sln
index 66c9f0b..e1c1c8d 100644
--- a/BepInEx.Debug.sln
+++ b/BepInEx.Debug.sln
@@ -17,7 +17,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoProfilerLoader", "src\S
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoProfilerController", "src\simpleprofiler\MonoProfilerController\MonoProfilerController.csproj", "{E643A810-00A8-4B6F-83FC-B8631257EB43}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RedirectInternalLogs", "src\RedirectInternalLogs\RedirectInternalLogs.csproj", "{29571930-F2E9-45DC-BB65-5B60C2B16850}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MirrorInternalLogs", "src\MirrorInternalLogs\MirrorInternalLogs.csproj", "{29571930-F2E9-45DC-BB65-5B60C2B16850}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/src/RedirectInternalLogs/InternalUnityLogger.cs b/src/MirrorInternalLogs/InternalUnityLogger.cs
similarity index 94%
rename from src/RedirectInternalLogs/InternalUnityLogger.cs
rename to src/MirrorInternalLogs/InternalUnityLogger.cs
index 9bf5dc4..1a8adff 100644
--- a/src/RedirectInternalLogs/InternalUnityLogger.cs
+++ b/src/MirrorInternalLogs/InternalUnityLogger.cs
@@ -1,8 +1,8 @@
using System;
using System.IO;
-using RedirectInternalLogs.Util;
+using MirrorInternalLogs.Util;
-namespace RedirectInternalLogs
+namespace MirrorInternalLogs
{
public enum InternalLogLevel
{
diff --git a/src/RedirectInternalLogs/RedirectInternalLogs.csproj b/src/MirrorInternalLogs/MirrorInternalLogs.csproj
similarity index 96%
rename from src/RedirectInternalLogs/RedirectInternalLogs.csproj
rename to src/MirrorInternalLogs/MirrorInternalLogs.csproj
index 78bfd84..cb46e52 100644
--- a/src/RedirectInternalLogs/RedirectInternalLogs.csproj
+++ b/src/MirrorInternalLogs/MirrorInternalLogs.csproj
@@ -7,8 +7,8 @@
{29571930-F2E9-45DC-BB65-5B60C2B16850}
Library
Properties
- RedirectInternalLogs
- RedirectInternalLogs
+ MirrorInternalLogs
+ MirrorInternalLogs
v3.5
512
@@ -72,7 +72,7 @@
-
+
diff --git a/src/RedirectInternalLogs/RedirectInternalLogsPatcher.cs b/src/MirrorInternalLogs/MirrorInternalLogsPatcher.cs
similarity index 90%
rename from src/RedirectInternalLogs/RedirectInternalLogsPatcher.cs
rename to src/MirrorInternalLogs/MirrorInternalLogsPatcher.cs
index 1f3b0f5..54b7889 100644
--- a/src/RedirectInternalLogs/RedirectInternalLogsPatcher.cs
+++ b/src/MirrorInternalLogs/MirrorInternalLogsPatcher.cs
@@ -7,18 +7,18 @@
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
+using MirrorInternalLogs.Platforms;
+using MirrorInternalLogs.Util;
using Mono.Cecil;
-using RedirectInternalLogs.Platforms;
-using RedirectInternalLogs.Util;
-namespace RedirectInternalLogs
+namespace MirrorInternalLogs
{
- internal static class RedirectInternalLogsPatcher
+ internal static class MirrorInternalLogsPatcher
{
- internal static ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource("RedirectInternalLogs");
+ internal static ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource("MirrorInternalLogs");
private static readonly ConfigFile Config =
- new ConfigFile(Path.Combine(Paths.ConfigPath, "RedirectInternalLogs.cfg"), true);
+ new ConfigFile(Path.Combine(Paths.ConfigPath, "MirrorInternalLogs.cfg"), true);
private static IPlatformPatcher patcher;
private static StreamWriter writer;
diff --git a/src/RedirectInternalLogs/Platforms/IPlatformPatcher.cs b/src/MirrorInternalLogs/Platforms/IPlatformPatcher.cs
similarity index 75%
rename from src/RedirectInternalLogs/Platforms/IPlatformPatcher.cs
rename to src/MirrorInternalLogs/Platforms/IPlatformPatcher.cs
index 26b9af9..704b2f3 100644
--- a/src/RedirectInternalLogs/Platforms/IPlatformPatcher.cs
+++ b/src/MirrorInternalLogs/Platforms/IPlatformPatcher.cs
@@ -1,6 +1,6 @@
using System;
-namespace RedirectInternalLogs.Platforms
+namespace MirrorInternalLogs.Platforms
{
internal interface IPlatformPatcher
{
diff --git a/src/RedirectInternalLogs/Platforms/X64Patcher.cs b/src/MirrorInternalLogs/Platforms/X64Patcher.cs
similarity index 94%
rename from src/RedirectInternalLogs/Platforms/X64Patcher.cs
rename to src/MirrorInternalLogs/Platforms/X64Patcher.cs
index 767249a..71e484b 100644
--- a/src/RedirectInternalLogs/Platforms/X64Patcher.cs
+++ b/src/MirrorInternalLogs/Platforms/X64Patcher.cs
@@ -1,9 +1,9 @@
using System;
using System.Runtime.InteropServices;
+using MirrorInternalLogs.Util;
using MonoMod.RuntimeDetour;
-using RedirectInternalLogs.Util;
-namespace RedirectInternalLogs.Platforms
+namespace MirrorInternalLogs.Platforms
{
internal class X64Patcher : X86Patcher
{
diff --git a/src/RedirectInternalLogs/Platforms/X86Patcher.cs b/src/MirrorInternalLogs/Platforms/X86Patcher.cs
similarity index 86%
rename from src/RedirectInternalLogs/Platforms/X86Patcher.cs
rename to src/MirrorInternalLogs/Platforms/X86Patcher.cs
index 27c112f..cf4eed5 100644
--- a/src/RedirectInternalLogs/Platforms/X86Patcher.cs
+++ b/src/MirrorInternalLogs/Platforms/X86Patcher.cs
@@ -1,10 +1,10 @@
using System;
using System.Linq;
using System.Runtime.InteropServices;
+using MirrorInternalLogs.Util;
using MonoMod.RuntimeDetour;
-using RedirectInternalLogs.Util;
-namespace RedirectInternalLogs.Platforms
+namespace MirrorInternalLogs.Platforms
{
internal class X86Patcher : IPlatformPatcher
{
@@ -65,18 +65,18 @@ private unsafe IntPtr FindMatch(IntPtr start, int maxSize)
.FirstOrDefault(m => m.res >= 0);
if (match == null)
{
- RedirectInternalLogsPatcher.Logger.LogWarning(
+ MirrorInternalLogsPatcher.Logger.LogWarning(
"No match found, cannot hook logging! Please report Unity version or game name to the developer!");
return IntPtr.Zero;
}
var ptr = (byte*) start.ToPointer();
- RedirectInternalLogsPatcher.Logger.LogDebug($"Found at {match.res:X} ({start.ToInt64() + match.res:X})");
+ MirrorInternalLogsPatcher.Logger.LogDebug($"Found at {match.res:X} ({start.ToInt64() + match.res:X})");
var offset = *(int*) (ptr + match.res + match.p.Length);
var jmpRva = unchecked((uint) (match.res + match.p.Length + sizeof(int)) + offset);
var addr = start.ToInt64() + jmpRva;
- RedirectInternalLogsPatcher.Logger.LogDebug($"Parsed offset: {offset:X}");
- RedirectInternalLogsPatcher.Logger.LogDebug(
+ MirrorInternalLogsPatcher.Logger.LogDebug($"Parsed offset: {offset:X}");
+ MirrorInternalLogsPatcher.Logger.LogDebug(
$"Jump RVA: {jmpRva:X}, memory address: {addr:X} (image base: {start.ToInt64():X})");
return new IntPtr(addr);
}
diff --git a/src/RedirectInternalLogs/Properties/AssemblyInfo.cs b/src/MirrorInternalLogs/Properties/AssemblyInfo.cs
similarity index 92%
rename from src/RedirectInternalLogs/Properties/AssemblyInfo.cs
rename to src/MirrorInternalLogs/Properties/AssemblyInfo.cs
index aaf66dc..3ab7111 100644
--- a/src/RedirectInternalLogs/Properties/AssemblyInfo.cs
+++ b/src/MirrorInternalLogs/Properties/AssemblyInfo.cs
@@ -4,11 +4,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("RedirectInternalLogs")]
+[assembly: AssemblyTitle("MirrorInternalLogs")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("RedirectInternalLogs")]
+[assembly: AssemblyProduct("MirrorInternalLogs")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/src/RedirectInternalLogs/Util/BytePattern.cs b/src/MirrorInternalLogs/Util/BytePattern.cs
similarity index 98%
rename from src/RedirectInternalLogs/Util/BytePattern.cs
rename to src/MirrorInternalLogs/Util/BytePattern.cs
index 1794729..64c9ed0 100644
--- a/src/RedirectInternalLogs/Util/BytePattern.cs
+++ b/src/MirrorInternalLogs/Util/BytePattern.cs
@@ -2,7 +2,7 @@
using System.Globalization;
using System.Linq;
-namespace RedirectInternalLogs.Util
+namespace MirrorInternalLogs.Util
{
internal class BytePattern
{
diff --git a/src/RedirectInternalLogs/Util/LibcHelper.cs b/src/MirrorInternalLogs/Util/LibcHelper.cs
similarity index 96%
rename from src/RedirectInternalLogs/Util/LibcHelper.cs
rename to src/MirrorInternalLogs/Util/LibcHelper.cs
index b93d78a..b31632f 100644
--- a/src/RedirectInternalLogs/Util/LibcHelper.cs
+++ b/src/MirrorInternalLogs/Util/LibcHelper.cs
@@ -4,7 +4,7 @@
using System.Text;
using MonoMod.Utils;
-namespace RedirectInternalLogs.Util
+namespace MirrorInternalLogs.Util
{
internal static class LibcHelper
{
diff --git a/src/RedirectInternalLogs/Util/StringExtensions.cs b/src/MirrorInternalLogs/Util/StringExtensions.cs
similarity index 90%
rename from src/RedirectInternalLogs/Util/StringExtensions.cs
rename to src/MirrorInternalLogs/Util/StringExtensions.cs
index 658aa1f..f06f137 100644
--- a/src/RedirectInternalLogs/Util/StringExtensions.cs
+++ b/src/MirrorInternalLogs/Util/StringExtensions.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace RedirectInternalLogs.Util
+namespace MirrorInternalLogs.Util
{
internal static class StringExtensions
{
diff --git a/src/RedirectInternalLogs/packages.config b/src/MirrorInternalLogs/packages.config
similarity index 100%
rename from src/RedirectInternalLogs/packages.config
rename to src/MirrorInternalLogs/packages.config