change rom title from c char to std::string

This commit is contained in:
scawful
2024-08-10 21:42:09 -04:00
parent 443938e5ea
commit 6dc90ead13
5 changed files with 33 additions and 27 deletions

View File

@@ -375,7 +375,7 @@ void EditorManager::DrawInfoPopup() {
if (rom_info_) OpenPopup("ROM Information");
if (BeginPopupModal("ROM Information", nullptr,
ImGuiWindowFlags_AlwaysAutoResize)) {
Text("Title: %s", rom()->title());
Text("Title: %s", rom()->title().c_str());
Text("ROM Size: %ld", rom()->size());
if (Button("Close", gui::kDefaultModalSize) ||