TerrariaLocalizationPacker/MainWindow.xaml.cs
/**<summary>Checks if the path is valid.</summary>*/
Checks if the path is valid.
Checks if the path is valid .
private bool ValidPathTest(bool checkExists = true) {
			if (LocalizationPacker.ExePath == "") {
				TriggerMessageBox.Show(this, MessageIcon.Warning, "The Terraria path cannot be empty!", "Invalid Path");
				return false;
			}
			try {
				if (!File.Exists(LocalizationPacker.ExePath) && checkExists) {
					TriggerMessageBox.Show(this, MessageIcon.Warning, "Could not find Terraria executable!", "Missing Exe");
					return false;
				}
			}
			catch (ArgumentException) {
				TriggerMessageBox.Show(this, MessageIcon.Warning, "You must enter a valid Terraria path!", "Invalid Path");
				return false;
			}
			return true;
		}
private bool ValidPathTest ( bool checkExists = true ) { if ( LocalizationPacker . ExePath == " " ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " , " " ) ; return false ; } try { if ( ! File . Exists ( LocalizationPacker . ExePath ) && checkExists ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " , " " ) ; return false ; } } catch ( ArgumentException ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " , " " ) ; return false ; } return true ; }
Checks if the path is valid.
Checks if the path is valid .
checkExists
bool