#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
-
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
+#ifdef WIN32
+# include <windows.h>
+#endif
static void version (void)
{
path);
}
-/* Explicit HACK */
-extern void LocaleFree (const char *);
-extern char *FromLocale (const char *);
-
int main (int argc, char *argv[])
{
+#ifdef WIN32
+ SetErrorMode(SEM_FAILCRITICALERRORS);
+#endif
static const struct option opts[] =
{
{ "force", no_argument, NULL, 'f' },
for (int i = optind; i < argc; i++)
{
- /* Note that FromLocale() can be used before libvlc is initialized */
- const char *path = FromLocale (argv[i]);
+ const char *path = argv[i];
if (setenv ("VLC_PLUGIN_PATH", path, 1))
abort ();
libvlc_release (vlc);
if (vlc == NULL)
fprintf (stderr, "No plugins in %s\n", path);
- LocaleFree (path);
if (vlc == NULL)
return 1;
}