Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "git@github.com:bl-sdk/common_dotfiles.git",
"commit": "597ec422d3b5692927f325b9b5c2ae42288e8cc5",
"commit": "91563903c1b88e5cc2363d448e62180fdb318382",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -15,7 +15,8 @@
"__project_slug": "pluginloader",
"include_cpp": true,
"include_py": false,
"_template": "git@github.com:bl-sdk/common_dotfiles.git"
"_template": "git@github.com:bl-sdk/common_dotfiles.git",
"_commit": "91563903c1b88e5cc2363d448e62180fdb318382"
}
},
"directory": null
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.vs
.vscode
.idea
.nvim.lua

# C/C++ excludes
.cache/clangd
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"version": 3,
"configurePresets": [
{
Expand Down
2 changes: 1 addition & 1 deletion common_cmake
2 changes: 2 additions & 0 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ void create_if_needed(void) {
SetConsoleTitleA("Plugin Loader Debug Console");

// All of this is necessary so that way we can properly use the output of the console
// NOLINTBEGIN(misc-const-correctness) - clang tidy 21.1.x false positive
FILE* new_stdin = nullptr;
FILE* new_stdout = nullptr;
FILE* new_stderr = nullptr;
// NOLINTEND(misc-const-correctness)
freopen_s(&new_stdin, "CONIN$", "r", stdin);
freopen_s(&new_stdout, "CONOUT$", "w", stdout);
freopen_s(&new_stderr, "CONOUT$", "w", stderr);
Expand Down
8 changes: 4 additions & 4 deletions src/proxy/d3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ FARPROC d3d11_on_12_create_device_ptr = nullptr;

// NOLINTBEGIN(readability-identifier-naming, readability-identifier-length)

#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
#endif
Expand Down Expand Up @@ -85,10 +85,10 @@ DLL_EXPORT HRESULT D3D11On12CreateDevice(void* pDevice,
ppDevice, ppImmediateContext, pChosenFeatureLevel);
}

#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic pop
#endif

Expand Down
8 changes: 4 additions & 4 deletions src/proxy/dsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ FARPROC direct_sound_capture_create_8_ptr = nullptr;

// NOLINTBEGIN(readability-identifier-naming)

#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
#endif
Expand Down Expand Up @@ -110,10 +110,10 @@ DLL_EXPORT HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID pcGuidDevice,
direct_sound_capture_create_8_ptr)(pcGuidDevice, ppDSC8, pUnkOuter);
}

#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic pop
#endif

Expand Down
8 changes: 4 additions & 4 deletions src/proxy/xinput1_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ FARPROC xinput_power_off_controller_ptr = nullptr;

// NOLINTBEGIN(readability-identifier-naming)

#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
#endif
Expand Down Expand Up @@ -97,10 +97,10 @@ DLL_EXPORT DWORD XInputPowerOffController(DWORD dwUserIndex) {
dwUserIndex);
}

#if defined(__clang__)
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#if defined(__MINGW32__)
#ifdef __MINGW32__
#pragma GCC diagnostic pop
#endif

Expand Down