-#ifdef FG_MPLAYER_AS
- } else if ( protocol == "multiplay" ) {\
- //Determine dir, rate, host & port
+ if (configToken >= tokens.size()) {
+ SG_LOG( SG_IO, SG_ALERT, "Not enough tokens passed for the generic protocol.");
+ return NULL;
+ }
+
+ FGGeneric *generic = new FGGeneric( tokens );
+ io = generic;
+ } else if ( protocol == "multiplay" ) {
+ if ( tokens.size() != 5 ) {
+ SG_LOG( SG_IO, SG_ALERT, "Ignoring invalid --multiplay option "
+ "(4 arguments expected: --multiplay=dir,hz,hostname,port)" );
+ return NULL;
+ }