comparison src/modplug/plugin.cxx @ 704:94b22cc75eb8 trunk

[svn] - VFS probing support patch by Christian Birchinger (joker).
author nenolod
date Fri, 23 Feb 2007 20:30:42 -0800
parents 914c96de3244
children b1128efde471
comparison
equal deleted inserted replaced
703:cae46214b8bf 704:94b22cc75eb8
14 { 14 {
15 gModplugXMMS.SetInputPlugin(gModPlug); 15 gModplugXMMS.SetInputPlugin(gModPlug);
16 gModplugXMMS.Init(); 16 gModplugXMMS.Init();
17 } 17 }
18 18
19 static int CanPlayFile(char* aFilename) 19 static int CanPlayFileFromVFS(char* aFilename, VFSFile *VFSFile)
20 { 20 {
21 if(gModplugXMMS.CanPlayFile(aFilename)) 21 if(gModplugXMMS.CanPlayFileFromVFS(aFilename, VFSFile))
22 return 1; 22 return 1;
23 return 0; 23 return 0;
24 } 24 }
25 25
26 static void PlayFile(InputPlayback *data) 26 static void PlayFile(InputPlayback *data)
86 NULL, 86 NULL,
87 "ModPlug Player", 87 "ModPlug Player",
88 Init, 88 Init,
89 ShowAboutBox, 89 ShowAboutBox,
90 ShowConfigureBox, 90 ShowConfigureBox,
91 CanPlayFile, 91 NULL,
92 NULL, 92 NULL,
93 PlayFile, 93 PlayFile,
94 Stop, 94 Stop,
95 Pause, 95 Pause,
96 Seek, 96 Seek,
107 ShowFileInfoBox, 107 ShowFileInfoBox,
108 NULL, // output 108 NULL, // output
109 NULL, // tuple 109 NULL, // tuple
110 NULL, 110 NULL,
111 NULL, 111 NULL,
112 NULL, // vfs 112 CanPlayFileFromVFS, // vfs
113 fmts, 113 fmts,
114 }; 114 };
115 115
116 extern "C" 116 extern "C"
117 { 117 {