-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#include <msp/core/except.h>
#include "centralstation.h"
#include "driver.h"
#include "dummy.h"
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