mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Can now open .map in trenchbroom automatically
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user