1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Added an option to have a properties file suffix be appended to the full application name (instead of replacing it)

This commit is contained in:
hogliux 2016-12-09 17:13:35 +00:00
parent 05888a09fa
commit 806d99d777
2 changed files with 8 additions and 3 deletions

View file

@ -98,8 +98,9 @@ File PropertiesFile::Options::getDefaultFile() const
: applicationName);
#endif
return dir.getChildFile (applicationName)
.withFileExtension (filenameSuffix);
return (filenameSuffix.startsWithChar (L'.')
? dir.getChildFile (applicationName).withFileExtension (filenameSuffix)
: dir.getChildFile (applicationName + "." + filenameSuffix));
}