From dbc256198abf9e62323ee4c34855f0470e8bec07 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 4 Dec 2004 21:14:46 +0000 Subject: [PATCH] add warning on invalid command --- stepmania/src/GameCommand.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index b49e3b7a30..6b1125495a 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -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 != "" )