From eb536ee147e16b03ce6ef7013f4c892dd5ed4596 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Thu, 22 Sep 2022 03:46:45 +0300 Subject: [PATCH] Fiix std::filesystem::path being bad --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c1934ff3..d7bc7ea5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,7 +9,8 @@ int main (int argc, char *argv[]) { auto elfPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "SimplerTri.elf"); if (!emu.loadELF(elfPath)) { - Helpers::panic("Failed to load ELF file: %s", elfPath.c_str()); + // For some reason just .c_str() doesn't show the proper path + Helpers::panic("Failed to load ELF file: %s", elfPath.string().c_str()); } emu.run();