From 9775c04dbbdff6358f0bfdecc9ede1ccef4f17d5 Mon Sep 17 00:00:00 2001 From: Will Toohey Date: Mon, 29 Jun 2026 18:56:37 +1000 Subject: [PATCH] Finally make every header .hpp --- src/arc.cpp | 2 +- src/avs.cpp | 4 ++-- src/{avs.h => avs.hpp} | 0 src/avs_standalone.cpp | 4 ++-- src/dllmain.cpp | 2 +- src/hook.cpp | 8 ++++---- src/{hook.h => hook.hpp} | 4 ++-- src/imagefs.cpp | 6 +++--- src/imagefs.hpp | 2 +- src/modpath_handler.cpp | 4 ++-- src/{modpath_handler.h => modpath_handler.hpp} | 0 src/playpen.cpp | 2 +- src/ramfs_demangler.cpp | 4 ++-- src/{ramfs_demangler.h => ramfs_demangler.hpp} | 2 +- src/tests.cpp | 6 +++--- src/texbin.cpp | 2 +- src/texture_packer.cpp | 2 +- src/{texture_packer.h => texture_packer.hpp} | 0 src/utils.cpp | 2 +- 19 files changed, 28 insertions(+), 28 deletions(-) rename src/{avs.h => avs.hpp} (100%) rename src/{hook.h => hook.hpp} (95%) rename src/{modpath_handler.h => modpath_handler.hpp} (100%) rename src/{ramfs_demangler.h => ramfs_demangler.hpp} (96%) rename src/{texture_packer.h => texture_packer.hpp} (100%) diff --git a/src/arc.cpp b/src/arc.cpp index b5b8520..9bb5b9e 100644 --- a/src/arc.cpp +++ b/src/arc.cpp @@ -3,7 +3,7 @@ #include #include -#include "avs.h" +#include "avs.hpp" #include "log.hpp" #pragma pack(push, 1) diff --git a/src/avs.cpp b/src/avs.cpp index 0a8c503..fd761ca 100644 --- a/src/avs.cpp +++ b/src/avs.cpp @@ -2,8 +2,8 @@ #include #include -#include "avs.h" -#include "hook.h" +#include "avs.hpp" +#include "hook.hpp" #include "log.hpp" #include "3rd_party/MinHook.h" #include "utils.hpp" diff --git a/src/avs.h b/src/avs.hpp similarity index 100% rename from src/avs.h rename to src/avs.hpp diff --git a/src/avs_standalone.cpp b/src/avs_standalone.cpp index d68271b..5c8558e 100644 --- a/src/avs_standalone.cpp +++ b/src/avs_standalone.cpp @@ -2,8 +2,8 @@ #include -#include "avs.h" -#include "hook.h" +#include "avs.hpp" +#include "hook.hpp" #include "log.hpp" namespace avs_standalone diff --git a/src/dllmain.cpp b/src/dllmain.cpp index b3ee876..9ff66f4 100644 --- a/src/dllmain.cpp +++ b/src/dllmain.cpp @@ -1,6 +1,6 @@ // dllmain.cpp : Defines the entry point for the DLL application. #include -#include "hook.h" +#include "hook.hpp" #include "utils.hpp" extern "C" __declspec(dllexport) const char __layeredfs_version[] = VER_STRING; diff --git a/src/hook.cpp b/src/hook.cpp index 84172d1..6c953ee 100644 --- a/src/hook.cpp +++ b/src/hook.cpp @@ -4,7 +4,7 @@ #include #include -#include "hook.h" +#include "hook.hpp" // all good code mixes C and C++, right? #include @@ -16,7 +16,7 @@ #include "3rd_party/MinHook.h" -#include "ramfs_demangler.h" +#include "ramfs_demangler.hpp" #include "buildconfig.hpp" #include "config.hpp" #include "log.hpp" @@ -24,8 +24,8 @@ #include "texbin.hpp" #include "arc.hpp" #include "utils.hpp" -#include "avs.h" -#include "modpath_handler.h" +#include "avs.hpp" +#include "modpath_handler.hpp" #ifdef _DEBUG #define DBG_VER_STRING "_DEBUG" diff --git a/src/hook.h b/src/hook.hpp similarity index 95% rename from src/hook.h rename to src/hook.hpp index 0d08581..754cba2 100644 --- a/src/hook.h +++ b/src/hook.hpp @@ -3,9 +3,9 @@ #include #include #include -#include "avs.h" +#include "avs.hpp" #include "log.hpp" -#include "modpath_handler.h" +#include "modpath_handler.hpp" #include "utils.hpp" extern std::filesystem::file_time_type dll_time; diff --git a/src/imagefs.cpp b/src/imagefs.cpp index 6927ad9..f1a9d48 100644 --- a/src/imagefs.cpp +++ b/src/imagefs.cpp @@ -13,10 +13,10 @@ #include "3rd_party/rapidxml_print.hpp" #include "3rd_party/md5.h" -#include "avs.h" +#include "avs.hpp" #include "log.hpp" -#include "modpath_handler.h" -#include "texture_packer.h" +#include "modpath_handler.hpp" +#include "texture_packer.hpp" #include "utils.hpp" enum img_format { diff --git a/src/imagefs.hpp b/src/imagefs.hpp index 2a40108..0267802 100644 --- a/src/imagefs.hpp +++ b/src/imagefs.hpp @@ -2,7 +2,7 @@ #include #include -#include "hook.h" +#include "hook.hpp" void handle_texture(HookFile &file); void handle_afp(HookFile &file); diff --git a/src/modpath_handler.cpp b/src/modpath_handler.cpp index 27d04f5..02f1372 100644 --- a/src/modpath_handler.cpp +++ b/src/modpath_handler.cpp @@ -2,9 +2,9 @@ #include #include -#include "ramfs_demangler.h" +#include "ramfs_demangler.hpp" -#include "modpath_handler.h" +#include "modpath_handler.hpp" #include "config.hpp" #include "log.hpp" #include "utils.hpp" diff --git a/src/modpath_handler.h b/src/modpath_handler.hpp similarity index 100% rename from src/modpath_handler.h rename to src/modpath_handler.hpp diff --git a/src/playpen.cpp b/src/playpen.cpp index ba82d5a..c8d7ea5 100644 --- a/src/playpen.cpp +++ b/src/playpen.cpp @@ -3,7 +3,7 @@ #include -#include "hook.h" +#include "hook.hpp" #include "log.hpp" #include "3rd_party/lodepng.h" diff --git a/src/ramfs_demangler.cpp b/src/ramfs_demangler.cpp index 654d878..3184582 100644 --- a/src/ramfs_demangler.cpp +++ b/src/ramfs_demangler.cpp @@ -38,9 +38,9 @@ #include "3rd_party/hat-trie/htrie_map.h" -#include "ramfs_demangler.h" +#include "ramfs_demangler.hpp" #include "log.hpp" -#include "modpath_handler.h" +#include "modpath_handler.hpp" #include "utils.hpp" typedef struct { diff --git a/src/ramfs_demangler.h b/src/ramfs_demangler.hpp similarity index 96% rename from src/ramfs_demangler.h rename to src/ramfs_demangler.hpp index 3019707..df43942 100644 --- a/src/ramfs_demangler.h +++ b/src/ramfs_demangler.hpp @@ -2,7 +2,7 @@ #include #include -#include "avs.h" +#include "avs.hpp" // note: the demangler works exclusively on game-provided paths and so doesn't // store/take istrings diff --git a/src/tests.cpp b/src/tests.cpp index 8a6178d..c0d9222 100644 --- a/src/tests.cpp +++ b/src/tests.cpp @@ -3,11 +3,11 @@ #include #include "config.hpp" -#include "hook.h" +#include "hook.hpp" #include "imagefs.hpp" #include "avs_standalone.hpp" -#include "modpath_handler.h" -#include "ramfs_demangler.h" +#include "modpath_handler.hpp" +#include "ramfs_demangler.hpp" #include "3rd_party/rapidxml_print.hpp" #include "src/3rd_party/rapidxml.hpp" diff --git a/src/texbin.cpp b/src/texbin.cpp index 638d920..2b07de7 100644 --- a/src/texbin.cpp +++ b/src/texbin.cpp @@ -14,7 +14,7 @@ #include #include "texbin.hpp" -#include "avs.h" +#include "avs.hpp" #include "log.hpp" #include "3rd_party/lodepng.h" #include "3rd_party/libsquish/squish.h" diff --git a/src/texture_packer.cpp b/src/texture_packer.cpp index d7b1bdc..66af873 100644 --- a/src/texture_packer.cpp +++ b/src/texture_packer.cpp @@ -1,4 +1,4 @@ -#include "texture_packer.h" +#include "texture_packer.hpp" #include diff --git a/src/texture_packer.h b/src/texture_packer.hpp similarity index 100% rename from src/texture_packer.h rename to src/texture_packer.hpp diff --git a/src/utils.cpp b/src/utils.cpp index ffde541..c127458 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -5,7 +5,7 @@ #include #include "utils.hpp" -#include "hook.h" +#include "hook.hpp" std::string path_to_actual_case(std::string path) { WIN32_FIND_DATAA ffd;