summaryrefslogtreecommitdiffstats
path: root/parser-mpcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser-mpcmd.c')
-rw-r--r--parser-mpcmd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c
index 1864ae7686..55697d901c 100644
--- a/parser-mpcmd.c
+++ b/parser-mpcmd.c
@@ -65,6 +65,9 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
char entbuf[10];
int no_more_opts = 0;
play_tree_t *last_parent, *last_entry = NULL, *root;
+#ifdef MACOSX_FINDER_SUPPORT
+ extern play_tree_t *macosx_finder_args(m_config_t *, int , char **);
+#endif
#ifdef MP_DEBUG
assert(config != NULL);
@@ -74,6 +77,12 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
config->mode = M_COMMAND_LINE;
mode = GLOBAL;
+#ifdef MACOSX_FINDER_SUPPORT
+ root=macosx_finder_args(config, argc, argv);
+ if(root)
+ return root;
+#endif
+
last_parent = root = play_tree_new();
/* in order to work recursion detection properly in parse_config_file */
++recursion_depth;