File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed 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