| 54 | } // namespace |
| 55 | |
| 56 | bool loadFailed(std::exception e, const std::filesystem::path& path) |
| 57 | { |
| 58 | logError(e.what()); |
| 59 | auto res = msgBox( |
| 60 | "Error", |
| 61 | fmt::format("Error when importing graph from file '{}'\n{}\n\nWould you like to try and reload the file?", path.string(), e.what()), |
| 62 | MsgBoxType::YesNo |
| 63 | ); |
| 64 | return (res == MsgBoxButton::No); |
| 65 | } |
| 66 | |
| 67 | ref<RenderGraph> RenderGraphImporter::import(std::string graphName, std::filesystem::path path, std::string funcName) |
| 68 | { |