First take at serialization
This commit is contained in:
parent
23c9386add
commit
3e093a20ff
8 changed files with 128 additions and 43 deletions
|
|
@ -69,6 +69,8 @@
|
|||
#include "c_consolebuffer.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
FString FStringFormat(VM_ARGS); // extern from thingdef_data.cpp
|
||||
|
||||
#include "gi.h"
|
||||
|
||||
#define LEFTMARGIN 8
|
||||
|
|
@ -1332,6 +1334,14 @@ DEFINE_ACTION_FUNCTION(_Console, HideConsole)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_Console, Printf)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
FString s = FStringFormat(param, defaultparam, numparam, ret, numret);
|
||||
Printf("%s", s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool C_HandleKey (event_t *ev, FCommandBuffer &buffer)
|
||||
{
|
||||
int data1 = ev->data1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue