mirror of
https://github.com/holub/mame
synced 2025-10-07 09:25:34 +03:00
small core_strwildcmp() clarification (nw)
This commit is contained in:
parent
c19e66c9ac
commit
d63e60a4c8
@ -1419,7 +1419,7 @@ void cli_frontend::getsoftlist(const char *gamename)
|
|||||||
{
|
{
|
||||||
software_list_device_iterator iter(drivlist.config().root_device());
|
software_list_device_iterator iter(drivlist.config().root_device());
|
||||||
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
||||||
if (core_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
if (core_strwildcmp(gamename, swlistdev->list_name()) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
||||||
if (swlistdev->first_software_info() != NULL)
|
if (swlistdev->first_software_info() != NULL)
|
||||||
{
|
{
|
||||||
if (isfirst) { fprintf( out, SOFTLIST_XML_BEGIN); isfirst = FALSE; }
|
if (isfirst) { fprintf( out, SOFTLIST_XML_BEGIN); isfirst = FALSE; }
|
||||||
@ -1452,7 +1452,7 @@ void cli_frontend::verifysoftlist(const char *gamename)
|
|||||||
{
|
{
|
||||||
software_list_device_iterator iter(drivlist.config().root_device());
|
software_list_device_iterator iter(drivlist.config().root_device());
|
||||||
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
||||||
if (core_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
if (core_strwildcmp(gamename, swlistdev->list_name()) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
||||||
if (swlistdev->first_software_info() != NULL)
|
if (swlistdev->first_software_info() != NULL)
|
||||||
{
|
{
|
||||||
matched++;
|
matched++;
|
||||||
|
@ -53,7 +53,7 @@ char *core_strdup(const char *str);
|
|||||||
#define strdup !MUST_USE_CORE_STRDUP_INSTEAD!
|
#define strdup !MUST_USE_CORE_STRDUP_INSTEAD!
|
||||||
|
|
||||||
|
|
||||||
/* additional string compare helper */
|
/* additional string compare helper (up to 16 characters at the moment) */
|
||||||
int core_strwildcmp(const char *sp1, const char *sp2);
|
int core_strwildcmp(const char *sp1, const char *sp2);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user