summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_env_msvc.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-04-19 13:09:06 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2014-04-19 13:09:06 +0100
commitc123829c0a8d483f4c53c2231e04c51e41e604df (patch)
treeb07d925792c65346b0f2e346ce2b8c94a9c549dc /gtk2_ardour/bundle_env_msvc.cc
parent4fd1a5edd57e9f0422c140986668d1fccba4bc82 (diff)
Save any cached fonts into our dedicated cache folder (msvc)
(modifies the appropriate entry in 'fonts.conf')
Diffstat (limited to 'gtk2_ardour/bundle_env_msvc.cc')
-rw-r--r--gtk2_ardour/bundle_env_msvc.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/bundle_env_msvc.cc b/gtk2_ardour/bundle_env_msvc.cc
index bde3ed050a..6e56543728 100644
--- a/gtk2_ardour/bundle_env_msvc.cc
+++ b/gtk2_ardour/bundle_env_msvc.cc
@@ -164,6 +164,13 @@ bool succeeded = false;
// Replace the first occurrence of our token with the required string
i->erase(token_begin, ((token_end+1)-token_begin));
i->insert(token_begin, str_replace_with);
+ } else if (0 == str_to_replace.compare("$(LOCALCACHEDIR)")){
+ // Replace our token with the path to our Ardour cache directory
+ str_replace_with = user_cache_directory();
+
+ // Replace the first occurrence of our token with the required string
+ i->erase(token_begin, ((token_end+1)-token_begin));
+ i->insert(token_begin, str_replace_with);
} else {
// Assume that our token represents an environment variable
std::string envvar_name = str_to_replace.substr(2, str_to_replace.length()-3);