diff --git a/ControllerFixer/ControllerFixer.csproj b/ControllerFixer/ControllerFixer.csproj new file mode 100644 index 0000000..1904053 --- /dev/null +++ b/ControllerFixer/ControllerFixer.csproj @@ -0,0 +1,31 @@ + + + + netstandard2.1 + ControllerFixer + My first plugin + 1.0.0 + true + latest + + + + + + + + + + + + + + + + ..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Maniac\maniac_Data\Managed\Assembly-CSharp.dll + + + ..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Maniac\maniac_Data\Managed\Assembly-CSharp-firstpass.dll + + + diff --git a/ControllerFixer/NuGet.Config b/ControllerFixer/NuGet.Config new file mode 100644 index 0000000..1864ded --- /dev/null +++ b/ControllerFixer/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ControllerFixer/Plugin.cs b/ControllerFixer/Plugin.cs new file mode 100644 index 0000000..410158c --- /dev/null +++ b/ControllerFixer/Plugin.cs @@ -0,0 +1,23 @@ +using BepInEx; +using HarmonyLib; + +namespace ControllerFixer +{ + [BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] + public class Plugin : BaseUnityPlugin + { + private void Awake() + { + // Plugin startup logic + Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!"); + } + } + [HarmonyPatch(typeof(SteamUtils), "IsSteamDeck")] + public static class SteamUtils_IsSteamDeck_Patch + { + public static void Postfix(ref bool __result) + { + __result = true; + } + } +}