File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Universal THCRAP Launcher Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ private async void MainForm_KeyUp(object sender, KeyEventArgs e)
102
102
{
103
103
case Keys . F12 :
104
104
throw new Exception ( "This exception is for Debug purposes. Please don't press F12." ) ;
105
- break ;
106
105
case Keys . F3 :
107
106
UpdateDisplayStrings ( ) ;
108
107
break ;
@@ -468,7 +467,7 @@ private void SetDefaultSettings()
468
467
$ "Configuration1.LastGame has been set to { Configuration1 . LastGame } ") ;
469
468
}
470
469
471
- if ( Configuration1 . SplitterDistance == null )
470
+ if ( Configuration1 . SplitterDistance == 0 )
472
471
{
473
472
Configuration1 . SplitterDistance = splitContainer1 . SplitterDistance ;
474
473
log . WriteLine ( $ "Configuration1.SplitterDistance has been set to { Configuration1 . SplitterDistance } ") ;
@@ -1129,8 +1128,15 @@ private bool InitChecks()
1129
1128
}
1130
1129
1131
1130
//Load language
1132
- Configuration . Lang = dconfig . Lang ?? "en.json" ;
1133
- Configuration . Lang = Configuration . Lang == "null" ? "en.json" : Configuration . Lang ;
1131
+ if ( dconfig == null || string . IsNullOrEmpty ( dconfig . Lang ) )
1132
+ {
1133
+ Configuration . Lang = "en.json" ;
1134
+ }
1135
+ else
1136
+ {
1137
+ Configuration . Lang = dconfig . Lang ;
1138
+ }
1139
+
1134
1140
I18N . UpdateLangResource ( I18N . I18NDir + Configuration . Lang ) ;
1135
1141
1136
1142
/* Windows Vista style JumpList requirements. This feature has been chosen to be NOT supported by UTL.
@@ -1312,7 +1318,6 @@ private static string GetPrettyTouhouName(string id, GameNameType nameType = Gam
1312
1318
return id ;
1313
1319
default :
1314
1320
throw new ArgumentOutOfRangeException ( ) ;
1315
- break ;
1316
1321
}
1317
1322
return Configuration1 . ShowGameId ? id + ": " + name : name ;
1318
1323
}
You can’t perform that action at this time.
0 commit comments