fixed create folder in dir selector

This commit is contained in:
Mikulas Florek 2022-11-29 21:55:01 +01:00
parent 0c34789ba1
commit 69ce311dc7

View file

@ -398,7 +398,7 @@ bool DirSelector::gui(const char* label, bool* open) {
if (ImGui::IsItemDeactivatedAfterEdit()) {
if (m_new_folder_name[0]) {
FileSystem& fs = m_app.getEngine().getFileSystem();
StaticString<LUMIX_MAX_PATH> fullpath(fs.getBasePath(), m_current_dir.c_str(), m_new_folder_name);
StaticString<LUMIX_MAX_PATH> fullpath(fs.getBasePath(), m_current_dir.c_str(), "/", m_new_folder_name);
if (!os::makePath(fullpath)) {
logError("Failed to create ", fullpath);
}