mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
Chore: IndentPPDirectives: BeforeHash [ci skip]
This commit is contained in:
@@ -6,9 +6,9 @@ extern "C" {
|
||||
|
||||
#if __has_include(<directx/dxcore.h>) && __has_include(<dxguids/dxguids.h>)
|
||||
|
||||
# include <directx/dxcore.h>
|
||||
# include <dxguids/dxguids.h>
|
||||
# include "common/windows/util.hpp"
|
||||
#include <directx/dxcore.h>
|
||||
#include <dxguids/dxguids.h>
|
||||
#include "common/windows/util.hpp"
|
||||
|
||||
static IDXCoreAdapterFactory* loadDxCoreFactory() {
|
||||
static bool initialized = false;
|
||||
@@ -23,14 +23,14 @@ static IDXCoreAdapterFactory* loadDxCoreFactory() {
|
||||
// DXCoreCreateAdapterFactory is a reloaded function, so we can't use FF_LIBRARY_LOAD_SYMBOL_MESSAGE here
|
||||
typedef HRESULT (*DXCoreCreateAdapterFactory_t)(REFIID riid, void** ppvFactory);
|
||||
|
||||
# ifndef FF_DISABLE_DLOPEN
|
||||
#ifndef FF_DISABLE_DLOPEN
|
||||
auto ffDXCoreCreateAdapterFactory = (DXCoreCreateAdapterFactory_t) dlsym(dxcore, "DXCoreCreateAdapterFactory");
|
||||
if (ffDXCoreCreateAdapterFactory == nullptr) {
|
||||
return NULL;
|
||||
}
|
||||
# else
|
||||
#else
|
||||
auto ffDXCoreCreateAdapterFactory = (DXCoreCreateAdapterFactory_t) DXCoreCreateAdapterFactory;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
HRESULT hr = ffDXCoreCreateAdapterFactory(IID_PPV_ARGS(&factory));
|
||||
if (FAILED(hr)) {
|
||||
@@ -72,7 +72,7 @@ extern "C" const char* ffGPUDetectTypeWithDXCore(LUID adapterLuid, FFGPUResult*
|
||||
|
||||
#else
|
||||
|
||||
# warning "DXCore headers not available, GPU type detection may be less accurate"
|
||||
#warning "DXCore headers not available, GPU type detection may be less accurate"
|
||||
|
||||
extern "C" const char* ffGPUDetectTypeWithDXCore(LUID adapterLuid, FFGPUResult* gpu) {
|
||||
FF_UNUSED(adapterLuid, gpu);
|
||||
|
||||
Reference in New Issue
Block a user