mirror of
https://github.com/holub/mame
synced 2025-06-24 05:17:04 +03:00
Now using core_filename_extract_base() in menu_file_create ctor
This commit is contained in:
parent
09b3fbf52c
commit
e1f3bc9b8a
@ -148,12 +148,9 @@ menu_file_create::menu_file_create(mame_ui_manager &mui, render_container &conta
|
|||||||
{
|
{
|
||||||
m_image = image;
|
m_image = image;
|
||||||
m_ok = true;
|
m_ok = true;
|
||||||
auto const sep = current_file.rfind(PATH_SEPARATOR);
|
|
||||||
|
|
||||||
m_filename.reserve(1024);
|
m_filename.reserve(1024);
|
||||||
m_filename = sep != std::string::npos
|
m_filename = core_filename_extract_base(current_file);
|
||||||
? current_file.substr(sep + strlen(PATH_SEPARATOR), current_file.size() - sep - strlen(PATH_SEPARATOR))
|
|
||||||
: current_file;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user