Skip to content

Commit

Permalink
Heavy exporter: make sure project name is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 27, 2023
1 parent f357d77 commit a4cd180
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Heavy/ExporterBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,13 @@ struct ExporterBase : public Component

void startExport(File const& outDir)
{

auto patchPath = patchFile.getFullPathName();
auto const& outPath = outDir.getFullPathName();
auto projectTitle = projectNameValue.toString();
auto projectCopyright = projectCopyrightValue.toString();

if (projectTitle.isEmpty())
projectTitle = "Untitled";
if (!projectTitle.unquoted().containsNonWhitespaceChars())
projectTitle = patchFile.getFileNameWithoutExtension();

// Add file location to search paths
auto searchPaths = StringArray { patchFile.getParentDirectory().getFullPathName() };
Expand Down

0 comments on commit a4cd180

Please sign in to comment.