mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 23:33:02 +05:00
Use lowercase names for Windows headers
This fixes missing header issues on a case-sensitive filesystem with MinGW GCC
This commit is contained in:
parent
730afa5848
commit
0bf574a5b8
9 changed files with 18 additions and 18 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <ShlObj.h>
|
#include <shlobj.h>
|
||||||
#include "Utils/MemoryMgr.h"
|
#include "Utils/MemoryMgr.h"
|
||||||
#include "Utils/Patterns.h"
|
#include "Utils/Patterns.h"
|
||||||
#include "Utils/ScopedUnprotect.hpp"
|
#include "Utils/ScopedUnprotect.hpp"
|
||||||
|
@ -230,4 +230,4 @@ extern "C" __declspec(dllexport)
|
||||||
uint32_t GetBuildNumber()
|
uint32_t GetBuildNumber()
|
||||||
{
|
{
|
||||||
return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID;
|
return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <ShlObj.h>
|
#include <shlobj.h>
|
||||||
#include "Utils/MemoryMgr.h"
|
#include "Utils/MemoryMgr.h"
|
||||||
#include "Utils/Patterns.h"
|
#include "Utils/Patterns.h"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
static std::string WcharToUTF8(std::wstring_view str)
|
static std::string WcharToUTF8(std::wstring_view str)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "TheFLAUtils.h"
|
#include "TheFLAUtils.h"
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include "Utils/ModuleList.hpp"
|
#include "Utils/ModuleList.hpp"
|
||||||
|
|
||||||
|
@ -39,4 +39,4 @@ bool FLAUtils::UsesEnhancedIMGs()
|
||||||
const auto func = reinterpret_cast<bool(*)()>(GetProcAddress( flaModule, "IsHandlingOfEnhancedIMGarchivesEnabled" ));
|
const auto func = reinterpret_cast<bool(*)()>(GetProcAddress( flaModule, "IsHandlingOfEnhancedIMGarchivesEnabled" ));
|
||||||
if ( func == nullptr ) return false;
|
if ( func == nullptr ) return false;
|
||||||
return func();
|
return func();
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
|
|
||||||
#include "Utils/ModuleList.hpp"
|
#include "Utils/ModuleList.hpp"
|
||||||
#include "Utils/Patterns.h"
|
#include "Utils/Patterns.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __AUDIOHARDWARE
|
#define __AUDIOHARDWARE
|
||||||
|
|
||||||
// IStream
|
// IStream
|
||||||
#include <Objidl.h>
|
#include <objidl.h>
|
||||||
|
|
||||||
enum eDecoderType
|
enum eDecoderType
|
||||||
{
|
{
|
||||||
|
@ -205,4 +205,4 @@ public:
|
||||||
static_assert(sizeof(CAEDataStreamOld) == 0x28, "Wrong size: CAEDataStreamOld");
|
static_assert(sizeof(CAEDataStreamOld) == 0x28, "Wrong size: CAEDataStreamOld");
|
||||||
static_assert(sizeof(CAEDataStreamNew) == 0x2C, "Wrong size: CAEDataStreamNew");
|
static_assert(sizeof(CAEDataStreamNew) == 0x2C, "Wrong size: CAEDataStreamNew");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
#include "AudioHardwareSA.h"
|
#include "AudioHardwareSA.h"
|
||||||
|
|
||||||
// libflac
|
// libflac
|
||||||
#include "FLAC\stream_decoder.h"
|
#include "FLAC/stream_decoder.h"
|
||||||
#include "FLAC\metadata.h"
|
#include "FLAC/metadata.h"
|
||||||
|
|
||||||
class CAEFLACDecoder final : public CAEStreamingDecoder
|
class CAEFLACDecoder final : public CAEStreamingDecoder
|
||||||
{
|
{
|
||||||
|
@ -45,4 +45,4 @@ public:
|
||||||
{ return m_streamMeta->data.stream_info.sample_rate; }
|
{ return m_streamMeta->data.stream_info.sample_rate; }
|
||||||
virtual uint32_t GetStreamID() const override
|
virtual uint32_t GetStreamID() const override
|
||||||
{ return GetStream()->GetID(); }
|
{ return GetStream()->GetID(); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <d3d9.h>
|
#include <d3d9.h>
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <ShlObj.h>
|
#include <shlobj.h>
|
||||||
#include <ShellAPI.h>
|
#include <shellapi.h>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
||||||
#include "ScriptSA.h"
|
#include "ScriptSA.h"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <Shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "Utils/ModuleList.hpp"
|
#include "Utils/ModuleList.hpp"
|
||||||
|
|
Loading…
Reference in a new issue