diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-05-21 03:01:39 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-05-21 03:01:39 -0400 |
commit | 1fe4b36065df2c3e3d1bcc342a60dbe888e5a39a (patch) | |
tree | d621edd76b2e0b7cb9df2a90f25c74ff805aac46 /src/emu | |
parent | d205197fe000f59f378156639bffd04bce6ecfc3 (diff) |
Fix error in debug build with SMS card options (nw)
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/emuopts.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/emuopts.cpp b/src/emu/emuopts.cpp index 7c5deccbdac..1cb0fbadc3d 100644 --- a/src/emu/emuopts.cpp +++ b/src/emu/emuopts.cpp @@ -383,14 +383,17 @@ namespace std::vector<std::string> get_full_option_names(const device_image_interface &image) { std::vector<std::string> result; + bool same_name = image.instance_name() == image.brief_instance_name(); result.push_back(image.instance_name()); - result.push_back(image.brief_instance_name()); + if (!same_name) + result.push_back(image.brief_instance_name()); if (strcmp(image.device_typename(image.image_type()), image.instance_name().c_str()) == 0) { result.push_back(image.instance_name() + "1"); - result.push_back(image.brief_instance_name() + "1"); + if (!same_name) + result.push_back(image.brief_instance_name() + "1"); } return result; } |