INNER CODE UNIT · C++
first_path_cstr
oxylusengine/Oxylus · OxylusEditor/src/Editor.cpp:376
const auto first_path_cstr = *files;
const auto first_path_len = std::strlen(first_path_cstr);
const auto path = std::string(first_path_cstr, first_path_len);
if (!path.empty())
e->open_scene(path);
},
.title = "Oxylus scene file...",
.default_path = std::filesystem::current_path(),
.filters = dialog_filters,
.multi_select = false,
});
}
void Editor::save_scene() {
ZoneScoped;
auto* focused_viewport = main_viewport_panel.get_focused_viewport();
if (!focused_viewport)