mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
%Root% is a global variable that contains the value of the current working directory - so we can use it in an inifile to resolve the relative root locations
This commit is contained in:
parent
ce45bea09f
commit
557d8b559b
@ -122,6 +122,12 @@ BOOL CWizardMachineApp::InitInstance()
|
||||
|
||||
strcpy(currDirPath, Path);
|
||||
|
||||
CString Root = Path;
|
||||
|
||||
WIDGET* wroot = SetGlobal("Root",Root);
|
||||
if (wroot)
|
||||
wroot->cached = TRUE;
|
||||
|
||||
CString outputFile = Path + "output.dat";
|
||||
out = fopen(outputFile, "w");
|
||||
if (!out)
|
||||
@ -1375,6 +1381,8 @@ BOOL CWizardMachineApp::FillGlobalWidgetArray(CString file)
|
||||
name = CString(strtok(buffer,"="));
|
||||
value = CString(strtok(NULL,"="));
|
||||
value.TrimRight();
|
||||
if (value.Find("%") >= 0)
|
||||
value=replaceVars((char *) (LPCSTR) value,NULL);
|
||||
|
||||
WIDGET* w = SetGlobal(name, value);
|
||||
if (w)
|
||||
|
Loading…
Reference in New Issue
Block a user