* vlc.win32.nsi: DVD and AudioCD handlers.
* tools.c: tools for dvd plugin.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: tools.c,v 1.4 2003/01/28 15:05:52 massiot Exp $
+ * $Id$
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
{
/* Don't try to stat the file */
}
+ else if( psz_source[0] && psz_source[1] == ':' &&
+ psz_source[2] == '\\' && psz_source[3] == '\0' )
+ {
+ /* Don't try to stat the file */
+ psz_source[2] = '\0';
+ }
else
#endif
{
if( !psz_source ) return NULL;
}
+#ifdef WIN32
+ if( psz_source[0] && psz_source[1] == ':' &&
+ psz_source[2] == '\\' && psz_source[3] == '\0' )
+ {
+ psz_source[2] = '\0';
+ }
+#endif
+
msg_Dbg( p_this, "dvdroot=%s title=%d chapter=%d angle=%d",
psz_source, *i_title, *i_chapter, *i_angle );
WriteRegStr HKCR Applications\vlc.exe\shell\Play\command "" \\r
'$INSTDIR\vlc.exe "%1"'\r
\r
+ WriteRegStr HKCR "AudioCD\shell\PlayWithVLC" "" "Play with VLC media player"\r
+ WriteRegStr HKCR "AudioCD\shell\PlayWithVLC\command" "" \\r
+ '$INSTDIR\vlc.exe cdda:%1'\r
+ WriteRegStr HKCR "DVD\shell\PlayWithVLC" "" "Play with VLC media player"\r
+ WriteRegStr HKCR "DVD\shell\PlayWithVLC\command" "" \\r
+ '$INSTDIR\vlc.exe dvd:%1'\r
+\r
SectionEnd\r
\r
Section "Start Menu + Desktop Shortcut" SEC02\r
DeleteRegKey HKLM Software\VideoLAN\r
\r
DeleteRegKey HKCR Applications\vlc.exe\r
+ DeleteRegKey HKCR AudioCD\shell\PlayWithVLC\r
+ DeleteRegKey HKCR DVD\shell\PlayWithVLC\r
\r
DeleteRegKey HKLM \\r
SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}\r