summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/floptool.cpp
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-04-03 21:38:57 -0400
committer GitHub <noreply@github.com>2022-04-03 21:38:57 -0400
commit945cb29e749cc3789e14ee8194f6227feffa25f9 (patch)
treec429c219d07f41211b38d4e5ba33beb9288d8998 /src/tools/floptool.cpp
parent07a357463b7ba57dc45226a7596a7113849c0a3d (diff)
Changed fs::meta_value::to_string() to not be static and not require meta_type (#9510)
No need to pass in the meta_type when using std::visit() on the std::variant
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r--src/tools/floptool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp
index 7abea32a90b..f68c4110edc 100644
--- a/src/tools/floptool.cpp
+++ b/src/tools/floptool.cpp
@@ -283,7 +283,7 @@ static void dir_scan(u32 depth, fs::filesystem_t::dir_t dir, std::vector<std::ve
if(!meta.has(m.m_name))
continue;
size_t slot = nmap.find(m.m_name)->second;
- std::string val = fs::meta_value::to_string(m.m_type, meta.get(m.m_name));
+ std::string val = meta.get(m.m_name).to_string();
if(slot == 0)
val = head + "dir " + val;
entries[id][slot] = val;
@@ -301,7 +301,7 @@ static void dir_scan(u32 depth, fs::filesystem_t::dir_t dir, std::vector<std::ve
if(!meta.has(m.m_name))
continue;
size_t slot = nmap.find(m.m_name)->second;
- std::string val = fs::meta_value::to_string(m.m_type, meta.get(m.m_name));
+ std::string val = meta.get(m.m_name).to_string();
if(slot == 0)
val = head + (c.m_type == fs::dir_entry_type::system_file ? "sys " : "file ") + val;
entries[id][slot] = val;
@@ -323,7 +323,7 @@ static int generic_dir(image_handler &ih)
if(!vmeta.empty()) {
std::string vinf = "Volume:";
for(const auto &e : vmetad)
- vinf += util::string_format(" %s=%s", fs::meta_data::entry_name(e.m_name), fs::meta_value::to_string(e.m_type, vmeta.get(e.m_name)));
+ vinf += util::string_format(" %s=%s", fs::meta_data::entry_name(e.m_name), vmeta.get(e.m_name).to_string());
printf("%s\n\n", vinf.c_str());
}