| 404 | } |
| 405 | |
| 406 | bool 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 | //! @} |
no test coverage detected