mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #533 from Ragora/bugfix-linux-release-builds
Bugfix linux release builds for Clang
This commit is contained in:
commit
c04f3ae166
4 changed files with 27 additions and 25 deletions
|
|
@ -278,7 +278,7 @@ class ParticleEmitter : public GameBase
|
||||||
// code to expose the necessary members and methods.
|
// code to expose the necessary members and methods.
|
||||||
void update( U32 ms );
|
void update( U32 ms );
|
||||||
protected:
|
protected:
|
||||||
inline void updateKeyData( Particle *part );
|
void updateKeyData( Particle *part );
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -975,13 +975,16 @@ ConsoleSetType( TypePID )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Torque::UUID uuid;
|
Torque::UUID uuid;
|
||||||
if( !uuid.fromString( argv[ 0 ] ) )
|
|
||||||
{
|
if( !uuid.fromString( argv[ 0 ] ) )
|
||||||
|
{
|
||||||
Con::errorf( "Error parsing UUID in PID: '%s'", argv[ 0 ] );
|
Con::errorf( "Error parsing UUID in PID: '%s'", argv[ 0 ] );
|
||||||
*pid = NULL;
|
*pid = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
*pid = SimPersistID::findOrCreate( uuid );
|
{
|
||||||
|
*pid = SimPersistID::findOrCreate(uuid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -68,32 +68,15 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "core/util/md5.h"
|
#include "core/util/md5.h"
|
||||||
|
#include "core/util/uuid.h"
|
||||||
#include "console/enginePrimitives.h"
|
#include "console/enginePrimitives.h"
|
||||||
|
|
||||||
#if defined (TORQUE_OS_MAC) && (defined(TORQUE_CPU_X64) || defined(TORQUE_CPU_ARM64))
|
|
||||||
typedef unsigned int unsigned32;
|
|
||||||
#else
|
|
||||||
typedef unsigned long unsigned32;
|
|
||||||
#endif
|
|
||||||
typedef unsigned short unsigned16;
|
|
||||||
typedef unsigned char unsigned8;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char nodeID[6];
|
char nodeID[6];
|
||||||
} uuid_node_t;
|
} uuid_node_t;
|
||||||
|
|
||||||
#undef xuuid_t
|
#undef xuuid_t
|
||||||
|
|
||||||
typedef struct _uuid_t
|
|
||||||
{
|
|
||||||
unsigned32 time_low;
|
|
||||||
unsigned16 time_mid;
|
|
||||||
unsigned16 time_hi_and_version;
|
|
||||||
unsigned8 clock_seq_hi_and_reserved;
|
|
||||||
unsigned8 clock_seq_low;
|
|
||||||
unsigned8 node[6];
|
|
||||||
} xuuid_t;
|
|
||||||
|
|
||||||
/* data type for UUID generator persistent state */
|
/* data type for UUID generator persistent state */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,27 @@
|
||||||
#endif
|
#endif
|
||||||
#include "console/engineTypeInfo.h"
|
#include "console/engineTypeInfo.h"
|
||||||
|
|
||||||
|
typedef unsigned int unsigned32;
|
||||||
|
typedef unsigned short unsigned16;
|
||||||
|
typedef unsigned char unsigned8;
|
||||||
|
|
||||||
|
class xuuid_t
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
unsigned32 time_low;
|
||||||
|
unsigned16 time_mid;
|
||||||
|
unsigned16 time_hi_and_version;
|
||||||
|
unsigned8 clock_seq_hi_and_reserved;
|
||||||
|
unsigned8 clock_seq_low;
|
||||||
|
unsigned8 node[6];
|
||||||
|
};
|
||||||
|
|
||||||
namespace Torque
|
namespace Torque
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/// A universally unique identifier.
|
/// A universally unique identifier.
|
||||||
class UUID
|
class UUID : public xuuid_t
|
||||||
{
|
{
|
||||||
friend class UUIDEngineExport;
|
friend class UUIDEngineExport;
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue