mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 08:22:50 +02:00
- added another special variable (application path) that can be used for variable substituion in ini file values
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user