Browse Source

Add better error handling to app.event console command

Branan Purvine-Riley 10 years ago committed by Darryl Pogue
parent
commit
ff13a26e8a
  1. 10
      Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp

10
Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp

@ -2144,8 +2144,18 @@ PF_CONSOLE_CMD( App,
if( !stricmp(eventStr, "Time") )
{
event = kTime;
if (numParams < 2)
{
PrintString("'Time' expects a timestamp (in seconds)");
return;
}
secs = params[2];
}
else
{
PrintString("Unknown event type. Options are 'Start', 'Stop', and 'Time'");
return;
}
if( numParams > 3 )
{
reps = params[3];

Loading…
Cancel
Save