MCPcopy Create free account
hub / github.com/anydream/Pmx2Fbx / CopyFileTo

Function CopyFileTo

PmxLib/FbxHelper.cpp:137–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static 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
157FbxFileTexture * FbxHelper::NewTexture(const char * strName, const char * strFileName)
158{

Callers 1

NewTextureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected