File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ You can download the latest version of the patcher from the [Releases Page](http
25
25
26
26
Compatible with Windows (** 10** and ** 11** ), macOS, and Linux!
27
27
28
+ ### Debug
29
+ In order to troubleshoot any issues, you can use the ` --debug ` flag while running the patcher to have extended logs.
30
+ ```
31
+ > <patcher executable> --debug
32
+ ```
33
+
28
34
## Compiling
29
35
30
36
Clone or download the repository, and open the solution file in Visual Studio. You will need to make sure you have .NET 6.0 set up to compile it.
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class WiiLink_Patcher
44
44
static string curCmd = "" ;
45
45
static readonly string curDir = Directory . GetCurrentDirectory ( ) ;
46
46
static readonly string tempDir = Path . Join ( Path . GetTempPath ( ) , "WiiLink_Patcher" ) ;
47
- static readonly bool DEBUG_MODE = false ;
47
+ static bool DEBUG_MODE = false ;
48
48
static PatcherLanguage patcherLang = PatcherLanguage . en ;
49
49
static JObject ? localizedText = null ;
50
50
@@ -3977,6 +3977,12 @@ static void ExitApp()
3977
3977
3978
3978
static async System . Threading . Tasks . Task Main ( string [ ] args )
3979
3979
{
3980
+ // Check for debugging flag
3981
+ bool debugArgExists = Array . Exists ( args , element => element . ToLower ( ) == "--debug" ) ;
3982
+
3983
+ // Set DEBUG_MODE
3984
+ DEBUG_MODE = debugArgExists ;
3985
+
3980
3986
// Set console encoding to UTF-8
3981
3987
Console . OutputEncoding = Encoding . UTF8 ;
3982
3988
You can’t perform that action at this time.
0 commit comments