Add a __LIBUSB__ define
This allows us to only check if __LIBUSB__ is defined, which is cleaner than checking for __LIBUSB__ and _WIN32.
This commit is contained in:
parent
2c66f5bdc0
commit
59a17db6c4
|
@ -297,7 +297,7 @@ void Stop() // - Hammertime!
|
|||
|
||||
g_video_backend->Video_ExitLoop();
|
||||
}
|
||||
#if defined(__LIBUSB__) || defined(_WIN32)
|
||||
#if defined(__LIBUSB__)
|
||||
GCAdapter::ResetRumble();
|
||||
#endif
|
||||
|
||||
|
@ -698,7 +698,7 @@ void SetState(EState state)
|
|||
// stopped (including the CPU).
|
||||
CPU::EnableStepping(true); // Break
|
||||
Wiimote::Pause();
|
||||
#if defined(__LIBUSB__) || defined(_WIN32)
|
||||
#if defined(__LIBUSB__)
|
||||
GCAdapter::ResetRumble();
|
||||
#endif
|
||||
break;
|
||||
|
@ -818,7 +818,7 @@ bool PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
|||
// (s_efbAccessRequested).
|
||||
Fifo::PauseAndLock(do_lock, false);
|
||||
|
||||
#if defined(__LIBUSB__) || defined(_WIN32)
|
||||
#if defined(__LIBUSB__)
|
||||
GCAdapter::ResetRumble();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ They will also generate a true or false return for UpdateInterrupts() in WII_IPC
|
|||
#include "Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.h"
|
||||
#include "Core/IPC_HLE/WII_IPC_HLE_Device_usb_ven.h"
|
||||
|
||||
#if defined(__LIBUSB__) || defined(_WIN32)
|
||||
#if defined(__LIBUSB__)
|
||||
#include "Core/IPC_HLE/WII_IPC_HLE_Device_hid.h"
|
||||
#endif
|
||||
|
||||
|
@ -151,7 +151,7 @@ void Reinit()
|
|||
AddDevice<CWII_IPC_HLE_Device_usb_ven>("/dev/usb/ven");
|
||||
AddDevice<CWII_IPC_HLE_Device_sdio_slot0>("/dev/sdio/slot0");
|
||||
AddDevice<CWII_IPC_HLE_Device_stub>("/dev/sdio/slot1");
|
||||
#if defined(__LIBUSB__) || defined(_WIN32)
|
||||
#if defined(__LIBUSB__)
|
||||
AddDevice<CWII_IPC_HLE_Device_hid>("/dev/usb/hid");
|
||||
#else
|
||||
AddDevice<CWII_IPC_HLE_Device_stub>("/dev/usb/hid");
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<AdditionalIncludeDirectories>$(ExternalsDir)xxhash;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(ExternalsDir)zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>USE_UPNP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>USE_UPNP;__LIBUSB__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>PSAPI_VERSION=1;_M_X86=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>SFML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
|
Loading…
Reference in New Issue