Can now open .map in trenchbroom automatically

This commit is contained in:
Antoine Pilote
2023-09-15 17:53:07 -04:00
parent a5cf290f4c
commit 61776b4fb8
11 changed files with 26 additions and 10 deletions

View File

@@ -430,8 +430,14 @@ void EditorSelectionPanel::DrawProjectPanel(Ref<Nuake::Project> project)
if (ImGui::Button("Locate"))
{
const std::string& locationPath = Nuake::FileDialog::OpenFile("TrenchBroom (.exe)\0TrenchBroom.exe\0");
if (!locationPath.empty())
{
project->TrenchbroomPath = locationPath;
}
}
ImGui::SameLine();
ImGui::InputText("Trenchbroom Path", &project->TrenchbroomPath);
}