Compilation changes

Few compile time attempts to speed things up

Swap include guards for pramga once
Change compile options in the cmakeLists for source
generate a pch

small tweaks
This commit is contained in:
marauder2k7 2026-05-21 23:55:35 +01:00
parent 0df3bea9ca
commit 68e762130d
1016 changed files with 2848 additions and 5532 deletions

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_ANIM_CLIP_H_
#define _AFX_ANIM_CLIP_H_
#pragma once
class afxAnimClipData : public GameBaseData
{
@ -74,7 +73,3 @@ public:
DECLARE_CONOBJECT(afxAnimClipData);
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_ANIM_CLIP_H_

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_ANIM_LOCK_H_
#define _AFX_ANIM_LOCK_H_
#pragma once
class afxAnimLockData : public GameBaseData
{
@ -42,6 +41,3 @@ public:
DECLARE_CONOBJECT(afxAnimLockData);
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_ANIM_LOCK_H_

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_AREA_DAMAGE_H_
#define _AFX_AREA_DAMAGE_H_
#pragma once
#include "afx/afxEffectDefs.h"
@ -55,7 +54,3 @@ public:
DECLARE_CONOBJECT(afxAreaDamageData);
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_AREA_DAMAGE_H_

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_AUDIO_BANK_H_
#define _AFX_AUDIO_BANK_H_
#pragma once
class SFXDescription;
@ -60,7 +59,3 @@ public:
DECLARE_CONOBJECT(afxAudioBank);
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_AUDIO_BANK_H_

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_BILLBOARD_H_
#define _AFX_BILLBOARD_H_
#pragma once
#include "afx/afxEffectDefs.h"
@ -115,7 +114,3 @@ public:
DECLARE_CONOBJECT(afxBillboard);
DECLARE_CATEGORY("UNLISTED");
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_BILLBOARD_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_CAMERA_PUPPET_H_
#define _AFX_CAMERA_PUPPET_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_CAMERA_SHAKE_H_
#define _AFX_CAMERA_SHAKE_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_COLLISION_EVENT_H_
#define _AFX_COLLISION_EVENT_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_COMPONENT_EFFECT_H_
#define _AFX_COMPONENT_EFFECT_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_CONSOLE_MESSAGE_H_
#define _AFX_CONSOLE_MESSAGE_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_DAMAGE_H_
#define _AFX_DAMAGE_H_

View file

@ -22,9 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#ifndef _AFX_FOOT_SWITCH_H_
#define _AFX_FOOT_SWITCH_H_
#pragma once
class afxFootSwitchData : public GameBaseData
{
@ -51,5 +50,3 @@ public:
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#endif // _AFX_FOOT_SWITCH_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_GUI_CONTROLLER_H_
#define _AFX_GUI_CONTROLLER_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_GUI_TEXT_H_
#define _AFX_GUI_TEXT_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_LIGHT_H_
#define _AFX_LIGHT_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_T3D_LIGHT_BASE_H_
#define _AFX_T3D_LIGHT_BASE_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_MACHINE_GUN_H_
#define _AFX_MACHINE_GUN_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_MODEL_H_
#define _AFX_MODEL_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_MOORING_H_
#define _AFX_MOORING_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_MULTI_LIGHT_H_
#define _AFX_MULTI_LIGHT_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_EMITTER_PARTICLE_H_
#define _AFX_EMITTER_PARTICLE_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_PHRASE_EFFECT_H_
#define _AFX_PHRASE_EFFECT_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_PHYSICAL_ZONE_H_
#define _AFX_PHYSICAL_ZONE_H_

View file

@ -22,6 +22,8 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_PLAYER_MOVEMENT_H_
#define _AFX_PLAYER_MOVEMENT_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_PLAYER_PUPPET_H_
#define _AFX_PLAYER_PUPPET_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_T3D_POINT_LIGHT_H_
#define _AFX_T3D_POINT_LIGHT_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_PROJECTILE_H_
#define _AFX_PROJECTILE_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_SCRIPT_EVENT_H_
#define _AFX_SCRIPT_EVENT_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_T3D_SPOT_LIGHT_H_
#define _AFX_T3D_SPOT_LIGHT_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_STATIC_SHAPE_H_
#define _AFX_STATIC_SHAPE_H_

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_VOLUME_LIGHT_H_
#define _AFX_VOLUME_LIGHT_H_

View file

@ -22,16 +22,13 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_ZODIAC_H_
#define _AFX_ZODIAC_H_
#ifndef _ARCANE_FX_H_
#include "afx/arcaneFX.h"
#endif
#ifndef _AFX_ZODIAC_DEFS_H_
#include "afx/ce/afxZodiacDefs.h"
#endif
#include "console/typeValidators.h"

View file

@ -22,6 +22,7 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_ZODIAC_DEFS_H_
#define _AFX_ZODIAC_DEFS_H_

View file

@ -22,19 +22,15 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_ZODIAC_MGR_H_
#define _AFX_ZODIAC_MGR_H_
#ifndef _ARCANE_FX_H_
#include "afx/arcaneFX.h"
#endif
#ifndef _AFX_ZODIAC_DEFS_H_
#include "afx/ce/afxZodiacDefs.h"
#endif
#ifndef _AFX_ZODIAC_H_
#include "afx/ce/afxZodiac.h"
#endif
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//

View file

@ -22,15 +22,13 @@
// IN THE SOFTWARE.
//
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
#pragma once
#ifndef _AFX_ZODIAC_PLANE_H_
#define _AFX_ZODIAC_PLANE_H_
#include "afx/ce/afxZodiacDefs.h"
#ifndef _AFX_ZODIAC_H_
#include "afx/ce/afxZodiac.h"
#endif
class afxZodiacPlaneData : public GameBaseData, public afxZodiacDefs
{