MCPcopy Create free account
hub / github.com/Segs/Segs / LoadSceneData

Function LoadSceneData

Projects/CoX/Common/GameData/scenegraph_serializers.cpp:406–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406bool LoadSceneData(const QString &fname, SceneGraph_Data &scenegraph)
407{
408 BinStore binfile;
409 QString fixed_path = getFilepathCaseInsensitive(fname);
410
411 if(fixed_path.contains(".crl"))
412 {
413 if(!loadFrom(fixed_path, scenegraph))
414 {
415 qCritical() << "Failed to serialize data from crl:" << fixed_path;
416 return false;
417 }
418 return true;
419 }
420 if(!binfile.open(fixed_path, scenegraph_i0_2_requiredCrc))
421 {
422 qCritical() << "Failed to open original bin:" << fixed_path;
423 return false;
424 }
425 if(!loadFrom(&binfile, scenegraph))
426 {
427 qCritical() << "Failed to load data from original bin:" << fixed_path;
428 return false;
429 }
430 return true;
431}
432//! @}

Callers 1

loadSceneGraphFunction · 0.85

Calls 3

loadFromFunction · 0.70
openMethod · 0.45

Tested by

no test coverage detected