X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fdriver.cpp;h=3b6d64995f56a04c24e52472800e9d6ec8fe24ba;hb=4529bf980cf3558d86c07266de7d890d3f5e06a6;hp=ea903afd14bbee7403052975457d2966a004ef4a;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/libr2c2/driver.cpp b/source/libr2c2/driver.cpp index ea903af..3b6d649 100644 --- a/source/libr2c2/driver.cpp +++ b/source/libr2c2/driver.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - -#include +#include "centralstation.h" #include "driver.h" #include "dummy.h" #include "intellibox.h" @@ -25,10 +18,12 @@ Driver *Driver::create(const string &str) if(type=="ib" || type=="intellibox") return new Intellibox(params); + else if(type=="cs" || type=="centralstation") + return new CentralStation(params); else if(type=="dummy") - return new Dummy; + return new Dummy(params); - throw Msp::InvalidParameterValue("Unknown driver"); + throw invalid_argument("Driver::create"); } } // namespace R2C2