more fixes?

This commit is contained in:
2025-12-13 22:02:48 -05:00
parent 31ac9707e7
commit 898dfcc68f
2 changed files with 13 additions and 6 deletions
+6 -2
View File
@@ -2,9 +2,11 @@
#include <ranges>
#include "filesystem_.h"
#include "strings.h"
using namespace anm2ed::resource;
namespace filesystem = anm2ed::util::filesystem;
namespace anm2ed::imgui
{
@@ -44,7 +46,8 @@ namespace anm2ed::imgui
{
ImGui::PushID(i);
auto label = std::format(FILE_LABEL_FORMAT, file.filename().string(), file.string());
auto label = std::format(FILE_LABEL_FORMAT, filesystem::path_to_utf8(file.filename()),
filesystem::path_to_utf8(file));
if (ImGui::Selectable(label.c_str()))
{
@@ -75,7 +78,8 @@ namespace anm2ed::imgui
{
for (auto& file : manager.autosaveFiles)
{
auto label = std::format(FILE_LABEL_FORMAT, file.filename().string(), file.string());
auto label = std::format(FILE_LABEL_FORMAT, filesystem::path_to_utf8(file.filename()),
filesystem::path_to_utf8(file));
ImGui::TextUnformatted(label.c_str());
}
}