зеркало из https://github.com/mozilla/pjs.git
creating the prefs.jsc file in the Configs\temp directory
This commit is contained in:
Родитель
e24c924e63
Коммит
e9abdc5602
|
@ -79,7 +79,7 @@ install:: $(DLL)
|
|||
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib ..\lib
|
||||
|
||||
export::
|
||||
$(MAKE_INSTALL) script.ib $(CCKDIST)\CCKTool
|
||||
# $(MAKE_INSTALL) script.ib $(CCKDIST)\CCKTool
|
||||
|
||||
#clobber::
|
||||
# rm -f $(DIST)\bin\$(DLLNAME).dll
|
||||
|
|
|
@ -98,7 +98,7 @@ BOOL CopyConfig(CString configname, WIDGET* curWidget)
|
|||
extern "C" __declspec(dllexport)
|
||||
BOOL CreateJSFile(void)
|
||||
{
|
||||
CString JSFile = rootpath + "Configs\\" + Clist +"\\Workspace\\Isetup\\prefs.js";
|
||||
CString JSFile = rootpath + "Configs\\" + Clist +"\\Temp\\prefs.jsc";
|
||||
|
||||
ofstream myout(JSFile);
|
||||
|
||||
|
@ -106,19 +106,18 @@ BOOL CreateJSFile(void)
|
|||
{
|
||||
cout << "cannot open the file \n";
|
||||
}
|
||||
|
||||
myout<< "with (PrefConfig) { \n";
|
||||
char* attribArray[MAX_SIZE];
|
||||
int k =GetAttrib("Pref", attribArray);
|
||||
// CString prefValue;
|
||||
int g= 0;
|
||||
while(g<k)
|
||||
{
|
||||
// AfxMessageBox(bg,MB_OK);
|
||||
myout<< "defaultPref(\"" << attribArray[g] << "\", " <<GetGlobal(attribArray[g])<<");\n";
|
||||
g++;
|
||||
}
|
||||
|
||||
// myout<< "defaultPref(\"" << prefname << "\", " <<GetGlobal(prefname) <<");\n";
|
||||
// cout << prefname << " is not found \n";
|
||||
myout<<"}";
|
||||
myout.close();
|
||||
return TRUE;
|
||||
}
|
Загрузка…
Ссылка в новой задаче