diff --git a/WindowFocusCheckFix/Main.cs b/WindowFocusCheckFix/Main.cs deleted file mode 100644 index 24d5de5..0000000 --- a/WindowFocusCheckFix/Main.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -using ABI_RC.Core; -using HarmonyLib; -using MelonLoader; -using UnityEngine; - -namespace NAK.WindowFocusCheckFix; - -public class WindowFocusCheckFixMod : MelonMod -{ - #region Melon Events - - public override void OnInitializeMelon() - { - #region WindowFocusManager Patches - - HarmonyInstance.Patch( - typeof(WindowFocusManager).GetMethod(nameof(WindowFocusManager.IsWindowFocused), - BindingFlags.NonPublic | BindingFlags.Static), - prefix: new HarmonyMethod(typeof(WindowFocusCheckFixMod).GetMethod(nameof(OnPreWindowFocusManagerIsWindowFocused), - BindingFlags.NonPublic | BindingFlags.Static)) - ); - - #endregion WindowFocusManager Patches - } - - #endregion Melon Events - - #region Harmony Patches - - // ReSharper disable once RedundantAssignment - private static bool OnPreWindowFocusManagerIsWindowFocused(ref bool __result) - { - __result = Application.isFocused; // use Unity method instead - return false; - } - - #endregion Harmony Patches -} \ No newline at end of file diff --git a/WindowFocusCheckFix/Properties/AssemblyInfo.cs b/WindowFocusCheckFix/Properties/AssemblyInfo.cs deleted file mode 100644 index 1f95200..0000000 --- a/WindowFocusCheckFix/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using MelonLoader; -using NAK.WindowFocusCheckFix.Properties; -using System.Reflection; - -[assembly: AssemblyVersion(AssemblyInfoParams.Version)] -[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)] -[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)] -[assembly: AssemblyTitle(nameof(NAK.WindowFocusCheckFix))] -[assembly: AssemblyCompany(AssemblyInfoParams.Author)] -[assembly: AssemblyProduct(nameof(NAK.WindowFocusCheckFix))] - -[assembly: MelonInfo( - typeof(NAK.WindowFocusCheckFix.WindowFocusCheckFixMod), - nameof(NAK.WindowFocusCheckFix), - AssemblyInfoParams.Version, - AssemblyInfoParams.Author, - downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/WindowFocusCheckFix" -)] - -[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")] -[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)] -[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)] -[assembly: MelonColor(255, 246, 25, 99)] // red-pink -[assembly: MelonAuthorColor(255, 158, 21, 32)] // red -[assembly: HarmonyDontPatchAll] - -namespace NAK.WindowFocusCheckFix.Properties; -internal static class AssemblyInfoParams -{ - public const string Version = "1.0.0"; - public const string Author = "NotAKidoS"; -} \ No newline at end of file diff --git a/WindowFocusCheckFix/README.md b/WindowFocusCheckFix/README.md deleted file mode 100644 index 5c2dbe0..0000000 --- a/WindowFocusCheckFix/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# WindowFocusCheckFix - -Fixes window focus check on specific Linux distribution. ????!??!?! - ---- - -Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI. -https://documentation.abinteractive.net/official/legal/tos/#7-modding-our-games - -> This mod is an independent creation not affiliated with, supported by, or approved by Alpha Blend Interactive. - -> Use of this mod is done so at the user's own risk and the creator cannot be held responsible for any issues arising from its use. - -> To the best of my knowledge, I have adhered to the Modding Guidelines established by Alpha Blend Interactive. diff --git a/WindowFocusCheckFix/WindowFocusCheckFix.csproj b/WindowFocusCheckFix/WindowFocusCheckFix.csproj deleted file mode 100644 index 5a8badc..0000000 --- a/WindowFocusCheckFix/WindowFocusCheckFix.csproj +++ /dev/null @@ -1,6 +0,0 @@ - - - - YouAreMineNow - - diff --git a/WindowFocusCheckFix/format.json b/WindowFocusCheckFix/format.json deleted file mode 100644 index 9fe9458..0000000 --- a/WindowFocusCheckFix/format.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "_id": -1, - "name": "WindowFocusCheckFix", - "modversion": "1.0.0", - "gameversion": "2025r179", - "loaderversion": "0.6.1", - "modtype": "Mod", - "author": "NotAKidoS", - "description": "Fixes window focus check on specific Linux distribution. ????!??!?!\n", - "searchtags": [ - "prop", - "spawn", - "friend", - "load" - ], - "requirements": [ - "None" - ], - "downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r46/WindowFocusCheckFix.dll", - "sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/WindowFocusCheckFix/", - "changelog": "- Initial Release", - "embedcolor": "#00FFFF" -} \ No newline at end of file