- added another special variable (application path) that can be used for variable substituion in ini file values

This commit is contained in:
Mark Vejvoda
2011-03-10 19:19:14 +00:00
parent 3758a4ba92
commit ae97a1306c
4 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ using namespace Shared::PlatformCommon;
namespace Shared{ namespace Util{
string Properties::applicationPath = "";
// =====================================================
// class Properties
// =====================================================
@@ -101,6 +103,9 @@ bool Properties::applyTagsToValue(string &value) {
replaceAll(value, "$USERNAME", (username != NULL ? username : ""));
replaceAll(value, "%%USERNAME%%", (username != NULL ? username : ""));
replaceAll(value, "$APPLICATIONPATH", Properties::applicationPath);
replaceAll(value, "%%APPLICATIONPATH%%", Properties::applicationPath);
return (originalValue != value);
}