From 5d08c3e9ecd7569842a5da033b362eac665d4d9c Mon Sep 17 00:00:00 2001 From: Timothee Besset Date: Sat, 22 Jun 2013 21:56:11 +0100 Subject: [PATCH] add *.ogg and *.wav to the sound types selection --- contrib/bkgrnd2d/plugin.cpp | 2 -- radiant/pluginmanager.cpp | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/bkgrnd2d/plugin.cpp b/contrib/bkgrnd2d/plugin.cpp index 6e92d33b..319c0ac4 100644 --- a/contrib/bkgrnd2d/plugin.cpp +++ b/contrib/bkgrnd2d/plugin.cpp @@ -171,8 +171,6 @@ extern "C" const char* QERPlug_Init( void *hApp, void* pMainWidget ){ InitBackgroundDialog(); 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( "jpeg files", "*.jpg" ) ); GetFileTypeRegistry()->addType( FILETYPE_KEY, filetype_t( "targa files", "*.tga" ) ); diff --git a/radiant/pluginmanager.cpp b/radiant/pluginmanager.cpp index d8eff122..c3f69ea9 100644 --- a/radiant/pluginmanager.cpp +++ b/radiant/pluginmanager.cpp @@ -75,8 +75,8 @@ filetype_t g_pattern_modelmd3( "md3 models", "*.md3" ); filetype_t g_pattern_modelmdc( "mdc models", "*.mdc" ); filetype_t g_pattern_modelmd2( "md2 models", "*.md2" ); 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_ogg( "OGG sound files", "*.ogg" ); filetype_t g_pattern_regq3( "quake3 region", "*.reg" ); #include @@ -133,6 +133,8 @@ void InitFileTypes(){ */ GetFileTypeRegistry()->addType( "sound", g_pattern_soundwav ); + GetFileTypeRegistry()->addType( "sound", g_pattern_ogg ); + GetFileTypeRegistry()->addType( "sound", g_pattern_all ); }