Make* -> Driver::Create. Having these floating in arch.h isn't

useful; if you create the class, you need the class definition to
free it, and anyone creating a class is probably going to use it,
too.
This commit is contained in:
Glenn Maynard
2006-12-17 07:41:21 +00:00
parent 50ca6633cb
commit 17c32b90c2
14 changed files with 19 additions and 14 deletions
@@ -171,7 +171,7 @@ RegisterInputHandler::RegisterInputHandler( const istring &sName, CreateRageDriv
}
static LocalizedString INPUT_HANDLERS_EMPTY( "Arch", "Input Handlers cannot be empty." );
void MakeInputHandlers( const RString &drivers_, vector<InputHandler *> &Add )
void InputHandler::Create( const RString &drivers_, vector<InputHandler *> &Add )
{
const RString drivers = drivers_.empty()? RString(DEFAULT_INPUT_DRIVER_LIST):drivers_;
vector<RString> DriversToTry;