@@ -16,18 +16,21 @@ public Config()
1616 {
1717 Registry = new RegistryEditor ( @"SOFTWARE\BorderlessMinecraft" ) ; //open the registry in this location
1818
19- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( StartOnBoot ) ) , out bool value1 ) )
20- _startOnBoot = value1 ;
21- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( StartMinimized ) ) , out bool value2 ) )
22- _startMinimized = value2 ;
23- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( MinimizeToTray ) ) , out bool value3 ) )
24- _minimizeToTray = value3 ;
25- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( AutomaticBorderless ) ) , out bool value4 ) )
26- _automaticBorderless = value4 ;
27- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( PreserveTaskBar ) ) , out bool value5 ) )
28- _preserveTaskBar = value5 ;
29- if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( ShowAllClients ) ) , out bool value6 ) )
30- _showAllClients = value6 ;
19+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( StartOnBoot ) ) , out bool startOnBoot ) )
20+ _startOnBoot = startOnBoot ;
21+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( StartMinimized ) ) , out bool startMinimized ) )
22+ _startMinimized = startMinimized ;
23+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( MinimizeToTray ) ) , out bool minimizeToTray ) )
24+ _minimizeToTray = minimizeToTray ;
25+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( AutomaticBorderless ) ) , out bool automaticBorderless ) )
26+ _automaticBorderless = automaticBorderless ;
27+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( PreserveTaskBar ) ) , out bool preserveTaskBar ) )
28+ _preserveTaskBar = preserveTaskBar ;
29+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( ShowAllClients ) ) , out bool showAllClients ) )
30+ _showAllClients = showAllClients ;
31+ if ( bool . TryParse ( ( string ) Registry . GetKeyValue ( nameof ( Advanced ) ) , out bool advanced ) )
32+ _advanced = advanced ;
33+ _advancedParams = "" + ( string ) Registry . GetKeyValue ( nameof ( AdvancedParams ) ) ;
3134 }
3235
3336 public bool StartOnBoot
@@ -88,5 +91,23 @@ public bool ShowAllClients
8891 }
8992 }
9093 private bool _showAllClients ;
94+ public bool Advanced
95+ {
96+ get => _advanced ; set
97+ {
98+ _advanced = value ;
99+ Registry . SetKeyValue ( nameof ( Advanced ) , value ) ;
100+ }
101+ }
102+ private bool _advanced ;
103+ public string AdvancedParams
104+ {
105+ get => _advancedParams ; set
106+ {
107+ _advancedParams = value ;
108+ Registry . SetKeyValue ( nameof ( AdvancedParams ) , value ) ;
109+ }
110+ }
111+ private string _advancedParams ;
91112 }
92113}
0 commit comments