Expose Print Flags to ZScript

This commit is contained in:
Ricardo Luís Vaz Silva 2022-07-10 18:39:01 -03:00 committed by Christoph Oelckers
commit 03c8da8a44
2 changed files with 26 additions and 0 deletions

View file

@ -1009,6 +1009,16 @@ DEFINE_ACTION_FUNCTION(_Console, Printf)
return 0;
}
DEFINE_ACTION_FUNCTION(_Console, PrintString)
{
PARAM_PROLOGUE;
PARAM_INT(printlevel);
PARAM_STRING(str);
Printf(printlevel,"%s\n", str.GetChars());
return 0;
}
static void StopAllSounds()
{
soundEngine->StopAllChannels();