From 817262e113ba3fe664aca0bfcd1e9e633400ab23 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 24 Mar 2016 17:46:47 -0700 Subject: [PATCH] Add check for import-only --- DATabase/Core/Generate.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DATabase/Core/Generate.cs b/DATabase/Core/Generate.cs index 25511bd8..8bf4daab 100644 --- a/DATabase/Core/Generate.cs +++ b/DATabase/Core/Generate.cs @@ -40,6 +40,14 @@ namespace DATabase public bool Export() { + // Check to see if the source is an import-only. If so, tell the user and exit + int id = 0; + if (_sources != "" && Int32.TryParse(_sources, out id) && id <= 14) + { + Console.WriteLine("This source is import-only so a DAT cannot be created. We apologize for the inconvenience."); + return false; + } + // Get the system name, if applicable string systemname = ""; if (_systems != "")