diff --git a/BSIPA.sln b/BSIPA.sln index 22e920f1..560c02bc 100644 --- a/BSIPA.sln +++ b/BSIPA.sln @@ -36,6 +36,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4D6639A2-BD39-4F9B-AF7F-8E5F3B88243D}" ProjectSection(SolutionItems) = preProject appveyor.yml = appveyor.yml + README.md = README.md EndProjectSection EndProject Global diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index f96b602a..714011bd 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -6,6 +6,7 @@ using Mono.Cecil; using Mono.Cecil.Cil; using System; using System.Collections.Generic; +using System.Linq; using System.IO; using System.Reflection; using System.Runtime.InteropServices; @@ -26,7 +27,8 @@ namespace IPA.Injector try { - Windows.WinConsole.Initialize(); + if (!Environment.GetCommandLineArgs().Contains("--no-console")) + Windows.WinConsole.Initialize(); SetupLibraryLoading(); diff --git a/README.md b/README.md index 43cb44d9..2a014edb 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ Beat Saber IPA - The mod injector tailored for Beat Saber A console window should open before the game starts if the installation was successful. +To disable this console window, pass `--no-console` to the game. + ## How To Uninstall 1. Drag & drop the game exe onto **IPA.exe** while holding Alt diff --git a/Refs/UnityEngine.CoreModule.dll b/Refs/UnityEngine.CoreModule.dll index 0ac6d7fa..7f6d20e3 100644 Binary files a/Refs/UnityEngine.CoreModule.dll and b/Refs/UnityEngine.CoreModule.dll differ