mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed paths containing ${user.home} not working in Android Studio
This commit is contained in:
parent
a2b663de67
commit
cd67db7478
1 changed files with 7 additions and 6 deletions
|
|
@ -245,14 +245,15 @@ private:
|
|||
|
||||
static String sanitisePath (String path)
|
||||
{
|
||||
if (path.startsWith ("~"))
|
||||
{
|
||||
const String homeFolder (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
|
||||
return expandHomeFolderToken (path).replace ("\\", "\\\\");
|
||||
}
|
||||
|
||||
path = path.replaceSection (0, 1, homeFolder);
|
||||
}
|
||||
static String expandHomeFolderToken (const String& path)
|
||||
{
|
||||
String homeFolder = File::getSpecialLocation (File::userHomeDirectory).getFullPathName();
|
||||
|
||||
return path.replace ("\\", "\\\\");
|
||||
return path.replace ("${user.home}", homeFolder)
|
||||
.replace ("~", homeFolder);
|
||||
}
|
||||
|
||||
void writeLocalDotProperties (const File& folder) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue