From e0a0200f90ac044210ebaf5473cc8b436333a4a6 Mon Sep 17 00:00:00 2001 From: Echo J Date: Mon, 4 Nov 2024 15:35:25 +0200 Subject: [PATCH] Use lowercase names for Windows headers This fixes missing header issues on a case-sensitive filesystem with MinGW GCC --- DDraw/dllmain.cpp | 6 +++--- SilentPatch/Common_ddraw.cpp | 6 +++--- SilentPatch/ParseUtils.cpp | 2 +- SilentPatch/TheFLAUtils.cpp | 4 ++-- SilentPatchIII/SilentPatchIII.cpp | 4 ++-- SilentPatchSA/AudioHardwareSA.h | 4 ++-- SilentPatchSA/FLACDecoderSA.h | 6 +++--- SilentPatchSA/SilentPatchSA.cpp | 8 ++++---- SilentPatchVC/SilentPatchVC.cpp | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index 9f098f1..e77a2d1 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -4,8 +4,8 @@ #include #include -#include -#include +#include +#include #include "Utils/MemoryMgr.h" #include "Utils/Patterns.h" #include "Utils/ScopedUnprotect.hpp" @@ -230,4 +230,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +} diff --git a/SilentPatch/Common_ddraw.cpp b/SilentPatch/Common_ddraw.cpp index 62e1240..15e89a6 100644 --- a/SilentPatch/Common_ddraw.cpp +++ b/SilentPatch/Common_ddraw.cpp @@ -8,8 +8,8 @@ #include -#include -#include +#include +#include #include "Utils/MemoryMgr.h" #include "Utils/Patterns.h" @@ -249,4 +249,4 @@ namespace Common { TXN_CATCH(); } } -} \ No newline at end of file +} diff --git a/SilentPatch/ParseUtils.cpp b/SilentPatch/ParseUtils.cpp index 1988733..52f878c 100644 --- a/SilentPatch/ParseUtils.cpp +++ b/SilentPatch/ParseUtils.cpp @@ -2,7 +2,7 @@ #define WIN32_LEAN_AND_MEAN #define NOMINMAX -#include +#include static std::string WcharToUTF8(std::wstring_view str) { diff --git a/SilentPatch/TheFLAUtils.cpp b/SilentPatch/TheFLAUtils.cpp index 685280c..9cc3164 100644 --- a/SilentPatch/TheFLAUtils.cpp +++ b/SilentPatch/TheFLAUtils.cpp @@ -1,7 +1,7 @@ #include "TheFLAUtils.h" #define WIN32_LEAN_AND_MEAN -#include +#include #include "Utils/ModuleList.hpp" @@ -39,4 +39,4 @@ bool FLAUtils::UsesEnhancedIMGs() const auto func = reinterpret_cast(GetProcAddress( flaModule, "IsHandlingOfEnhancedIMGarchivesEnabled" )); if ( func == nullptr ) return false; return func(); -} \ No newline at end of file +} diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index e0c04e7..482be14 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -12,7 +12,7 @@ #include #include -#include +#include #include "Utils/ModuleList.hpp" #include "Utils/Patterns.h" @@ -2499,4 +2499,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +} diff --git a/SilentPatchSA/AudioHardwareSA.h b/SilentPatchSA/AudioHardwareSA.h index 2383d56..506073c 100644 --- a/SilentPatchSA/AudioHardwareSA.h +++ b/SilentPatchSA/AudioHardwareSA.h @@ -2,7 +2,7 @@ #define __AUDIOHARDWARE // IStream -#include +#include enum eDecoderType { @@ -205,4 +205,4 @@ public: static_assert(sizeof(CAEDataStreamOld) == 0x28, "Wrong size: CAEDataStreamOld"); static_assert(sizeof(CAEDataStreamNew) == 0x2C, "Wrong size: CAEDataStreamNew"); -#endif \ No newline at end of file +#endif diff --git a/SilentPatchSA/FLACDecoderSA.h b/SilentPatchSA/FLACDecoderSA.h index 159a337..523df86 100644 --- a/SilentPatchSA/FLACDecoderSA.h +++ b/SilentPatchSA/FLACDecoderSA.h @@ -3,8 +3,8 @@ #include "AudioHardwareSA.h" // libflac -#include "FLAC\stream_decoder.h" -#include "FLAC\metadata.h" +#include "FLAC/stream_decoder.h" +#include "FLAC/metadata.h" class CAEFLACDecoder final : public CAEStreamingDecoder { @@ -45,4 +45,4 @@ public: { return m_streamMeta->data.stream_info.sample_rate; } virtual uint32_t GetStreamID() const override { return GetStream()->GetID(); } -}; \ No newline at end of file +}; diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index d9857f3..3794f60 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -3,9 +3,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include "ScriptSA.h" @@ -8688,4 +8688,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +} diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 1da4a66..1eb8d56 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include "Utils/ModuleList.hpp" @@ -2982,4 +2982,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +}