Skip to content

Commit

Permalink
Move always.h from headers to cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Feb 24, 2024
1 parent b013231 commit d98a03f
Show file tree
Hide file tree
Showing 1,051 changed files with 898 additions and 565 deletions.
1 change: 1 addition & 0 deletions src/editor/editmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "editmain.h"

#if !defined GAME_DLL && defined PLATFORM_WINDOWS
Expand Down
2 changes: 0 additions & 2 deletions src/editor/editmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
#pragma once

#include "always.h"

#ifdef GAME_DLL
extern HWND &g_applicationHWnd;
#else
Expand Down
1 change: 1 addition & 0 deletions src/game/client/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "color.h"
#include "colorspace.h"

Expand Down
2 changes: 0 additions & 2 deletions src/game/client/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
#pragma once

#include "always.h"

class RGBColor
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/game/client/crashpreferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "crashpreferences.h"
#include <captainslog.h>
#include <cstdio>
Expand Down
1 change: 0 additions & 1 deletion src/game/client/crashpreferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "userpreferences.h"

class CrashPreferences : public UserPreferences
Expand Down
1 change: 1 addition & 0 deletions src/game/client/credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "credits.h"
#include "displaystringmanager.h"
#include "gamefont.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/credits.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* LICENSE
*/
#pragma once
#include "always.h"

#include "ini.h"
#include "subsysteminterface.h"
#include "unicodestring.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "display.h"
#include "displaystringmanager.h"
#include "gamefont.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include "always.h"
#include "color.h"
#include "coord.h"
#include "gamelod.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/displaystring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "displaystring.h"

DisplayString::DisplayString() : m_textString(), m_font(nullptr), m_next(nullptr), m_prev(nullptr) {}
Expand Down
1 change: 0 additions & 1 deletion src/game/client/displaystring.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "coord.h"
#include "gamefont.h"
#include "mempoolobj.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/displaystringmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "displaystringmanager.h"

#ifndef GAME_DLL
Expand Down
1 change: 0 additions & 1 deletion src/game/client/displaystringmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "displaystring.h"
#include "subsysteminterface.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/client/draw/tintenvelope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "tintenvelope.h"
#include "color.h"
#include "xfer.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/draw/tintenvelope.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "mempoolobj.h"
#include "snapshot.h"
#include "vector3.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/drawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "drawable.h"
#include "aiupdate.h"
#include "audiomanager.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/drawable.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "anim2d.h"
#include "module.h"
#include "object.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/drawable/update/swayclientupdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "swayclientupdate.h"
#include "drawable.h"
#include "matrix3d.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/drawgroupinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "drawgroupinfo.h"
#include "color.h"
#include "colorspace.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/drawgroupinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"

struct FieldParse;
Expand Down
1 change: 1 addition & 0 deletions src/game/client/eva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "eva.h"
#ifdef GAME_DLL
#include "hooker.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/eva.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* LICENSE
*/
#pragma once
#include "always.h"

#include "asciistring.h"
#include "audioeventrts.h"
#include "mempoolobj.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/fxlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "fxlist.h"
#include "audioeventrts.h"
#include "audiomanager.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gameclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "gameclient.h"
#include "anim2d.h"
#include "campaignmanager.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/gameclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "coord.h"
#include "gamemessage.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gametext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "gametext.h"
#include "filesystem.h"
#include "main.h" // For g_applicationHWnd
Expand Down
1 change: 0 additions & 1 deletion src/game/client/gametext.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "file.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/globallanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "globallanguage.h"
#include "gamemath.h"
#include "globaldata.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/animatewindowmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "animatewindowmanager.h"
#include "gamewindow.h"

Expand Down
2 changes: 1 addition & 1 deletion src/game/client/gui/animatewindowmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* LICENSE
*/
#pragma once
#include "always.h"

#include "coord.h"
#include "mempoolobj.h"
#include "processanimatewindow.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/gui/challengegenerals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/

#include "always.h"
#include "challengegenerals.h"
#include "image.h"
#include "ini.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/gui/challengegenerals.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "gamelogic.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "actionmanager.h"
#include "animatewindowmanager.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/gui/controlbar/controlbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* LICENSE
*/
#pragma once
#include "always.h"

#include "asciistring.h"
#include "audioeventrts.h"
#include "behaviormodule.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarbeacon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "gadgettextentry.h"
#include "gamewindowmanager.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "aiupdate.h"
#include "battleplanupdate.h"
#include "buildassistant.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "audioeventrts.h"
#include "audiomanager.h"
#include "behaviormodule.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarmultiselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "gadgetpushbutton.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarobserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "colorspace.h"
#include "controlbar.h"
#include "gadgetpushbutton.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarocltimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "gadgetprogressbar.h"
#include "gadgetstatictext.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarresizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "ini.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/controlbar/controlbarscheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbarscheme.h"
#include "colorspace.h"
#include "controlbar.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/gui/controlbar/controlbarscheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* LICENSE
*/
#pragma once
#include "always.h"

#include "asciistring.h"
#include "coord.h"
#include "gametype.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "gadgetpushbutton.h"
#include "hotkey.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "controlbar.h"
#include "gadgetstatictext.h"
#include "gametext.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/disconnectmenu/disconnectmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "disconnectmenu.h"

#ifndef GAME_DLL
Expand Down
1 change: 0 additions & 1 deletion src/game/client/gui/disconnectmenu/disconnectmenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* LICENSE
*/
#pragma once
#include "always.h"

class DisconnectManager;

Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/gadget/gadgetcheckbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "always.h"
#include "gadgetcheckbox.h"
#include "gamewindowmanager.h"
#include "keyboard.h"
Expand Down
Loading

0 comments on commit d98a03f

Please sign in to comment.