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 ValidPathTest2(bool input) {
			string directory = input ? LocalizationPacker.InputDirectory : LocalizationPacker.OutputDirectory;
			string name = input ? "Repack" : "Unpack";
			if (directory == "") {
				TriggerMessageBox.Show(this, MessageIcon.Warning, "The " + name + " folder path cannot be empty!", "Invalid Path");
				return false;
			}
			try {
				if (!Directory.Exists(directory)) {
					TriggerMessageBox.Show(this, MessageIcon.Warning, "Could not find " + name + " folder!", "Invalid Path");
					return false;
				}
			}
			catch (ArgumentException) {
				TriggerMessageBox.Show(this, MessageIcon.Warning, "You must enter a valid " + name + " folder path!", "Invalid Path");
				return false;
			}
			return true;
		}
private bool ValidPathTest2 ( bool input ) { string directory = input ? LocalizationPacker . InputDirectory : LocalizationPacker . OutputDirectory ; string name = input ? " " : " " ; if ( directory == " " ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " + name + " " , " " ) ; return false ; } try { if ( ! Directory . Exists ( directory ) ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " + name + " " , " " ) ; return false ; } } catch ( ArgumentException ) { TriggerMessageBox . Show ( this , MessageIcon . Warning , " " + name + " " , " " ) ; return false ; } return true ; }
Checks if the path is valid.
Checks if the path is valid .
input
bool