Commit 00f9c81e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

winvlc: force plugin and data paths for vlc-static.exe

Just like we already do for (Unix) vlc.
parent 8a3032cc
......@@ -115,6 +115,11 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
int nCmdShow )
{
int argc;
#ifdef TOP_BUILDDIR
putenv("VLC_PLUGIN_PATH=Z:"TOP_BUILDDIR"/modules");
#endif
#ifndef UNDER_CE
HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
......@@ -137,12 +142,15 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
if (wargv == NULL)
return 1;
char *argv[argc + 2];
char *argv[argc + 3];
BOOL crash_handling = TRUE;
int j = 0;
argv[j++] = FromWide( L"--media-library" );
argv[j++] = FromWide( L"--no-ignore-config" );
#ifdef TOP_SRCDIR
argv[argc++] = FromWide (L"--data-path=Z:"TOP_SRCDIR"/share");
#endif
for (int i = 1; i < argc; i++)
{
if(!wcscmp(wargv[i], L"--no-crashdump"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment