Mercurial > audlegacy-plugins
diff src/modplug/plugin.cxx @ 2456:e67bce91d70c
revive support for zip and other archive formats. T.M aka teknocat pointed out this problem and provided preliminary patch.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 20 Mar 2008 01:37:46 +0900 |
parents | 7ee1bc4d5f5b |
children | a336fe28b63a |
line wrap: on
line diff
--- a/src/modplug/plugin.cxx Mon Mar 17 21:38:04 2008 +0100 +++ b/src/modplug/plugin.cxx Thu Mar 20 01:37:46 2008 +0900 @@ -4,6 +4,8 @@ * This source code is public domain. */ +// #define AUD_DEBUG 1 + #include "modplug.h" #include "gui/main.h" extern "C" { @@ -20,6 +22,7 @@ static int CanPlayFileFromVFS(char* aFilename, VFSFile *VFSFile) { + AUDDBG("aFilename=%s\n", aFilename); if(gModplugXMMS.CanPlayFileFromVFS(aFilename, VFSFile)) return 1; return 0; @@ -27,7 +30,7 @@ static void PlayFile(InputPlayback *data) { - char* aFilename = data->filename; + char* aFilename = data->filename; gModplugXMMS.SetOutputPlugin(*data->output); gModplugXMMS.PlayFile(aFilename, data); } @@ -81,7 +84,9 @@ const gchar *fmts[] = { "amf", "ams", "dbm", "dbf", "dsm", "far", "mdl", "stm", "ult", "j2b", "mt2", "mdz", "mdr", "mdgz", "mdbz", "mod", "s3z", "s3r", "s3gz", "s3m", "xmz", "xmr", "xmgz", - "itz", "itr", "itgz", "dmf", "umx", "it", "669", "xm", "mtm", "psm", "ft2", NULL }; + "itz", "itr", "itgz", "dmf", "umx", "it", "669", "xm", "mtm", "psm", "ft2", + "zip", "gz", "bz2", "rar", "rb", + NULL }; InputPlugin gModPlug = {