| 135 | } |
| 136 | |
| 137 | static bool CopyFileTo(const char * strFrom, const char * strTo) |
| 138 | { |
| 139 | std::wstring strWfrom, strWto; |
| 140 | Platform_Utf8To16(strFrom, strWfrom); |
| 141 | Platform_Utf8To16(strTo, strWto); |
| 142 | strWfrom.push_back(0); |
| 143 | strWto.push_back(0); |
| 144 | |
| 145 | SHFILEOPSTRUCT fop; |
| 146 | fop.hwnd = 0; |
| 147 | fop.wFunc = FO_COPY; |
| 148 | fop.pFrom = strWfrom.c_str(); |
| 149 | fop.pTo = strWto.c_str(); |
| 150 | fop.fFlags = FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION; |
| 151 | fop.fAnyOperationsAborted = FALSE; |
| 152 | fop.hNameMappings = 0; |
| 153 | fop.lpszProgressTitle = 0; |
| 154 | return SHFileOperation(&fop) == 0; |
| 155 | } |
| 156 | |
| 157 | FbxFileTexture * FbxHelper::NewTexture(const char * strName, const char * strFileName) |
| 158 | { |