Skip to content

Commit 91d0dd8

Browse files
committed
filesystem and string discrep on win32
1 parent a99208d commit 91d0dd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui/BooldozerEditor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,13 +718,13 @@ void LBooldozerEditor::Render(float dt, LEditorScene* renderer_scene)
718718
ImGui::BeginGroup();
719719
ImGui::Text(ICON_FK_FOLDER_OPEN);
720720
if(ImGui::IsItemClicked()){
721-
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path(), .flags = ImGuiFileDialogFlags_Modal };
721+
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path().string(), .flags = ImGuiFileDialogFlags_Modal };
722722
ImGuiFileDialog::Instance()->OpenDialog("openNewBanner", "Open Banner Image", "Image (*.png){.png}", cfg);
723723
ImGui::CloseCurrentPopup();
724724
}
725725
ImGui::Text(ICON_FK_FLOPPY_O);
726726
if(ImGui::IsItemClicked()){
727-
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path(), .flags = ImGuiFileDialogFlags_Modal };
727+
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path().string(), .flags = ImGuiFileDialogFlags_Modal };
728728
ImGuiFileDialog::Instance()->OpenDialog("saveBannerImage", "Save Banner Image Titlecard", "Image (*.png){.png}", cfg);
729729
ImGui::CloseCurrentPopup();
730730
}
@@ -1029,7 +1029,7 @@ void LBooldozerEditor::onSaveMapArchiveCB()
10291029

10301030
void LBooldozerEditor::onGCMExportCB()
10311031
{
1032-
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path(), .flags = ImGuiFileDialogFlags_Modal };
1032+
IGFD::FileDialogConfig cfg { .path = std::filesystem::current_path().string(), .flags = ImGuiFileDialogFlags_Modal };
10331033
ImGuiFileDialog::Instance()->OpenDialog("exportGCMDlg", "Export GCM", "GameCube Disk Image (*.gcm *.iso *.szp){.iso,.gcm}", cfg);
10341034
}
10351035

0 commit comments

Comments
 (0)