From 4082cbbe7a9e368e7b04d389f9ade3a266e3da36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Krupi=C5=84ski?= Date: Wed, 29 Jan 2025 21:46:47 +0100 Subject: [PATCH] Move Helpers directory contents to directories they fit more --- Source/GlobalContext/FullGlobalContext.h | 4 ++-- Source/GlobalContext/GlobalContext.h | 2 +- .../{Helpers => GlobalContext}/UnloadFlag.h | 0 Source/MemoryPatterns/PatternFinders.h | 2 +- Source/MemorySearch/PatternFinder.h | 2 +- Source/MemorySearch/PatternFinderSIMD.h | 2 +- .../PatternNotFoundLogger.h | 0 Source/Osiris.vcxproj | 7 +++--- Source/Osiris.vcxproj.filters | 24 +++++++------------ .../UI/Panorama/PanoramaCommandDispatcher.h | 2 +- Source/UI/Panorama/PanoramaGUI.h | 2 +- Source/{Helpers => Utils}/Bits.h | 0 12 files changed, 20 insertions(+), 27 deletions(-) rename Source/{Helpers => GlobalContext}/UnloadFlag.h (100%) rename Source/{Helpers => MemorySearch}/PatternNotFoundLogger.h (100%) rename Source/{Helpers => Utils}/Bits.h (100%) diff --git a/Source/GlobalContext/FullGlobalContext.h b/Source/GlobalContext/FullGlobalContext.h index 7845fa43413..5ffb11acbd3 100644 --- a/Source/GlobalContext/FullGlobalContext.h +++ b/Source/GlobalContext/FullGlobalContext.h @@ -12,8 +12,8 @@ #include #include #include -#include -#include +#include +#include "UnloadFlag.h" #include #include #include diff --git a/Source/GlobalContext/GlobalContext.h b/Source/GlobalContext/GlobalContext.h index 5cb18672c1b..92a319dfeb2 100644 --- a/Source/GlobalContext/GlobalContext.h +++ b/Source/GlobalContext/GlobalContext.h @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/Source/Helpers/UnloadFlag.h b/Source/GlobalContext/UnloadFlag.h similarity index 100% rename from Source/Helpers/UnloadFlag.h rename to Source/GlobalContext/UnloadFlag.h diff --git a/Source/MemoryPatterns/PatternFinders.h b/Source/MemoryPatterns/PatternFinders.h index ba90fbc7389..30e4712e048 100644 --- a/Source/MemoryPatterns/PatternFinders.h +++ b/Source/MemoryPatterns/PatternFinders.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include struct PatternFinders { PatternFinder clientPatternFinder; diff --git a/Source/MemorySearch/PatternFinder.h b/Source/MemorySearch/PatternFinder.h index 0742e23d00a..5b44f39a021 100644 --- a/Source/MemorySearch/PatternFinder.h +++ b/Source/MemorySearch/PatternFinder.h @@ -6,7 +6,7 @@ #include "BytePattern.h" #include "BytePatternView.h" -#include +#include "PatternNotFoundLogger.h" #include "HybridPatternFinder.h" #include "PatternPoolView.h" #include "PatternSearchResults.h" diff --git a/Source/MemorySearch/PatternFinderSIMD.h b/Source/MemorySearch/PatternFinderSIMD.h index 5ccf1e0d56e..582aa5501e7 100644 --- a/Source/MemorySearch/PatternFinderSIMD.h +++ b/Source/MemorySearch/PatternFinderSIMD.h @@ -8,7 +8,7 @@ #include "BytePattern.h" #include -#include +#include class PatternFinderSIMD { public: diff --git a/Source/Helpers/PatternNotFoundLogger.h b/Source/MemorySearch/PatternNotFoundLogger.h similarity index 100% rename from Source/Helpers/PatternNotFoundLogger.h rename to Source/MemorySearch/PatternNotFoundLogger.h diff --git a/Source/Osiris.vcxproj b/Source/Osiris.vcxproj index 2f20fd7a4f9..2f8be670f3c 100644 --- a/Source/Osiris.vcxproj +++ b/Source/Osiris.vcxproj @@ -306,10 +306,7 @@ - - - - + @@ -410,6 +407,7 @@ + @@ -498,6 +496,7 @@ + diff --git a/Source/Osiris.vcxproj.filters b/Source/Osiris.vcxproj.filters index 841c68ed052..c61ab7dc9a6 100644 --- a/Source/Osiris.vcxproj.filters +++ b/Source/Osiris.vcxproj.filters @@ -22,9 +22,6 @@ {8f279e18-4344-42fb-8c01-6c773341568d} - - {eaf12914-2d12-4935-aab3-1491b8021bd6} - {1ee84f1c-3411-4068-816f-186260cb390d} @@ -270,15 +267,6 @@ Features\Visuals - - Helpers - - - Helpers - - - Helpers - Hooks @@ -488,9 +476,6 @@ MemoryPatterns\Windows - - Helpers - CS2\Classes @@ -1793,6 +1778,15 @@ Panorama + + GlobalContext + + + MemorySearch + + + Utils + diff --git a/Source/UI/Panorama/PanoramaCommandDispatcher.h b/Source/UI/Panorama/PanoramaCommandDispatcher.h index 30faef24094..01036f96fef 100644 --- a/Source/UI/Panorama/PanoramaCommandDispatcher.h +++ b/Source/UI/Panorama/PanoramaCommandDispatcher.h @@ -3,7 +3,7 @@ #include #include -#include +#include #include #include "SetCommandHandler.h" diff --git a/Source/UI/Panorama/PanoramaGUI.h b/Source/UI/Panorama/PanoramaGUI.h index 32b83a53ed0..5ac795a38a5 100644 --- a/Source/UI/Panorama/PanoramaGUI.h +++ b/Source/UI/Panorama/PanoramaGUI.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include "PanoramaCommandDispatcher.h" diff --git a/Source/Helpers/Bits.h b/Source/Utils/Bits.h similarity index 100% rename from Source/Helpers/Bits.h rename to Source/Utils/Bits.h