add warning on invalid command
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "Style.h"
|
||||
#include "Foreach.h"
|
||||
#include "Command.h"
|
||||
#include "arch/Dialog/Dialog.h"
|
||||
|
||||
void GameCommand::Init()
|
||||
{
|
||||
@@ -209,6 +210,13 @@ void GameCommand::Load( int iIndex, const Commands& cmds )
|
||||
{
|
||||
m_sSongGroup = sValue;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
CString sWarning = ssprintf( "Command '%s' is not valid.", command->GetOriginalCommandString().c_str() );
|
||||
LOG->Warn( sWarning );
|
||||
Dialog::OK( sWarning, "FRAME_DIMENSIONS_WARNING" );
|
||||
}
|
||||
}
|
||||
|
||||
if( !m_bInvalid && sSteps != "" )
|
||||
|
||||
Reference in New Issue
Block a user