From 8b2007ed13feac30b479dd730267ba1b314e115a Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 20 Oct 2018 20:03:43 -0500 Subject: [PATCH] Added a way to disable the console --- BSIPA.sln | 1 + IPA.Injector/Injector.cs | 4 +++- README.md | 2 ++ Refs/UnityEngine.CoreModule.dll | Bin 539136 -> 539136 bytes 4 files changed, 6 insertions(+), 1 deletion(-) 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 0ac6d7fa449f26a5b313a6e1c1e7e8d3450bd904..7f6d20e3db27a520f292d50d4992b8bf73cda144 100644 GIT binary patch delta 51 zcmZqpqR{X~VL}J<>S>1?yIZ>%Tf3QByO~?NS+;hwdg?GTwqMm@1!6WJX5W5QheMke E06&)#`~Uy| delta 51 zcmZqpqR{X~VL}IUNzcK??$&O`)^4WOZsyi*maW~ao;r*S?N@bJftU@5*|%TS;n3y< E05p^nxBvhE