use #pragma once to make achieve shorter compile times

This commit is contained in:
Jenny White 2018-04-28 10:44:41 +03:00
parent 38cda23831
commit 37caefd879
90 changed files with 124 additions and 393 deletions

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CDUMPER_HPP_ #pragma once
#define CDUMPER_HPP_
#include <fstream> #include <fstream>
#include <string> #include <string>
@ -116,5 +115,3 @@ public:
private: private:
std::fstream m_file; std::fstream m_file;
}; };
#endif /* CDUMPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CHATSTACK_HPP_ #pragma once
#define CHATSTACK_HPP_
#define CHATSTACK_INTERVAL 0.8f #define CHATSTACK_INTERVAL 0.8f
@ -30,5 +29,3 @@ void Reset();
extern std::stack<msg_t> stack; extern std::stack<msg_t> stack;
extern float last_say; extern float last_say;
} }
#endif /* CHATSTACK_HPP_ */

View File

@ -5,9 +5,6 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef DUMP_HPP_ #pragma once
#define DUMP_HPP_
void PerformClassDump(); void PerformClassDump();
#endif /* DUMP_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CONDITIONS_HPP_ #pragma once
#define CONDITIONS_HPP_
#include <entitycache.hpp> #include <entitycache.hpp>
#include "netvars.hpp" #include "netvars.hpp"
@ -315,5 +314,3 @@ template <condition cond> inline void RemoveCondition(CachedEntity *ent)
} }
CondBitSet<cond, false>(CE_VAR(ent, netvar.iCond, condition_data_s)); CondBitSet<cond, false>(CE_VAR(ent, netvar.iCond, condition_data_s));
} }
#endif /* CONDITIONS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CRITS_HPP_ #pragma once
#define CRITS_HPP_
class CUserCmd; class CUserCmd;
class IClientEntity; class IClientEntity;
@ -42,5 +41,3 @@ bool random_crits_enabled();
extern int *g_PredictionRandomSeed; extern int *g_PredictionRandomSeed;
extern std::unordered_map<int, int> command_number_mod; extern std::unordered_map<int, int> command_number_mod;
#endif /* CRITS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CVWRAPPER_HPP_ #pragma once
#define CVWRAPPER_HPP_
class ConVar; class ConVar;
@ -189,5 +188,3 @@ std::vector<CatVar *> &CatVarList();
void RegisterCatCommands(); void RegisterCatCommands();
void RegisterCatVars(); void RegisterCatVars();
int GetRebasedCatVarCount(); int GetRebasedCatVarCount();
#endif /* CVWRAPPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ENTITYCACHE_HPP_ #pragma once
#define ENTITYCACHE_HPP_
#include "entityhitboxcache.hpp" #include "entityhitboxcache.hpp"
#include "averager.hpp" #include "averager.hpp"
@ -136,5 +135,3 @@ void Update();
void Invalidate(); void Invalidate();
extern int max; extern int max;
} }
#endif /* ENTITYCACHE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ENTITYHITBOXCACHE_HPP_ #pragma once
#define ENTITYHITBOXCACHE_HPP_
#include <mathlib/vector.h> #include <mathlib/vector.h>
#include <mathlib/mathlib.h> #include <mathlib/mathlib.h>
@ -70,5 +69,3 @@ inline EntityHitboxCache &Get(unsigned i)
return array[i]; return array[i];
} }
} }
#endif /* ENTITYHITBOXCACHE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ENUMS_HPP_ #pragma once
#define ENUMS_HPP_
enum EntityType enum EntityType
{ {
@ -104,5 +103,3 @@ enum hitbox_t
knee_R = 16, knee_R = 16,
foot_R = 17 foot_R = 17
}; };
#endif /* ENUMS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef GLOBALS_H_ #pragma once
#define GLOBALS_H_
#include <time.h> #include <time.h>
@ -54,5 +53,3 @@ class CUserCmd;
extern CUserCmd *g_pUserCmd; extern CUserCmd *g_pUserCmd;
extern GlobalSettings g_Settings; extern GlobalSettings g_Settings;
#endif /* GLOBALS_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACK_H_ #pragma once
#define HACK_H_
class IHack; class IHack;
class CUserCmd; class CUserCmd;
@ -38,5 +37,3 @@ void Shutdown();
void CC_Cat(const CCommand &args); void CC_Cat(const CCommand &args);
extern ConCommand *c_Cat; extern ConCommand *c_Cat;
} }
#endif /* HACK_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_ACHIEVEMENT_HPP_ #pragma once
#define HACKS_ACHIEVEMENT_HPP_
namespace hacks namespace hacks
{ {
@ -20,5 +19,3 @@ void Unlock();
} }
} }
} }
#endif /* HACKS_ACHIEVEMENT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HAIMBOT_H_ #pragma once
#define HAIMBOT_H_
#include "common.hpp" #include "common.hpp"
@ -63,5 +62,3 @@ float EffectiveTargetingRange();
} }
} }
} }
#endif /* HAIMBOT_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ANTIAIM_H_ #pragma once
#define ANTIAIM_H_
class CatVar; class CatVar;
class CUserCmd; class CUserCmd;
@ -39,5 +38,3 @@ void ProcessUserCmd(CUserCmd *cmd);
} }
} }
} }
#endif /* ANTIAIM_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_ANTIBACKSTAB_HPP_ #pragma once
#define HACKS_ANTIBACKSTAB_HPP_
namespace hacks namespace hacks
{ {
@ -20,5 +19,3 @@ void PaintTraverse();
} }
} }
} }
#endif /* HACKS_ANTIBACKSTAB_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_ANTIDISGUISE_HPP_ #pragma once
#define HACKS_ANTIDISGUISE_HPP_
#include "common.hpp" #include "common.hpp"
@ -23,5 +22,3 @@ void Draw();
} }
} }
} }
#endif /* HACKS_ANTIDISGUISE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_AUTOBACKSTAB_HPP_ #pragma once
#define HACKS_AUTOBACKSTAB_HPP_
namespace hacks namespace hacks
{ {
@ -20,5 +19,3 @@ const Vector GetWorldSpaceCenter(CachedEntity *ent);
} }
} }
} }
#endif /* HACKS_AUTOBACKSTAB_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat & Lighty * Author: nullifiedcat & Lighty
*/ */
#ifndef HACKS_AUTODETONATOR_HPP_ #pragma once
#define HACKS_AUTODETONATOR_HPP_
#include "common.hpp" #include "common.hpp"
@ -20,5 +19,3 @@ void CreateMove();
} }
} }
} }
#endif /* HACKS_AUTODETONATOR_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_AUTOHEAL_HPP_ #pragma once
#define HACKS_AUTOHEAL_HPP_
#include "common.hpp" #include "common.hpp"
@ -41,5 +40,3 @@ bool CanHeal(int idx);
} }
} }
} }
#endif /* HACKS_AUTOHEAL_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_AUTOREFLECT_HPP_ #pragma once
#define HACKS_AUTOREFLECT_HPP_
#include "common.hpp" #include "common.hpp"
@ -29,5 +28,3 @@ bool IsEntStickyBomb(CachedEntity *ent);
} }
} }
} }
#endif /* HACKS_AUTOREFLECT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_AUTOSTICKY_HPP_ #pragma once
#define HACKS_AUTOSTICKY_HPP_
#include "common.hpp" #include "common.hpp"
@ -26,5 +25,3 @@ void CreateMove();
} }
} }
} }
#endif /* HACKS_AUTOSTICKY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HBUNNYHOP_H_ #pragma once
#define HBUNNYHOP_H_
#include "common.hpp" #include "common.hpp"
@ -23,5 +22,3 @@ void CreateMove();
} }
} }
} }
#endif /* HBUNNYHOP_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HESP_H_ #pragma once
#define HESP_H_
#include "common.hpp" #include "common.hpp"
@ -64,5 +63,3 @@ void ResetEntityStrings();
} }
} }
} }
#endif /* HESP_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_KILLSAY_HPP_ #pragma once
#define HACKS_KILLSAY_HPP_
#include "common.hpp" #include "common.hpp"
@ -35,5 +34,3 @@ extern const std::vector<std::string> builtin_nonecore_mlg;
} }
} }
} }
#endif /* HACKS_KILLSAY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_LAGEXPLOIT_HPP_ #pragma once
#define HACKS_LAGEXPLOIT_HPP_
#include "common.hpp" #include "common.hpp"
@ -27,5 +26,3 @@ bool ExploitActive();
} }
} }
} }
#endif /* HACKS_LAGEXPLOIT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_MISC_HPP_ #pragma once
#define HACKS_MISC_HPP_
#include "common.hpp" #include "common.hpp"
@ -86,5 +85,3 @@ void Schema_Reload();
void CC_Misc_Disconnect_VAC(); void CC_Misc_Disconnect_VAC();
DECLARE_HACK_SINGLETON(Misc);*/ DECLARE_HACK_SINGLETON(Misc);*/
#endif /* HACKS_MISC_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_NOISEMAKER_HPP_ #pragma once
#define HACKS_NOISEMAKER_HPP_
#include "common.hpp" #include "common.hpp"
@ -23,5 +22,3 @@ void CreateMove();
} }
} }
} }
#endif /* HACKS_NOISEMAKER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_RADAR_HPP_ #pragma once
#define HACKS_RADAR_HPP_
#include "visual/atlas.hpp" #include "visual/atlas.hpp"
#include "common.hpp" #include "common.hpp"
@ -30,5 +29,3 @@ void Draw();
} }
} }
} }
#endif /* HACKS_RADAR_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_SKINCHANGER_HPP_ #pragma once
#define HACKS_SKINCHANGER_HPP_
#include "common.hpp" #include "common.hpp"
@ -145,5 +144,3 @@ void DrawText();
} }
} }
} }
#endif /* HACKS_SKINCHANGER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_SPAM_HPP_ #pragma once
#define HACKS_SPAM_HPP_
#include "common.hpp" #include "common.hpp"
@ -36,5 +35,3 @@ void Reload();
} }
} }
} }
#endif /* HACKS_SPAM_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_SPYALERT_HPP_ #pragma once
#define HACKS_SPYALERT_HPP_
#include "common.hpp" #include "common.hpp"
@ -25,5 +24,3 @@ void Draw();
} }
} }
} }
#endif /* HACKS_SPYALERT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HTRIGGER_H_ #pragma once
#define HTRIGGER_H_
#include "common.hpp" #include "common.hpp"
@ -31,5 +30,3 @@ bool CheckLineBox(Vector B1, Vector B2, Vector L1, Vector L2, Vector &Hit);
} }
} }
} }
#endif /* HTRIGGER_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_UBERSPAM_HPP_ #pragma once
#define HACKS_UBERSPAM_HPP_
#include "common.hpp" #include "common.hpp"
@ -26,5 +25,3 @@ extern const std::vector<std::string> builtin_nonecore;
} }
} }
} }
#endif /* HACKS_UBERSPAM_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HACKS_HACKLIST_HPP_ #pragma once
#define HACKS_HACKLIST_HPP_
#if ENABLE_VISUALS == 1 #if ENABLE_VISUALS == 1
@ -45,5 +44,3 @@
#include "Announcer.hpp" #include "Announcer.hpp"
#include "Killstreak.hpp" #include "Killstreak.hpp"
#include "CatBot.hpp" #include "CatBot.hpp"
#endif /* HACKS_HACKLIST_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HELPERS_HPP_ #pragma once
#define HELPERS_HPP_
class CachedEntity; class CachedEntity;
class IClientEntity; class IClientEntity;
@ -168,5 +167,3 @@ template <typename... Args> std::string format(const Args &... args)
extern const std::string classes[10]; extern const std::string classes[10];
extern const char *powerups[POWERUP_COUNT]; extern const char *powerups[POWERUP_COUNT];
#endif /* HELPERS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HOOKS_H_ #pragma once
#define HOOKS_H_
// Parts of copypasted code // Parts of copypasted code
// Credits: Casual_Hacker // Credits: Casual_Hacker
@ -66,5 +65,3 @@ extern VMTHook materialsystem;
extern VMTHook enginevgui; extern VMTHook enginevgui;
extern VMTHook vstd; extern VMTHook vstd;
} }
#endif /* HOOKS_H_ */

View File

@ -5,12 +5,9 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CREATEMOVE_H_ #pragma once
#define CREATEMOVE_H_
class CUserCmd; class CUserCmd;
extern bool *bSendPackets; extern bool *bSendPackets;
bool CreateMove_hook(void *, float, CUserCmd *); bool CreateMove_hook(void *, float, CUserCmd *);
#endif /* CREATEMOVE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PAINTTRAVERSE_H_ #pragma once
#define PAINTTRAVERSE_H_
class CatVar; class CatVar;
@ -14,5 +13,3 @@ extern CatVar no_zoom;
extern CatVar clean_screenshots; extern CatVar clean_screenshots;
extern CatVar disable_visuals; extern CatVar disable_visuals;
void PaintTraverse_hook(void *, unsigned int, bool, bool); void PaintTraverse_hook(void *, unsigned int, bool, bool);
#endif /* PAINTTRAVERSE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HOOKEDMETHODS_H_ #pragma once
#define HOOKEDMETHODS_H_
#include "common.hpp" #include "common.hpp"
@ -70,5 +69,3 @@ void DoSDLUnhooking();
#include "CreateMove.hpp" #include "CreateMove.hpp"
#include "PaintTraverse.hpp" #include "PaintTraverse.hpp"
#include "others.hpp" #include "others.hpp"
#endif /* HOOKEDMETHODS_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef OTHERS_H_ #pragma once
#define OTHERS_H_
class INetMessage; class INetMessage;
class CViewSetup; class CViewSetup;
@ -60,5 +59,3 @@ typedef IMaterial *(*FindMaterial_t)(void *, const char *, const char *, bool,
// extern unsigned int* swapwindow_ptr; // extern unsigned int* swapwindow_ptr;
// extern unsigned int swapwindow_orig; // extern unsigned int swapwindow_orig;
#endif /* OTHERS_H_ */

View File

@ -5,10 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef HOOVY_HPP_ #pragma once
#define HOOVY_HPP_
void UpdateHoovyList(); void UpdateHoovyList();
bool IsHoovy(CachedEntity *entity); bool IsHoovy(CachedEntity *entity);
#endif /* HOOVY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef INTERFACES_HPP_ #pragma once
#define INTERFACES_HPP_
#include <sharedobj.hpp> #include <sharedobj.hpp>
#include <string> #include <string>
@ -88,5 +87,3 @@ extern IEngineVGui *g_IEngineVGui;
extern IUniformRandomStream *g_pUniformStream; extern IUniformRandomStream *g_pUniformStream;
void CreateInterfaces(); void CreateInterfaces();
#endif /* INTERFACES_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ITEMTYPES_HPP_ #pragma once
#define ITEMTYPES_HPP_
#include <map> #include <map>
#include <string> #include <string>
@ -230,5 +229,3 @@ public:
}; };
extern ItemManager g_ItemManager; extern ItemManager g_ItemManager;
#endif /* ITEMTYPES_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef LOCALPLAYER_HPP_ #pragma once
#define LOCALPLAYER_HPP_
#include <mathlib/vector.h> #include <mathlib/vector.h>
@ -43,5 +42,3 @@ public:
#define LOCAL_W g_pLocalPlayer->weapon() #define LOCAL_W g_pLocalPlayer->weapon()
extern LocalPlayer *g_pLocalPlayer; extern LocalPlayer *g_pLocalPlayer;
#endif /* LOCALPLAYER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef LOGGING_HPP_ #pragma once
#define LOGGING_HPP_
#include <stdio.h> #include <stdio.h>
@ -26,5 +25,3 @@ void Info(const char *fmt, ...);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* LOGGING_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CBASECONTAINER_H_ #pragma once
#define CBASECONTAINER_H_
#if TEXTMODE_VAC != 1
#include "menu/CBaseWidget.h" #include "menu/CBaseWidget.h"
class CBaseContainer : public CBaseWidget, public virtual IWidget class CBaseContainer : public CBaseWidget, public virtual IWidget
@ -53,5 +52,3 @@ public:
std::vector<IWidget *> m_children; std::vector<IWidget *> m_children;
}; };
#endif
#endif /* CBASECONTAINER_H_ */

View File

@ -5,19 +5,14 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CBASEWIDGET_H_ #pragma once
#define CBASEWIDGET_H_
#if TEXTMODE_VAC != 1
#include "menu/IWidget.h" #include "menu/IWidget.h"
// #include "../beforecheaders.h"
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <cstring> #include <cstring>
#include <algorithm> #include <algorithm>
// #include "../aftercheaders.h"
#include "logging.hpp" #include "logging.hpp"
#include <KeyValues.h> #include <KeyValues.h>
class CBaseWidget : public virtual IWidget class CBaseWidget : public virtual IWidget
@ -177,5 +172,3 @@ public:
KeyValues::AutoDelete m_KeyValues; KeyValues::AutoDelete m_KeyValues;
IWidget *m_pParent; IWidget *m_pParent;
}; };
#endif
#endif /* CBASEWIDGET_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CBASEWINDOW_H_ #pragma once
#define CBASEWINDOW_H_
#if TEXTMODE_VAC != 1
#include "menu/CBaseContainer.h" #include "menu/CBaseContainer.h"
class CBaseWindow : public CBaseContainer class CBaseWindow : public CBaseContainer
@ -24,5 +23,3 @@ public:
virtual void Draw(int x, int y) override; virtual void Draw(int x, int y) override;
virtual void MoveChildren() override; virtual void MoveChildren() override;
}; };
#endif
#endif /* CBASEWINDOW_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef CTEXTLABEL_H_ #pragma once
#define CTEXTLABEL_H_
#if TEXTMODE_VAC != 1
#include "menu/CBaseWidget.h" #include "menu/CBaseWidget.h"
#include "Color.h" #include "Color.h"
@ -26,5 +25,3 @@ public:
virtual void Draw(int x, int y); virtual void Draw(int x, int y);
}; };
#endif
#endif /* CTEXTLABEL_H_ */

View File

@ -5,10 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef GUI_H_ #pragma once
#define GUI_H_
#if TEXTMODE_VAC != 1
#undef RootWindow
class IWidget; class IWidget;
class CatVar; class CatVar;
@ -57,5 +55,3 @@ public:
}; };
extern CatGUI *g_pGUI; extern CatGUI *g_pGUI;
#endif
#endif /* GUI_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef IWIDGET_H_ #pragma once
#define IWIDGET_H_
#if TEXTMODE_VAC != 1
#include <utility> #include <utility>
#include <cstring> #include <cstring>
#include <functional> #include <functional>
@ -77,5 +76,3 @@ public:
virtual void SetParent(IWidget *) = 0; virtual void SetParent(IWidget *) = 0;
virtual std::string GetName() = 0; virtual std::string GetName() = 0;
}; };
#endif
#endif /* IWIDGET_H_ */

View File

@ -5,11 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef GUICOMMON_H_ #pragma once
#define GUICOMMON_H_
#if TEXTMODE_VAC != 1
#include "menu/CBaseContainer.h" #include "menu/CBaseContainer.h"
#include "menu/CBaseWidget.h" #include "menu/CBaseWidget.h"
#include "menu/GUI.h" #include "menu/GUI.h"
#endif
#endif /* GUICOMMON_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ITEM_HPP_ #pragma once
#define ITEM_HPP_
#if TEXTMODE_VAC != 1
#include "../CBaseWidget.h" #include "../CBaseWidget.h"
namespace menu namespace menu
@ -31,5 +30,3 @@ public:
}; };
} }
} }
#endif
#endif /* ITEM_HPP_ */

View File

@ -5,9 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ITEMSUBLIST_HPP_ #pragma once
#define ITEMSUBLIST_HPP_
#if TEXTMODE_VAC != 1
#include "menu/ncc/Item.hpp" #include "menu/ncc/Item.hpp"
#include "menu/ncc/List.hpp" #include "menu/ncc/List.hpp"
@ -40,5 +38,3 @@ public:
}; };
} }
} }
#endif
#endif /* ITEMSUBLIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ITEMTITLE_HPP_ #pragma once
#define ITEMTITLE_HPP_
#if TEXTMODE_VAC != 1
#include "menu/ncc/Item.hpp" #include "menu/ncc/Item.hpp"
namespace menu namespace menu
@ -27,5 +26,3 @@ public:
}; };
} }
} }
#endif
#endif /* ITEMTITLE_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ITEMVARIABLE_HPP_ #pragma once
#define ITEMVARIABLE_HPP_
#if TEXTMODE_VAC != 1
#include "menu/ncc/Item.hpp" #include "menu/ncc/Item.hpp"
class CatVar; class CatVar;
@ -38,5 +37,3 @@ public:
}; };
} }
} }
#endif
#endif /* ITEMVARIABLE_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef LIST_HPP_ #pragma once
#define LIST_HPP_
#if TEXTMODE_VAC != 1
#include "../CBaseContainer.h" #include "../CBaseContainer.h"
#include "common.hpp" #include "common.hpp"
@ -66,5 +65,3 @@ public:
}; };
} }
} }
#endif
#endif /* LIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef MENU_HPP_ #pragma once
#define MENU_HPP_
#if TEXTMODE_VAC != 1
#include "visual/drawing.hpp" #include "visual/drawing.hpp"
#include "visual/colors.hpp" #include "visual/colors.hpp"
@ -52,5 +51,3 @@ void Init();
List &MainList(); List &MainList();
} }
} }
#endif
#endif /* MENU_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef GUI_NCC_PLAYERLIST_HPP_ #pragma once
#define GUI_NCC_PLAYERLIST_HPP_
#if TEXTMODE_VAC != 1
#include "../CBaseContainer.h" #include "../CBaseContainer.h"
#include "menu/ncc/Menu.hpp" #include "menu/ncc/Menu.hpp"
namespace menu namespace menu
@ -32,5 +31,3 @@ public:
}; };
} }
} }
#endif
#endif /* GUI_NCC_PLAYERLIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PLAYERLISTENTRY_HPP_ #pragma once
#define PLAYERLISTENTRY_HPP_
#if TEXTMODE_VAC != 1
#include "menu/ncc/Menu.hpp" #include "menu/ncc/Menu.hpp"
namespace menu namespace menu
@ -78,5 +77,3 @@ public:
} }
} }
} }
#endif
#endif /* PLAYERLISTENTRY_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ROOT_HPP_ #pragma once
#define ROOT_HPP_
#if TEXTMODE_VAC != 1
#include "../CBaseWindow.h" #include "../CBaseWindow.h"
namespace menu namespace menu
@ -27,5 +26,3 @@ public:
}; };
} }
} }
#endif
#endif /* ROOT_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef TOOLTIP_HPP_ #pragma once
#define TOOLTIP_HPP_
#if TEXTMODE_VAC != 1
#include "menu/CTextLabel.h" #include "menu/CTextLabel.h"
#include "common.hpp" #include "common.hpp"
@ -31,5 +30,3 @@ public:
}; };
} }
} }
#endif
#endif /* TOOLTIP_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef NETMESSAGE_HPP_ #pragma once
#define NETMESSAGE_HPP_
#include <bitbuf.h> #include <bitbuf.h>
#include <utlvector.h> #include <utlvector.h>
@ -310,5 +309,3 @@ public:
private: private:
char m_szCommandBuffer[1024]; // buffer for received messages char m_szCommandBuffer[1024]; // buffer for received messages
}; };
#endif /* NETMESSAGE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef NETVARS_HPP_ #pragma once
#define NETVARS_HPP_
#include <logging.hpp> #include <logging.hpp>
@ -146,5 +145,3 @@ public:
}; };
extern NetVars netvar; extern NetVars netvar;
#endif /* NETVARS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef OFFSETS_HPP_ #pragma once
#define OFFSETS_HPP_
#include <stdint.h> #include <stdint.h>
#include <exception> #include <exception>
@ -166,5 +165,3 @@ struct offsets
return PlatformOffset(2, undefined, undefined); return PlatformOffset(2, undefined, undefined);
} }
}; };
#endif /* OFFSETS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PLAYERLIST_HPP_ #pragma once
#define PLAYERLIST_HPP_
#include "common.hpp" #include "common.hpp"
@ -59,5 +58,3 @@ userdata &AccessData(CachedEntity *player);
bool IsDefault(unsigned steamid); bool IsDefault(unsigned steamid);
bool IsDefault(CachedEntity *player); bool IsDefault(CachedEntity *player);
} }
#endif /* PLAYERLIST_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PLAYERRESOURCE_H_ #pragma once
#define PLAYERRESOURCE_H_
class CachedEntity; class CachedEntity;
@ -24,5 +23,3 @@ public:
}; };
extern TFPlayerResource *g_pPlayerResource; extern TFPlayerResource *g_pPlayerResource;
#endif /* PLAYERRESOURCE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PREDICTION_HPP_ #pragma once
#define PREDICTION_HPP_
#include <enums.hpp> #include <enums.hpp>
@ -33,5 +32,3 @@ void Prediction_PaintTraverse();
float DistanceToGround(CachedEntity *ent); float DistanceToGround(CachedEntity *ent);
float DistanceToGround(Vector origin); float DistanceToGround(Vector origin);
#endif /* PREDICTION_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PROFILER_H_ #pragma once
#define PROFILER_H_
#include <chrono> #include <chrono>
#include <string> #include <string>
@ -48,5 +47,3 @@ public:
#else #else
#define PROF_SECTION(id) #define PROF_SECTION(id)
#endif #endif
#endif /* PROFILER_H_ */

View File

@ -5,13 +5,11 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef PROJLOGGING_HPP_
#define PROJLOGGING_HPP_ #pragma once
namespace projectile_logging namespace projectile_logging
{ {
void Update(); void Update();
} }
#endif /* PROJLOGGING_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef SCONVARS_HPP_ #pragma once
#define SCONVARS_HPP_
#include "common.hpp" #include "common.hpp"
@ -28,5 +27,3 @@ public:
ConVar *spoof; ConVar *spoof;
}; };
} }
#endif /* SCONVARS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef SDK_HPP_ #pragma once
#define SDK_HPP_
#define private public #define private public
#define protected public #define protected public
@ -64,4 +63,5 @@
#include "sdk/HUD.h" #include "sdk/HUD.h"
#include "sdk/CGameRules.h" #include "sdk/CGameRules.h"
#endif /* SDK_HPP_ */ #undef private
#undef protected

View File

@ -6,8 +6,7 @@
// //
//=====================================================================================// //=====================================================================================//
#ifndef SCREENSPACEEFFECTS_H #pragma once
#define SCREENSPACEEFFECTS_H
#ifdef _WIN32 #ifdef _WIN32
#pragma once #pragma once
@ -89,4 +88,3 @@ extern CScreenSpaceEffectRegistration **g_ppScreenSpaceRegistrationHead;
CScreenSpaceEffectRegistration pEffectName##_reg(#pEffectName, \ CScreenSpaceEffectRegistration pEffectName##_reg(#pEffectName, \
&pEffectName##_effect); &pEffectName##_effect);
#endif

View File

@ -7,8 +7,7 @@
// $NoKeywords: $ // $NoKeywords: $
//=============================================================================// //=============================================================================//
#if !defined(IGAMEMOVEMENT_H) #pragma once
#define IGAMEMOVEMENT_H
#ifdef _WIN32 #ifdef _WIN32
#pragma once #pragma once
@ -131,5 +130,3 @@ public:
virtual Vector GetPlayerMaxs(bool ducked) const = 0; virtual Vector GetPlayerMaxs(bool ducked) const = 0;
virtual Vector GetPlayerViewOffset(bool ducked) const = 0; virtual Vector GetPlayerViewOffset(bool ducked) const = 0;
}; };
#endif // IGAMEMOVEMENT_H

View File

@ -5,8 +5,8 @@
// $NoKeywords: $ // $NoKeywords: $
// //
//=============================================================================// //=============================================================================//
#if !defined(IINPUT_H) #pragma once
#define IINPUT_H
#ifdef _WIN32 #ifdef _WIN32
#pragma once #pragma once
#endif #endif
@ -121,5 +121,3 @@ public:
}; };
// extern ::IInput *input; // extern ::IInput *input;
#endif // IINPUT_H

View File

@ -6,8 +6,7 @@
// //
//===========================================================================// //===========================================================================//
#ifndef IMATERIALSYSTEMFIXED_H #pragma once
#define IMATERIALSYSTEMFIXED_H
#ifdef _WIN32 #ifdef _WIN32
#pragma once #pragma once
@ -622,5 +621,3 @@ public:
int mips, ImageFormat fmt, int srcBufferSize, byte *srcBits, int mips, ImageFormat fmt, int srcBufferSize, byte *srcBits,
int nFlags) = 0; int nFlags) = 0;
}; };
#endif // IMATERIALSYSTEMFIXED_H

View File

@ -5,8 +5,8 @@
// $NoKeywords: $ // $NoKeywords: $
// //
//=============================================================================// //=============================================================================//
#ifndef IN_BUTTONS_H #pragma once
#define IN_BUTTONS_H
#ifdef _WIN32 #ifdef _WIN32
#pragma once #pragma once
#endif #endif
@ -38,5 +38,3 @@
#define IN_GRENADE1 (1 << 23) // grenade 1 #define IN_GRENADE1 (1 << 23) // grenade 1
#define IN_GRENADE2 (1 << 24) // grenade 2 #define IN_GRENADE2 (1 << 24) // grenade 2
#define IN_ATTACK3 (1 << 25) #define IN_ATTACK3 (1 << 25)
#endif // IN_BUTTONS_H

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef SHAREDOBJ_HPP_ #pragma once
#define SHAREDOBJ_HPP_
#include <string> #include <string>
#include <vector> #include <vector>
@ -53,5 +52,3 @@ SharedObject &libsdl();
void LoadAllSharedObjects(); void LoadAllSharedObjects();
} }
#endif /* SHAREDOBJ_HPP_ */

View File

@ -5,11 +5,8 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef TARGETHELPER_HPP_ #pragma once
#define TARGETHELPER_HPP_
class CachedEntity; class CachedEntity;
int GetScoreForEntity(CachedEntity *entity); int GetScoreForEntity(CachedEntity *entity);
#endif /* TARGETHELPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef TEXTFILE_HPP_ #pragma once
#define TEXTFILE_HPP_
#include <string> #include <string>
#include <vector> #include <vector>
@ -23,5 +22,3 @@ public:
public: public:
std::vector<std::string> lines; std::vector<std::string> lines;
}; };
#endif /* TEXTFILE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef TRACE_HPP_ #pragma once
#define TRACE_HPP_
#include <engine/IEngineTrace.h> #include <engine/IEngineTrace.h>
@ -62,5 +61,3 @@ extern FilterDefault filter_default;
extern FilterNoPlayer filter_no_player; extern FilterNoPlayer filter_no_player;
extern FilterPenetration filter_penetration; extern FilterPenetration filter_penetration;
} }
#endif /* TRACE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef USERCMD_HPP_ #pragma once
#define USERCMD_HPP_
#include <stdint.h> #include <stdint.h>
@ -31,5 +30,3 @@ public:
short mousedy; short mousedy;
bool hasbeenpredicted; bool hasbeenpredicted;
}; };
#endif /* USERCMD_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef VELOCITY_HPP_ #pragma once
#define VELOCITY_HPP_
#include "common.hpp" #include "common.hpp"
@ -18,5 +17,3 @@ extern EstimateAbsVelocity_t EstimateAbsVelocity;
void Init(); void Init();
} }
#endif /* VELOCITY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef VFUNC_HPP_ #pragma once
#define VFUNC_HPP_
template <typename F> template <typename F>
inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0) inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0)
@ -14,5 +13,3 @@ inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0)
void **vmt = *reinterpret_cast<void ***>(uintptr_t(thisptr) + offset); void **vmt = *reinterpret_cast<void ***>(uintptr_t(thisptr) + offset);
return reinterpret_cast<F>((vmt)[idx]); return reinterpret_cast<F>((vmt)[idx]);
} }
#endif /* VFUNC_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef EFFECTCHAMS_HPP_ #pragma once
#define EFFECTCHAMS_HPP_
#include "common.hpp" #include "common.hpp"
#include "sdk/ScreenSpaceEffects.h" #include "sdk/ScreenSpaceEffects.h"
@ -56,5 +55,3 @@ public:
extern EffectChams g_EffectChams; extern EffectChams g_EffectChams;
extern CScreenSpaceEffectRegistration *g_pEffectChams; extern CScreenSpaceEffectRegistration *g_pEffectChams;
} }
#endif /* EFFECTCHAMS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef EFFECTGLOW_HPP_ #pragma once
#define EFFECTGLOW_HPP_
#include "common.hpp" #include "common.hpp"
#include "sdk.hpp" #include "sdk.hpp"
@ -59,5 +58,3 @@ public:
extern EffectGlow g_EffectGlow; extern EffectGlow g_EffectGlow;
extern CScreenSpaceEffectRegistration *g_pEffectGlow; extern CScreenSpaceEffectRegistration *g_pEffectGlow;
} }
#endif /* EFFECTGLOW_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef ATLAS_HPP_ #pragma once
#define ATLAS_HPP_
#include "common.hpp" #include "common.hpp"
#include "visual/drawex.hpp" #include "visual/drawex.hpp"
@ -52,5 +51,3 @@ public:
texture_atlas &atlas(); texture_atlas &atlas();
} }
#endif /* ATLAS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef COLORS_HPP_ #pragma once
#define COLORS_HPP_
class CachedEntity; class CachedEntity;
@ -147,5 +146,3 @@ rgba_t EntityF(CachedEntity *ent);
} }
using rgba_t = colors::rgba_t; using rgba_t = colors::rgba_t;
#endif /* COLORS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef DRAWING_HPP_ #pragma once
#define DRAWING_HPP_
#include "common.hpp" #include "common.hpp"
@ -68,5 +67,3 @@ void UpdateWTS();
bool WorldToScreen(const Vector &origin, Vector &screen); bool WorldToScreen(const Vector &origin, Vector &screen);
bool EntityCenterToScreen(CachedEntity *entity, Vector &out); bool EntityCenterToScreen(CachedEntity *entity, Vector &out);
} }
#endif /* DRAWING_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat * Author: nullifiedcat
*/ */
#ifndef DRAWMGR_HPP_ #pragma once
#define DRAWMGR_HPP_
#include <mutex> #include <mutex>
@ -17,5 +16,3 @@ void render_cheat_visuals();
void BeginCheatVisuals(); void BeginCheatVisuals();
void DrawCheatVisuals(); void DrawCheatVisuals();
void EndCheatVisuals(); void EndCheatVisuals();
#endif /* DRAWMGR_HPP_ */