Merge remote-tracking branch 'gzdoom/master' into big_beautiful_merge
This commit is contained in:
commit
3fdd22ef91
1433 changed files with 484787 additions and 9566 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "c_console.h"
|
||||
#include "c_dispatch.h"
|
||||
#include "c_cvars.h"
|
||||
#include "i_protocol.h"
|
||||
#include "engineerrors.h"
|
||||
#include "printf.h"
|
||||
#include "palutil.h"
|
||||
|
|
@ -1281,12 +1282,10 @@ void FilterCompactCVars (TArray<FBaseCVar *> &cvars, uint32_t filter)
|
|||
}
|
||||
}
|
||||
|
||||
void C_WriteCVars (uint8_t **demo_p, uint32_t filter, bool compact)
|
||||
void C_WriteCVars (TArrayView<uint8_t>& demo_p, uint32_t filter, bool compact)
|
||||
{
|
||||
FString dump = C_GetMassCVarString(filter, compact);
|
||||
size_t dumplen = dump.Len() + 1; // include terminating \0
|
||||
memcpy(*demo_p, dump.GetChars(), dumplen);
|
||||
*demo_p += dumplen;
|
||||
WriteFString(dump, demo_p);
|
||||
}
|
||||
|
||||
FString C_GetMassCVarString (uint32_t filter, bool compact)
|
||||
|
|
@ -1322,9 +1321,9 @@ FString C_GetMassCVarString (uint32_t filter, bool compact)
|
|||
return dump;
|
||||
}
|
||||
|
||||
void C_ReadCVars (uint8_t **demo_p)
|
||||
void C_ReadCVars (TArrayView<uint8_t>& demo_p)
|
||||
{
|
||||
char *ptr = *((char **)demo_p);
|
||||
char *ptr = (char *)demo_p.Data();
|
||||
char *breakpt;
|
||||
|
||||
if (*ptr++ != '\\')
|
||||
|
|
@ -1387,7 +1386,7 @@ void C_ReadCVars (uint8_t **demo_p)
|
|||
}
|
||||
}
|
||||
}
|
||||
*demo_p += strlen (*((char **)demo_p)) + 1;
|
||||
AdvanceStream(demo_p, strlen((char*)demo_p.Data()) + 1);
|
||||
}
|
||||
|
||||
struct FCVarBackup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue