Bug #116 ยป xbmc4xbox-makelegal.diff
xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp (working copy) | ||
---|---|---|
CStdString strText;
|
||
if (!PyXBMCGetUnicodeString(strText, pObjectText, 1)) return NULL;
|
||
CStdString strFilename;
|
||
strFilename = CUtil::MakeLegalPath(strText, LEGAL_FATX);
|
||
int iLegal = bIsFatX != 0 ? LEGAL_FATX : LEGAL_WIN32_COMPAT;
|
||
CStdString strFilename = CUtil::MakeLegalPath(strText, iLegal);
|
||
return Py_BuildValue((char*)"s", strFilename.c_str());
|
||
}
|
||