@@ -38,23 +38,23 @@ private void Form1_Load(object sender, EventArgs e)
3838
3939 void Start ( )
4040 {
41- SetStatus ( "Initializing.." ) ;
41+ SetStatus ( "Initializing . .." ) ;
4242 // check installations folder
4343 var root = GetUnityInstallationsRootFolder ( ) ;
4444 if ( root == null || root . Length == 0 )
4545 {
46- SetStatus ( "Missing root folder.." ) ;
46+ SetStatus ( "Missing root folder . .." ) ;
4747 AddUnityInstallationRootFolder ( ) ;
4848 SetStatus ( "Ready" ) ;
4949 }
5050
5151 LoadSettings ( ) ;
5252
5353 // scan installed unitys
54- bool foundedUnitys = ScanUnityInstallations ( ) ;
55- if ( foundedUnitys == false )
54+ bool foundUnitys = ScanUnityInstallations ( ) ;
55+ if ( foundUnitys == false )
5656 {
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 . .." ) ;
5858 UpdateRecentProjectsList ( ) ;
5959 tabControl1 . SelectedIndex = tabControl1 . TabCount - 1 ; // last tab is settings
6060 return ;
@@ -68,7 +68,7 @@ void Start()
6868 var commandLineArgs = args [ 1 ] ;
6969 if ( commandLineArgs == "-projectPath" )
7070 {
71- SetStatus ( "Launching from commandline.." ) ;
71+ SetStatus ( "Launching from commandline . .." ) ;
7272
7373 // path
7474 var projectPathArgument = args [ 2 ] ;
@@ -181,7 +181,7 @@ void AddUnityInstallationRootFolder()
181181
182182 bool ScanUnityInstallations ( )
183183 {
184- SetStatus ( "Scanning unity installations.." ) ;
184+ SetStatus ( "Scanning Unity installations . .." ) ;
185185
186186 // dictionary to keep version and path
187187 unityList . Clear ( ) ;
@@ -219,18 +219,18 @@ bool ScanUnityInstallations()
219219 } // all root folders
220220
221221
222- lbl_unityCount . Text = "Founded " + unityList . Count . ToString ( ) + " versions" ;
222+ lbl_unityCount . Text = "Found " + unityList . Count . ToString ( ) + " versions" ;
223223
224224 SetStatus ( "Finished scanning" ) ;
225225
226- // founded any unity installations?
226+ // found any Unity installations?
227227 return unityList . Count > 0 ;
228228 }
229229
230230
231231 void FilterRecentProject ( object sender , EventArgs e )
232232 {
233- SetStatus ( "Filtering recent projects list.." ) ;
233+ SetStatus ( "Filtering recent projects list . .." ) ;
234234 foreach ( DataGridViewRow recentProject in gridRecent . Rows )
235235 {
236236 if ( recentProject . Cells [ "_project" ] . Value . ToString ( ) . IndexOf ( tbSearchBar . Text , StringComparison . OrdinalIgnoreCase ) > - 1 )
@@ -249,7 +249,7 @@ void FilterRecentProject(object sender, EventArgs e)
249249 /// </summary>
250250 void UpdateRecentProjectsList ( )
251251 {
252- SetStatus ( "Updating recent projects list.." ) ;
252+ SetStatus ( "Updating recent projects list . .." ) ;
253253
254254 gridRecent . Rows . Clear ( ) ;
255255
@@ -298,7 +298,7 @@ void UpdateRecentProjectsList()
298298 {
299299 projectName = projectPath . Substring ( projectPath . LastIndexOf ( Path . AltDirectorySeparatorChar ) + 1 ) ;
300300 }
301- else // no path separator founded
301+ else // no path separator found
302302 {
303303 projectName = projectPath ;
304304 }
@@ -416,13 +416,13 @@ void LaunchProject(string projectPath, string version, bool openProject = true,
416416 }
417417 else // we dont have this version installed (or no version info available)
418418 {
419- SetStatus ( "Missing unity version: " + version ) ;
419+ SetStatus ( "Missing Unity version: " + version ) ;
420420 DisplayUpgradeDialog ( version , projectPath ) ;
421421 }
422422 }
423423 else // given path doesnt exists, strange
424424 {
425- SetStatus ( "Invalid Path : " + projectPath ) ;
425+ SetStatus ( "Invalid path : " + projectPath ) ;
426426 }
427427 }
428428
@@ -432,7 +432,7 @@ bool CheckCrashBackupScene(string projectPath)
432432 var recoveryFile = Path . Combine ( projectPath , "Temp" , "__Backupscenes" , "0.backup" ) ;
433433 if ( File . Exists ( recoveryFile ) )
434434 {
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 ) ;
436436 if ( dialogResult == DialogResult . Yes ) // restore
437437 {
438438 var restoreFolder = Path . Combine ( projectPath , "Assets" , "_Recovery" ) ;
@@ -453,15 +453,15 @@ bool CheckCrashBackupScene(string projectPath)
453453 cancelRunningUnity = true ;
454454 }
455455 }
456- else if ( dialogResult == DialogResult . Cancel ) // dont do restore, but run unity
456+ else if ( dialogResult == DialogResult . Cancel ) // dont do restore, but run Unity
457457 {
458458 cancelRunningUnity = true ;
459459 }
460460 }
461461 return cancelRunningUnity ;
462462 }
463463
464- // parse unity installer exe from release page
464+ // parse Unity installer exe from release page
465465 // thanks to https://github.com/softfruit
466466 string GetDownloadUrlForUnityVersion ( string releaseUrl )
467467 {
@@ -479,7 +479,7 @@ string GetDownloadUrlForUnityVersion(string releaseUrl)
479479 }
480480 else
481481 {
482- SetStatus ( "Cannot find UnityDownloadAssistant.exe for this version.. " ) ;
482+ SetStatus ( "Cannot find UnityDownloadAssistant.exe for this version." ) ;
483483 }
484484 }
485485 return url ;
@@ -499,7 +499,7 @@ void DownloadInBrowser(string url)
499499 }
500500 else // not found
501501 {
502- SetStatus ( "Error> Cannot find installer exe .. opening website instead" ) ;
502+ SetStatus ( "Error> Cannot find installer executable . .. opening website instead" ) ;
503503 Process . Start ( url + "#installer-exe-not-found" ) ;
504504 }
505505 }
@@ -519,7 +519,7 @@ string[] GetUnityInstallationsRootFolder()
519519 }
520520 catch ( Exception e )
521521 {
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 ) ;
523523
524524 // this doesnt work?
525525 Properties . Settings . Default . Reset ( ) ;
@@ -682,11 +682,11 @@ private void unityGridView_KeyDown(object sender, KeyEventArgs e)
682682 {
683683 switch ( e . KeyCode )
684684 {
685- case Keys . Return : // launch selected unity
685+ case Keys . Return : // launch selected Unity
686686 e . SuppressKeyPress = true ;
687687 LaunchSelectedUnity ( ) ;
688688 break ;
689- case Keys . F5 : // refresh installed unitys list
689+ case Keys . F5 : // refresh installed Unity versions list
690690 ScanUnityInstallations ( ) ;
691691 break ;
692692 default :
@@ -762,7 +762,7 @@ private void GridRecent_CellMouseDoubleClick(object sender, DataGridViewCellMous
762762 }
763763 }
764764
765- // set basefolder of all unity installations
765+ // set basefolder of all Unity installations
766766 private void btn_setinstallfolder_Click ( object sender , EventArgs e )
767767 {
768768 AddUnityInstallationRootFolder ( ) ;
@@ -922,7 +922,7 @@ private void btnOpenUpdateWebsite_Click(object sender, EventArgs e)
922922
923923 private void tabControl1_SelectedIndexChanged ( object sender , EventArgs e )
924924 {
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)
926926 if ( ( ( TabControl ) sender ) . SelectedIndex == 3 ) // FIXME: fixed index 3 for this tab..
927927 {
928928 if ( gridUnityUpdates . Rows . Count == 0 )
@@ -1027,7 +1027,7 @@ void UpgradeProject()
10271027 var selected = gridRecent . CurrentCell . RowIndex ;
10281028 if ( selected > - 1 )
10291029 {
1030- SetStatus ( "Upgrading project.." ) ;
1030+ SetStatus ( "Upgrading project . .." ) ;
10311031
10321032 var projectPath = gridRecent . Rows [ selected ] . Cells [ "_path" ] . Value . ToString ( ) ;
10331033 var currentVersion = Tools . GetProjectVersion ( projectPath ) ;
@@ -1067,7 +1067,7 @@ void DisplayUpgradeDialog(string currentVersion, string projectPath, bool launch
10671067 SetStatus ( "Cancelled project upgrade" ) ;
10681068 break ;
10691069 case DialogResult . Retry : // download and install missing version
1070- SetStatus ( "Download and Install missing version " + currentVersion ) ;
1070+ SetStatus ( "Download and install missing version " + currentVersion ) ;
10711071 string url = Tools . GetUnityReleaseURL ( currentVersion ) ;
10721072 if ( string . IsNullOrEmpty ( url ) == false )
10731073 {
@@ -1093,13 +1093,13 @@ private void FetchListOfUnityUpdates()
10931093 {
10941094 if ( isDownloadUnityList == true )
10951095 {
1096- SetStatus ( "We are already downloading.." ) ;
1096+ SetStatus ( "We are already downloading . .." ) ;
10971097 return ;
10981098 }
10991099 isDownloadUnityList = true ;
1100- SetStatus ( "Downloading list of unity versions.." ) ;
1100+ SetStatus ( "Downloading list of Unity versions . .." ) ;
11011101
1102- // download list of unity versions
1102+ // download list of Unity versions
11031103 using ( WebClient webClient = new WebClient ( ) )
11041104 {
11051105 webClient . DownloadStringCompleted += new DownloadStringCompletedEventHandler ( UnityVersionsListDownloaded ) ;
@@ -1111,7 +1111,7 @@ private void FetchListOfUnityUpdates()
11111111 private void UnityVersionsListDownloaded ( object sender , DownloadStringCompletedEventArgs e )
11121112 {
11131113 // TODO check for error..
1114- SetStatus ( "Downloading list of unity versions..Done " ) ;
1114+ SetStatus ( "Downloading list of Unity versions ... done " ) ;
11151115 isDownloadUnityList = false ;
11161116 // parse to list
11171117 var unityList = e . Result . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . None ) ;
@@ -1158,7 +1158,7 @@ void CheckUpdates()
11581158
11591159 void BrowseForExistingProjectFolder ( )
11601160 {
1161- folderBrowserDialog1 . Description = "Select Existing Project Folder " ;
1161+ folderBrowserDialog1 . Description = "Select existing project folder " ;
11621162 var d = folderBrowserDialog1 . ShowDialog ( ) ;
11631163 var projectPath = folderBrowserDialog1 . SelectedPath ;
11641164 if ( String . IsNullOrWhiteSpace ( projectPath ) == false && Directory . Exists ( projectPath ) == true )
@@ -1182,7 +1182,7 @@ void BrowseForExistingProjectFolder()
11821182 projectName = projectPath . Substring ( projectPath . LastIndexOf ( Path . AltDirectorySeparatorChar ) + 1 ) ;
11831183 Console . WriteLine ( "2" ) ;
11841184 }
1185- else // no path separator founded
1185+ else // no path separator found
11861186 {
11871187 projectName = projectPath ;
11881188 Console . WriteLine ( "3" ) ;
0 commit comments