public void writeWarning(WhiskeyEditor.Backend.WhiskeyWarning message) { if (TopView != null) { TopView.writeWarning(message); } }
/// <summary> /// Delete and recreate the build directory structure /// </summary> public void cleanProject() { try { if (Directory.Exists(PathBuild)) { Directory.Delete(PathBuild, true); } DirectoryInfo buildInfo = Directory.CreateDirectory(PathBuild); Directory.CreateDirectory(PathBuildLib); Directory.CreateDirectory(PathBuildMedia); Directory.CreateDirectory(PathBuildStates); } catch (Exception e) { WhiskeyWarning we = new WhiskeyWarning("The game is already running. Please close it, and try again.", e.Message); throw we; } }