MCPcopy Create free account
hub / github.com/BobbyAnguelov/FbxFormatConverter / PrintFileFormat

Function PrintFileFormat

main.cpp:308–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308static void PrintFileFormat( std::string const& filePath )
309{
310 FileFormat const fileFormat = FileSystemHelpers::GetFileFormat( filePath.c_str() );
311
312 if ( fileFormat == FileFormat::Binary )
313 {
314 printf( "%s - binary\n", filePath.c_str() );
315 }
316 else if ( fileFormat == FileFormat::Ascii )
317 {
318 printf( "%s - ascii\n", filePath.c_str() );
319 }
320 else
321 {
322 printf( "%s doesnt exist or is not an FBX file!\n", filePath.c_str() );
323 }
324}
325
326//-------------------------------------------------------------------------
327

Callers 1

mainFunction · 0.85

Calls 1

GetFileFormatFunction · 0.85

Tested by

no test coverage detected