@@ -38,23 +38,23 @@ private void Form1_Load(object sender, EventArgs e)
38
38
39
39
void Start ( )
40
40
{
41
- SetStatus ( "Initializing.." ) ;
41
+ SetStatus ( "Initializing . .." ) ;
42
42
// check installations folder
43
43
var root = GetUnityInstallationsRootFolder ( ) ;
44
44
if ( root == null || root . Length == 0 )
45
45
{
46
- SetStatus ( "Missing root folder.." ) ;
46
+ SetStatus ( "Missing root folder . .." ) ;
47
47
AddUnityInstallationRootFolder ( ) ;
48
48
SetStatus ( "Ready" ) ;
49
49
}
50
50
51
51
LoadSettings ( ) ;
52
52
53
53
// scan installed unitys
54
- bool foundedUnitys = ScanUnityInstallations ( ) ;
55
- if ( foundedUnitys == false )
54
+ bool foundUnitys = ScanUnityInstallations ( ) ;
55
+ if ( foundUnitys == false )
56
56
{
57
- SetStatus ( "Error> Did not found any Unity installations, try setting correct root folder.." ) ;
57
+ SetStatus ( "Error> Did not find any Unity installations, try setting correct root folder . .." ) ;
58
58
UpdateRecentProjectsList ( ) ;
59
59
tabControl1 . SelectedIndex = tabControl1 . TabCount - 1 ; // last tab is settings
60
60
return ;
@@ -68,7 +68,7 @@ void Start()
68
68
var commandLineArgs = args [ 1 ] ;
69
69
if ( commandLineArgs == "-projectPath" )
70
70
{
71
- SetStatus ( "Launching from commandline.." ) ;
71
+ SetStatus ( "Launching from commandline . .." ) ;
72
72
73
73
// path
74
74
var projectPathArgument = args [ 2 ] ;
@@ -181,7 +181,7 @@ void AddUnityInstallationRootFolder()
181
181
182
182
bool ScanUnityInstallations ( )
183
183
{
184
- SetStatus ( "Scanning unity installations.." ) ;
184
+ SetStatus ( "Scanning Unity installations . .." ) ;
185
185
186
186
// dictionary to keep version and path
187
187
unityList . Clear ( ) ;
@@ -219,18 +219,18 @@ bool ScanUnityInstallations()
219
219
} // all root folders
220
220
221
221
222
- lbl_unityCount . Text = "Founded " + unityList . Count . ToString ( ) + " versions" ;
222
+ lbl_unityCount . Text = "Found " + unityList . Count . ToString ( ) + " versions" ;
223
223
224
224
SetStatus ( "Finished scanning" ) ;
225
225
226
- // founded any unity installations?
226
+ // found any Unity installations?
227
227
return unityList . Count > 0 ;
228
228
}
229
229
230
230
231
231
void FilterRecentProject ( object sender , EventArgs e )
232
232
{
233
- SetStatus ( "Filtering recent projects list.." ) ;
233
+ SetStatus ( "Filtering recent projects list . .." ) ;
234
234
foreach ( DataGridViewRow recentProject in gridRecent . Rows )
235
235
{
236
236
if ( recentProject . Cells [ "_project" ] . Value . ToString ( ) . IndexOf ( tbSearchBar . Text , StringComparison . OrdinalIgnoreCase ) > - 1 )
@@ -249,7 +249,7 @@ void FilterRecentProject(object sender, EventArgs e)
249
249
/// </summary>
250
250
void UpdateRecentProjectsList ( )
251
251
{
252
- SetStatus ( "Updating recent projects list.." ) ;
252
+ SetStatus ( "Updating recent projects list . .." ) ;
253
253
254
254
gridRecent . Rows . Clear ( ) ;
255
255
@@ -298,7 +298,7 @@ void UpdateRecentProjectsList()
298
298
{
299
299
projectName = projectPath . Substring ( projectPath . LastIndexOf ( Path . AltDirectorySeparatorChar ) + 1 ) ;
300
300
}
301
- else // no path separator founded
301
+ else // no path separator found
302
302
{
303
303
projectName = projectPath ;
304
304
}
@@ -416,13 +416,13 @@ void LaunchProject(string projectPath, string version, bool openProject = true,
416
416
}
417
417
else // we dont have this version installed (or no version info available)
418
418
{
419
- SetStatus ( "Missing unity version: " + version ) ;
419
+ SetStatus ( "Missing Unity version: " + version ) ;
420
420
DisplayUpgradeDialog ( version , projectPath ) ;
421
421
}
422
422
}
423
423
else // given path doesnt exists, strange
424
424
{
425
- SetStatus ( "Invalid Path : " + projectPath ) ;
425
+ SetStatus ( "Invalid path : " + projectPath ) ;
426
426
}
427
427
}
428
428
@@ -432,7 +432,7 @@ bool CheckCrashBackupScene(string projectPath)
432
432
var recoveryFile = Path . Combine ( projectPath , "Temp" , "__Backupscenes" , "0.backup" ) ;
433
433
if ( File . Exists ( recoveryFile ) )
434
434
{
435
- DialogResult dialogResult = MessageBox . Show ( "Crash recovery scene founded , do you want to copy it into Assets/_Recovery/-folder?" , "UnityLauncher - Scene Recovery" , MessageBoxButtons . YesNoCancel ) ;
435
+ DialogResult dialogResult = MessageBox . Show ( "Crash recovery scene found , do you want to copy it into Assets/_Recovery/-folder?" , "UnityLauncher - Scene Recovery" , MessageBoxButtons . YesNoCancel ) ;
436
436
if ( dialogResult == DialogResult . Yes ) // restore
437
437
{
438
438
var restoreFolder = Path . Combine ( projectPath , "Assets" , "_Recovery" ) ;
@@ -453,15 +453,15 @@ bool CheckCrashBackupScene(string projectPath)
453
453
cancelRunningUnity = true ;
454
454
}
455
455
}
456
- else if ( dialogResult == DialogResult . Cancel ) // dont do restore, but run unity
456
+ else if ( dialogResult == DialogResult . Cancel ) // dont do restore, but run Unity
457
457
{
458
458
cancelRunningUnity = true ;
459
459
}
460
460
}
461
461
return cancelRunningUnity ;
462
462
}
463
463
464
- // parse unity installer exe from release page
464
+ // parse Unity installer exe from release page
465
465
// thanks to https://github.com/softfruit
466
466
string GetDownloadUrlForUnityVersion ( string releaseUrl )
467
467
{
@@ -479,7 +479,7 @@ string GetDownloadUrlForUnityVersion(string releaseUrl)
479
479
}
480
480
else
481
481
{
482
- SetStatus ( "Cannot find UnityDownloadAssistant.exe for this version.. " ) ;
482
+ SetStatus ( "Cannot find UnityDownloadAssistant.exe for this version." ) ;
483
483
}
484
484
}
485
485
return url ;
@@ -499,7 +499,7 @@ void DownloadInBrowser(string url)
499
499
}
500
500
else // not found
501
501
{
502
- SetStatus ( "Error> Cannot find installer exe .. opening website instead" ) ;
502
+ SetStatus ( "Error> Cannot find installer executable . .. opening website instead" ) ;
503
503
Process . Start ( url + "#installer-exe-not-found" ) ;
504
504
}
505
505
}
@@ -519,7 +519,7 @@ string[] GetUnityInstallationsRootFolder()
519
519
}
520
520
catch ( Exception e )
521
521
{
522
- MessageBox . Show ( "Rare Error while checking unity installation folder settings: " + e . Message , "UnityLauncher" , MessageBoxButtons . OK ) ;
522
+ MessageBox . Show ( "Rare error while checking Unity installation folder settings: " + e . Message , "UnityLauncher" , MessageBoxButtons . OK ) ;
523
523
524
524
// this doesnt work?
525
525
Properties . Settings . Default . Reset ( ) ;
@@ -682,11 +682,11 @@ private void unityGridView_KeyDown(object sender, KeyEventArgs e)
682
682
{
683
683
switch ( e . KeyCode )
684
684
{
685
- case Keys . Return : // launch selected unity
685
+ case Keys . Return : // launch selected Unity
686
686
e . SuppressKeyPress = true ;
687
687
LaunchSelectedUnity ( ) ;
688
688
break ;
689
- case Keys . F5 : // refresh installed unitys list
689
+ case Keys . F5 : // refresh installed Unity versions list
690
690
ScanUnityInstallations ( ) ;
691
691
break ;
692
692
default :
@@ -762,7 +762,7 @@ private void GridRecent_CellMouseDoubleClick(object sender, DataGridViewCellMous
762
762
}
763
763
}
764
764
765
- // set basefolder of all unity installations
765
+ // set basefolder of all Unity installations
766
766
private void btn_setinstallfolder_Click ( object sender , EventArgs e )
767
767
{
768
768
AddUnityInstallationRootFolder ( ) ;
@@ -922,7 +922,7 @@ private void btnOpenUpdateWebsite_Click(object sender, EventArgs e)
922
922
923
923
private void tabControl1_SelectedIndexChanged ( object sender , EventArgs e )
924
924
{
925
- // if enter Updates tab, then automatically fetch list of unity versions if list is empty (not fetched)
925
+ // if enter Updates tab, then automatically fetch list of Unity versions if list is empty (not fetched)
926
926
if ( ( ( TabControl ) sender ) . SelectedIndex == 3 ) // FIXME: fixed index 3 for this tab..
927
927
{
928
928
if ( gridUnityUpdates . Rows . Count == 0 )
@@ -1027,7 +1027,7 @@ void UpgradeProject()
1027
1027
var selected = gridRecent . CurrentCell . RowIndex ;
1028
1028
if ( selected > - 1 )
1029
1029
{
1030
- SetStatus ( "Upgrading project.." ) ;
1030
+ SetStatus ( "Upgrading project . .." ) ;
1031
1031
1032
1032
var projectPath = gridRecent . Rows [ selected ] . Cells [ "_path" ] . Value . ToString ( ) ;
1033
1033
var currentVersion = Tools . GetProjectVersion ( projectPath ) ;
@@ -1067,7 +1067,7 @@ void DisplayUpgradeDialog(string currentVersion, string projectPath, bool launch
1067
1067
SetStatus ( "Cancelled project upgrade" ) ;
1068
1068
break ;
1069
1069
case DialogResult . Retry : // download and install missing version
1070
- SetStatus ( "Download and Install missing version " + currentVersion ) ;
1070
+ SetStatus ( "Download and install missing version " + currentVersion ) ;
1071
1071
string url = Tools . GetUnityReleaseURL ( currentVersion ) ;
1072
1072
if ( string . IsNullOrEmpty ( url ) == false )
1073
1073
{
@@ -1093,13 +1093,13 @@ private void FetchListOfUnityUpdates()
1093
1093
{
1094
1094
if ( isDownloadUnityList == true )
1095
1095
{
1096
- SetStatus ( "We are already downloading.." ) ;
1096
+ SetStatus ( "We are already downloading . .." ) ;
1097
1097
return ;
1098
1098
}
1099
1099
isDownloadUnityList = true ;
1100
- SetStatus ( "Downloading list of unity versions.." ) ;
1100
+ SetStatus ( "Downloading list of Unity versions . .." ) ;
1101
1101
1102
- // download list of unity versions
1102
+ // download list of Unity versions
1103
1103
using ( WebClient webClient = new WebClient ( ) )
1104
1104
{
1105
1105
webClient . DownloadStringCompleted += new DownloadStringCompletedEventHandler ( UnityVersionsListDownloaded ) ;
@@ -1111,7 +1111,7 @@ private void FetchListOfUnityUpdates()
1111
1111
private void UnityVersionsListDownloaded ( object sender , DownloadStringCompletedEventArgs e )
1112
1112
{
1113
1113
// TODO check for error..
1114
- SetStatus ( "Downloading list of unity versions..Done " ) ;
1114
+ SetStatus ( "Downloading list of Unity versions ... done " ) ;
1115
1115
isDownloadUnityList = false ;
1116
1116
// parse to list
1117
1117
var unityList = e . Result . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . None ) ;
@@ -1158,7 +1158,7 @@ void CheckUpdates()
1158
1158
1159
1159
void BrowseForExistingProjectFolder ( )
1160
1160
{
1161
- folderBrowserDialog1 . Description = "Select Existing Project Folder " ;
1161
+ folderBrowserDialog1 . Description = "Select existing project folder " ;
1162
1162
var d = folderBrowserDialog1 . ShowDialog ( ) ;
1163
1163
var projectPath = folderBrowserDialog1 . SelectedPath ;
1164
1164
if ( String . IsNullOrWhiteSpace ( projectPath ) == false && Directory . Exists ( projectPath ) == true )
@@ -1182,7 +1182,7 @@ void BrowseForExistingProjectFolder()
1182
1182
projectName = projectPath . Substring ( projectPath . LastIndexOf ( Path . AltDirectorySeparatorChar ) + 1 ) ;
1183
1183
Console . WriteLine ( "2" ) ;
1184
1184
}
1185
- else // no path separator founded
1185
+ else // no path separator found
1186
1186
{
1187
1187
projectName = projectPath ;
1188
1188
Console . WriteLine ( "3" ) ;
0 commit comments