[MPlayer-dev-eng] [PATCH] MacOS X Application Bundle Support
Chris Roccati
roccati at pobox.com
Sat Dec 18 19:40:59 CET 2004
Hello,
this is the updated patch which allows the support files to be moved in
the Resources directory inside the Appwrapper.
This patch changes:
configure:
adds --enable-macosx-bundle and --disable-macosx-bundle, the default
(auto) is to follow the state of --enable-macosx-finder-support
get_path.c:
the get_path() function is changed to look for the specified file FIRST
in the user's home directory, inside the .mplayer directory, THEN
inside the Appwrapper inside the Resources directory.
Given the extra "smarts" already present in get_path(), it would
probably be advisable to rework the code to avoid things like:
| menu_cfg = get_path("menu.conf");
| if(menu_init(menu_cfg))
| mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_MenuInitialized, menu_cfg);
| else {
| if(menu_init(MPLAYER_CONFDIR "/menu.conf"))
which are VERY common all around, and have get_path() to return the
default location if everything else fails...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: macosx_bundle.patch
Type: application/octet-stream
Size: 3592 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041218/2e7b18e8/attachment.obj>
More information about the MPlayer-dev-eng
mailing list