mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +00:00
(libretro-common) Cleanups
This commit is contained in:
parent
54c931755e
commit
fb768eb608
@ -129,7 +129,7 @@ static int parse_long(const struct option *longopts, char * const *argv)
|
||||
const struct option *opt = NULL;
|
||||
for (indice = 0; longopts[indice].name; indice++)
|
||||
{
|
||||
if (strcmp(longopts[indice].name, &argv[0][2]) == 0)
|
||||
if (!strcmp(longopts[indice].name, &argv[0][2]))
|
||||
{
|
||||
opt = &longopts[indice];
|
||||
break;
|
||||
|
@ -163,7 +163,7 @@ static int parse_dir_entry(const char *name, char *file_path,
|
||||
if (!include_dirs && is_dir)
|
||||
return 1;
|
||||
|
||||
if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0)
|
||||
if (!strcmp(name, ".") || !strcmp(name, ".."))
|
||||
return 1;
|
||||
|
||||
if (!is_compressed_file && !is_dir && ext_list && !supported_by_core)
|
||||
|
@ -509,9 +509,9 @@ int main (int argc, char *argv[])
|
||||
for (i = 1; i < argc; i++)
|
||||
if (argv[i][0] == '-' && argv[i][1] == 's')
|
||||
MDString (argv[i] + 2);
|
||||
else if (strcmp (argv[i], "-t") == 0)
|
||||
else if (!strcmp (argv[i], "-t"))
|
||||
MDTimeTrial ();
|
||||
else if (strcmp (argv[i], "-x") == 0)
|
||||
else if (!strcmp (argv[i], "-x"))
|
||||
MDTestSuite ();
|
||||
else MDFile (argv[i]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user