From: <ave...@us...> - 2003-11-01 18:45:09
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript In directory sc8-pr-cvs1:/tmp/cvs-serv31851/GUIScript Modified Files: GUIScript.cpp Log Message: Token implementation bugfixes, try: GemRB.SetToken("apple","pear"), print GemRB.GetToken("apple") at Console Index: GUIScript.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript/GUIScript.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** GUIScript.cpp 1 Nov 2003 18:31:27 -0000 1.28 --- GUIScript.cpp 1 Nov 2003 18:45:05 -0000 1.29 *************** *** 763,767 **** char *newvalue = (char *) malloc(strlen(value)+1); //duplicating the string strcpy(newvalue, value); ! core->GetDictionary()->SetAt(Variable, newvalue); Py_INCREF(Py_None); --- 763,767 ---- char *newvalue = (char *) malloc(strlen(value)+1); //duplicating the string strcpy(newvalue, value); ! core->GetTokenDictionary()->SetAt(Variable, newvalue); Py_INCREF(Py_None); |