mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
modlist: skip .app bundles on macOS
This commit is contained in:
parent
670fa1661b
commit
30ef96579a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue