mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
ac7ecbe30c
Add a platform-specific entry-point for Windows. This will allow some platform-specific initialization to be added without the need for ugly ifdeffery in main.c. As an immediate advantage, mpv can now use a unicode entry-point and convert the command line arguments to UTF-8 before passing them to mpv_main, so osdep_preinit can be simplified a little bit.
16 lines
267 B
C
16 lines
267 B
C
#include "config.h"
|
|
#include "core.h"
|
|
|
|
#if HAVE_COCOA_APPLICATION
|
|
#include "osdep/macosx_application.h"
|
|
#endif
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#if HAVE_COCOA_APPLICATION
|
|
return cocoa_main(mpv_main, argc, argv);
|
|
#else
|
|
return mpv_main(argc, argv);
|
|
#endif
|
|
}
|