mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
saveload fix
This commit is contained in:
@@ -113,9 +113,9 @@ DECLARE_FIELD_SIZE( FIELD_SOUNDNAME, sizeof(int))
|
||||
DECLARE_FIELD_SIZE( FIELD_INPUT, sizeof(int))
|
||||
#ifdef POSIX
|
||||
// pointer to members under gnuc are 8bytes if you have a virtual func
|
||||
DECLARE_FIELD_SIZE( FIELD_FUNCTION, sizeof(uint64))
|
||||
DECLARE_FIELD_SIZE( FIELD_FUNCTION, 2 * sizeof(void *))
|
||||
#else
|
||||
DECLARE_FIELD_SIZE( FIELD_FUNCTION, sizeof(int *))
|
||||
DECLARE_FIELD_SIZE( FIELD_FUNCTION, sizeof(void *))
|
||||
#endif
|
||||
DECLARE_FIELD_SIZE( FIELD_VMATRIX, 16 * sizeof(float))
|
||||
DECLARE_FIELD_SIZE( FIELD_VMATRIX_WORLDSPACE, 16 * sizeof(float))
|
||||
@@ -202,7 +202,7 @@ extern ISaveRestoreOps *eventFuncs;
|
||||
#define DEFINE_OUTPUT( name, outputname ) { FIELD_CUSTOM, #name, { _offsetof(classNameTypedef, name), 0 }, 1, FTYPEDESC_OUTPUT | FTYPEDESC_SAVE | FTYPEDESC_KEY, outputname, eventFuncs }
|
||||
|
||||
// replaces EXPORT table for portability and non-DLL based systems (xbox)
|
||||
#define DEFINE_FUNCTION_RAW( function, func_type ) { FIELD_VOID, nameHolder.GenerateName(#function), { NULL, NULL }, 1, FTYPEDESC_FUNCTIONTABLE, NULL, NULL, (inputfunc_t)((func_type)(&classNameTypedef::function)) }
|
||||
#define DEFINE_FUNCTION_RAW( function, func_type ) { FIELD_VOID, nameHolder.GenerateName(#function), { NULL, NULL }, 1, FTYPEDESC_FUNCTIONTABLE, NULL, NULL, (inputfunc_t)(&classNameTypedef::function) }
|
||||
#define DEFINE_FUNCTION( function ) DEFINE_FUNCTION_RAW( function, inputfunc_t )
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ struct typedescription_t
|
||||
|
||||
// Used to track exclusion of baseclass fields
|
||||
int override_count;
|
||||
|
||||
|
||||
// Tolerance for field errors for float fields
|
||||
float fieldTolerance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user