| 122 | { |
| 123 | |
| 124 | Expected<void> toAnySupportedSceneFormat( const Object& object, const std::filesystem::path& file, |
| 125 | const Settings& settings ) |
| 126 | { |
| 127 | // NOTE: single-char string literal may break due to the GCC bug: |
| 128 | // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 |
| 129 | auto extension = '*' + toLower( utf8string( file.extension() ) ); |
| 130 | auto saver = SceneSave::getSceneSaver( extension ); |
| 131 | if ( !saver ) |
| 132 | return unexpected( "unsupported file format" ); |
| 133 | |
| 134 | return saver( object, file, settings ); |
| 135 | } |
| 136 | |
| 137 | Expected<void> toAnySupportedFormat( const Object& object, const std::filesystem::path& file, |
| 138 | const Settings& settings ) |
no test coverage detected