summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/info.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-06-28 16:33:06 +1000
committer Vas Crabb <vas@vastheman.com>2022-06-28 16:33:06 +1000
commit513e30cbbb75a4c81bc4a7cc2dde47e0ad064644 (patch)
tree511c7c367db3f2454b52314e45e567c9b8b4771b /src/frontend/mame/ui/info.cpp
parentdbf04f771a146d6cc1884470ff43a1101f5973a4 (diff)
Added make opions for filter file, adjusted source path display.
Added SOURCEFILTER option to specify a driver filter file in your make options, e.g. like make SUBTARGET=custom SOURCEFILTER=mydrivers.flt (or put it in your useroptions.mak if you'll be using it a lot). It functions more-or-less like SOURCES on steroids. Changed the way system/device source file paths are displayed to suit the new source layout better. INI file loading hasn't changed, that still just uses the base file name. Added overlooked trigger to src/bus.lua to include NES controller bus if the NES zapper sensor is needed.
Diffstat (limited to 'src/frontend/mame/ui/info.cpp')
-rw-r--r--src/frontend/mame/ui/info.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/info.cpp b/src/frontend/mame/ui/info.cpp
index ce74942cbd2..f6fa969bbb4 100644
--- a/src/frontend/mame/ui/info.cpp
+++ b/src/frontend/mame/ui/info.cpp
@@ -362,11 +362,17 @@ std::string machine_info::game_info_string() const
std::ostringstream buf;
// print description, manufacturer, and CPU:
+ std::string_view src(m_machine.system().type.source());
+ auto prefix(src.find("src/mame/"));
+ if (std::string_view::npos == prefix)
+ prefix = src.find("src\\mame\\");
+ if (std::string_view::npos != prefix)
+ src.remove_prefix(prefix + 9);
util::stream_format(buf, _("%1$s\n%2$s %3$s\nDriver: %4$s\n\nCPU:\n"),
system_list::instance().systems()[driver_list::find(m_machine.system().name)].description,
m_machine.system().year,
m_machine.system().manufacturer,
- core_filename_extract_base(m_machine.system().type.source()));
+ src);
// loop over all CPUs
execute_interface_enumerator execiter(m_machine.root_device());