add *.ogg and *.wav to the sound types selection

This commit is contained in:
Timothee Besset 2013-06-22 21:56:11 +01:00
parent a97c188cdb
commit 5d08c3e9ec
2 changed files with 3 additions and 3 deletions

View file

@ -171,8 +171,6 @@ extern "C" const char* QERPlug_Init( void *hApp, void* pMainWidget ){
InitBackgroundDialog(); InitBackgroundDialog();
render.Register(); render.Register();
//TODO is it right ? is it wrong ? it works
//TODO figure out supported image types
GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "all files", "*.*" ) ); GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "all files", "*.*" ) );
GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "jpeg files", "*.jpg" ) ); GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "jpeg files", "*.jpg" ) );
GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "targa files", "*.tga" ) ); GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "targa files", "*.tga" ) );

View file

@ -75,8 +75,8 @@ filetype_t g_pattern_modelmd3( "md3 models", "*.md3" );
filetype_t g_pattern_modelmdc( "mdc models", "*.mdc" ); filetype_t g_pattern_modelmdc( "mdc models", "*.mdc" );
filetype_t g_pattern_modelmd2( "md2 models", "*.md2" ); filetype_t g_pattern_modelmd2( "md2 models", "*.md2" );
filetype_t g_pattern_modelmdl( "mdl models", "*.mdl" ); filetype_t g_pattern_modelmdl( "mdl models", "*.mdl" );
//filetype_t g_pattern_modelea3("EA3 models", "*.ea3");
filetype_t g_pattern_soundwav( "PCM sound files", "*.wav" ); filetype_t g_pattern_soundwav( "PCM sound files", "*.wav" );
filetype_t g_pattern_ogg( "OGG sound files", "*.ogg" );
filetype_t g_pattern_regq3( "quake3 region", "*.reg" ); filetype_t g_pattern_regq3( "quake3 region", "*.reg" );
#include <map> #include <map>
@ -133,6 +133,8 @@ void InitFileTypes(){
*/ */
GetFileTypeRegistry()->addType( "sound", g_pattern_soundwav ); GetFileTypeRegistry()->addType( "sound", g_pattern_soundwav );
GetFileTypeRegistry()->addType( "sound", g_pattern_ogg );
GetFileTypeRegistry()->addType( "sound", g_pattern_all );
} }