From: <bal...@us...> - 2003-11-06 14:59:39
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript In directory sc8-pr-cvs1:/tmp/cvs-serv25501/gemrb/plugins/GUIScript Modified Files: GUIScript.cpp Log Message: Added Feature: Now the GUIScript will search the Script files in the GUIScript/<GameType> Directory Index: GUIScript.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript/GUIScript.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** GUIScript.cpp 4 Nov 2003 19:41:48 -0000 1.34 --- GUIScript.cpp 6 Nov 2003 14:59:35 -0000 1.35 *************** *** 1102,1108 **** } path[p] = 0; ! sprintf(string, "sys.path.append('%sGUIScripts')", path); #else ! sprintf(string, "sys.path.append('%sGUIScripts')", core->GUIScriptsPath); #endif if(PyRun_SimpleString(string)==-1){ --- 1102,1108 ---- } path[p] = 0; ! sprintf(string, "sys.path.append('%sGUIScripts/%s')", path, core->GameType); #else ! sprintf(string, "sys.path.append('%sGUIScripts/%s')", core->GUIScriptsPath, core->GameType); #endif if(PyRun_SimpleString(string)==-1){ *************** *** 1118,1121 **** --- 1118,1123 ---- strcpy(path, core->GUIScriptsPath); strcat(path, "GUIScripts"); + strcat(path, SPathDelimiter); + strcat(path, core->GameType); strcat(path, SPathDelimiter); strcat(path, "GUIDefines.py"); |