|
|
@ -17,6 +17,8 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
ConsoleInterpreterContext (Console& console, MWWorld::Environment& environment,
|
|
|
|
ConsoleInterpreterContext (Console& console, MWWorld::Environment& environment,
|
|
|
|
MWWorld::Ptr reference);
|
|
|
|
MWWorld::Ptr reference);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void report (const std::string& message);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
ConsoleInterpreterContext::ConsoleInterpreterContext (Console& console,
|
|
|
|
ConsoleInterpreterContext::ConsoleInterpreterContext (Console& console,
|
|
|
@ -26,6 +28,11 @@ namespace MWGui
|
|
|
|
mConsole (console)
|
|
|
|
mConsole (console)
|
|
|
|
{}
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ConsoleInterpreterContext::report (const std::string& message)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
mConsole.printOK (message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Console::compile (const std::string& cmd, Compiler::Output& output)
|
|
|
|
bool Console::compile (const std::string& cmd, Compiler::Output& output)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|