mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +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:
parent
05888a09fa
commit
806d99d777
2 changed files with 8 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,11 @@ public:
|
|||
|
||||
/** The suffix to use for your properties file.
|
||||
It doesn't really matter what this is - you may want to use ".settings" or
|
||||
".properties" or something.
|
||||
".properties" or something. If the suffix includes the prefixing dot (for example
|
||||
".settings") then the suffix of applicationName will be replaced with your suffix
|
||||
("MyApp.exe" -> "MyApp.settings"). If your filenameSuffix does NOT include the dot,
|
||||
then the suffix will be appended to the applicationName ("MyApp.exe" ->
|
||||
"MyApp.settings.exe").
|
||||
*/
|
||||
String filenameSuffix;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue