mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
This commit is contained in:
@@ -51,10 +51,16 @@ namespace OpenRCT2::Scripting
|
||||
return 0;
|
||||
}
|
||||
|
||||
void executeLegacy(const std::string& command)
|
||||
{
|
||||
_console.Execute(command);
|
||||
}
|
||||
|
||||
static void Register(duk_context* ctx)
|
||||
{
|
||||
dukglue_register_method(ctx, &ScConsole::clear, "clear");
|
||||
dukglue_register_method_varargs(ctx, &ScConsole::log, "log");
|
||||
dukglue_register_method(ctx, &ScConsole::executeLegacy, "executeLegacy");
|
||||
}
|
||||
};
|
||||
} // namespace OpenRCT2::Scripting
|
||||
|
||||
Reference in New Issue
Block a user