From 58fe44f836515b76fe084c6a6ae342f07edb5c2b Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 17 May 2025 17:20:33 +0100 Subject: [PATCH] init.h -> init.hpp --- Source/DiabloUI/diabloui.cpp | 2 +- Source/DiabloUI/dialogs.cpp | 2 +- Source/controls/touch/renderers.cpp | 2 +- Source/diablo.cpp | 2 +- Source/engine/dx.cpp | 2 +- Source/engine/render/scrollrt.cpp | 2 +- Source/init.cpp | 2 +- Source/{init.h => init.hpp} | 2 +- Source/menu.cpp | 2 +- Source/mpq/mpq_reader.cpp | 1 + Source/mpq/mpq_reader.hpp | 2 +- Source/platform/android/android.cpp | 2 +- test/player_test.cpp | 2 +- test/timedemo_test.cpp | 2 +- test/writehero_test.cpp | 2 +- 15 files changed, 15 insertions(+), 14 deletions(-) rename Source/{init.h => init.hpp} (92%) diff --git a/Source/DiabloUI/diabloui.cpp b/Source/DiabloUI/diabloui.cpp index c3e6fd699..8f4480bd1 100644 --- a/Source/DiabloUI/diabloui.cpp +++ b/Source/DiabloUI/diabloui.cpp @@ -25,7 +25,7 @@ #include "engine/render/text_render.hpp" #include "engine/ticks.hpp" #include "hwcursor.hpp" -#include "init.h" +#include "init.hpp" #include "utils/algorithm/container.hpp" #include "utils/display.h" #include "utils/is_of.hpp" diff --git a/Source/DiabloUI/dialogs.cpp b/Source/DiabloUI/dialogs.cpp index 1f3a6162c..42ae7492f 100644 --- a/Source/DiabloUI/dialogs.cpp +++ b/Source/DiabloUI/dialogs.cpp @@ -16,7 +16,7 @@ #include "engine/palette.h" #include "headless_mode.hpp" #include "hwcursor.hpp" -#include "init.h" +#include "init.hpp" #include "utils/display.h" #include "utils/is_of.hpp" #include "utils/language.h" diff --git a/Source/controls/touch/renderers.cpp b/Source/controls/touch/renderers.cpp index 881083e08..0352f27a9 100644 --- a/Source/controls/touch/renderers.cpp +++ b/Source/controls/touch/renderers.cpp @@ -7,7 +7,7 @@ #include "engine/events.hpp" #include "engine/render/clx_render.hpp" #include "engine/render/primitive_render.hpp" -#include "init.h" +#include "init.hpp" #include "inv.h" #include "levels/gendung.h" #include "minitext.h" diff --git a/Source/diablo.cpp b/Source/diablo.cpp index 7299b0dc5..2fab97a4e 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -47,7 +47,7 @@ #include "headless_mode.hpp" #include "help.h" #include "hwcursor.hpp" -#include "init.h" +#include "init.hpp" #include "inv.h" #include "levels/drlg_l1.h" #include "levels/drlg_l2.h" diff --git a/Source/engine/dx.cpp b/Source/engine/dx.cpp index 37bac7d06..79821c20c 100644 --- a/Source/engine/dx.cpp +++ b/Source/engine/dx.cpp @@ -12,7 +12,7 @@ #include "controls/plrctrls.h" #include "engine/render/primitive_render.hpp" #include "headless_mode.hpp" -#include "init.h" +#include "init.hpp" #include "options.h" #include "utils/display.h" #include "utils/log.hpp" diff --git a/Source/engine/render/scrollrt.cpp b/Source/engine/render/scrollrt.cpp index 6656182c2..a6d9cf281 100644 --- a/Source/engine/render/scrollrt.cpp +++ b/Source/engine/render/scrollrt.cpp @@ -33,7 +33,7 @@ #include "headless_mode.hpp" #include "help.h" #include "hwcursor.hpp" -#include "init.h" +#include "init.hpp" #include "inv.h" #include "levels/dun_tile.hpp" #include "levels/gendung.h" diff --git a/Source/init.cpp b/Source/init.cpp index 1c5716e75..e5a4b1f5b 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -3,7 +3,7 @@ * * Implementation of routines for initializing the environment, disable screen saver, load MPQ. */ -#include "init.h" +#include "init.hpp" #include #include diff --git a/Source/init.h b/Source/init.hpp similarity index 92% rename from Source/init.h rename to Source/init.hpp index 0eebd930a..32b7b0427 100644 --- a/Source/init.h +++ b/Source/init.hpp @@ -1,5 +1,5 @@ /** - * @file init.h + * @file init.hpp * * Interface of routines for initializing the environment, disable screen saver, load MPQ. */ diff --git a/Source/menu.cpp b/Source/menu.cpp index 7667b15f5..6a7241a42 100644 --- a/Source/menu.cpp +++ b/Source/menu.cpp @@ -11,7 +11,7 @@ #include "engine/assets.hpp" #include "engine/demomode.h" #include "game_mode.hpp" -#include "init.h" +#include "init.hpp" #include "movie.h" #include "options.h" #include "pfile.h" diff --git a/Source/mpq/mpq_reader.cpp b/Source/mpq/mpq_reader.cpp index 63c1b32a9..cedd5e460 100644 --- a/Source/mpq/mpq_reader.cpp +++ b/Source/mpq/mpq_reader.cpp @@ -1,5 +1,6 @@ #include "mpq/mpq_reader.hpp" +#include #include #include #include diff --git a/Source/mpq/mpq_reader.hpp b/Source/mpq/mpq_reader.hpp index eb6fa46d0..d2fd78a43 100644 --- a/Source/mpq/mpq_reader.hpp +++ b/Source/mpq/mpq_reader.hpp @@ -1,12 +1,12 @@ #pragma once -#include #include #include #include #include #include #include +#include #include #include "mpq/mpq_common.hpp" diff --git a/Source/platform/android/android.cpp b/Source/platform/android/android.cpp index c0cbfab7c..fddb850de 100644 --- a/Source/platform/android/android.cpp +++ b/Source/platform/android/android.cpp @@ -1,4 +1,4 @@ -#include "init.h" +#include "init.hpp" #include "mpq/mpq_reader.hpp" #include diff --git a/test/player_test.cpp b/test/player_test.cpp index 30c93472a..541eb12a9 100644 --- a/test/player_test.cpp +++ b/test/player_test.cpp @@ -4,7 +4,7 @@ #include "cursor.h" #include "engine/assets.hpp" -#include "init.h" +#include "init.hpp" #include "playerdat.hpp" using namespace devilution; diff --git a/test/timedemo_test.cpp b/test/timedemo_test.cpp index cf897ce64..815f91e22 100644 --- a/test/timedemo_test.cpp +++ b/test/timedemo_test.cpp @@ -6,7 +6,7 @@ #include "engine/demomode.h" #include "game_mode.hpp" #include "headless_mode.hpp" -#include "init.h" +#include "init.hpp" #include "lua/lua.hpp" #include "monstdat.h" #include "options.h" diff --git a/test/writehero_test.cpp b/test/writehero_test.cpp index f7ff40722..26ae4ecd5 100644 --- a/test/writehero_test.cpp +++ b/test/writehero_test.cpp @@ -11,7 +11,7 @@ #include "cursor.h" #include "engine/assets.hpp" #include "game_mode.hpp" -#include "init.h" +#include "init.hpp" #include "loadsave.h" #include "pack.h" #include "pfile.h"