modlist: skip .app bundles on macOS

This commit is contained in:
Eric Wasylishen 2017-06-12 17:32:32 -06:00
parent 670fa1661b
commit 30ef96579a

View file

@ -286,6 +286,8 @@ void Modlist_Init (void)
{ {
if (!strcmp(dir_t->d_name, ".") || !strcmp(dir_t->d_name, "..")) if (!strcmp(dir_t->d_name, ".") || !strcmp(dir_t->d_name, ".."))
continue; continue;
if (!q_strcasecmp (COM_FileGetExtension (dir_t->d_name), "app")) // skip .app bundles on macOS
continue;
q_snprintf(mod_string, sizeof(mod_string), "%s%s/", dir_string, dir_t->d_name); q_snprintf(mod_string, sizeof(mod_string), "%s%s/", dir_string, dir_t->d_name);
mod_dir_p = opendir(mod_string); mod_dir_p = opendir(mod_string);
if (mod_dir_p == NULL) if (mod_dir_p == NULL)