First take at serialization

This commit is contained in:
ZZYZX 2017-01-24 00:17:12 +02:00
commit 3e093a20ff
8 changed files with 128 additions and 43 deletions

View file

@ -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;