Skip to content

Commit 3edd503

Browse files
committed
fix crash on utf-8 directories
1 parent 4a0bf57 commit 3edd503

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ void DevTools::setupPlatform() {
2222
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
2323

2424
// use static since imgui does not own the pointer!
25-
static const auto iniPath = (Mod::get()->getSaveDir() / "imgui.ini").string();
26-
io.IniFilename = iniPath.c_str();
25+
static const auto iniPath = (Mod::get()->getSaveDir() / "imgui.ini").u8string();
26+
io.IniFilename = reinterpret_cast<const char*>(iniPath.c_str());
2727

2828
unsigned char* pixels;
2929
int width, height;

0 commit comments

Comments
 (0)