Improve compatibility.

Don't implemente on vista and UWP,they don't have a full support for this.
This commit is contained in:
shenweip committed 2020-01-14 17:15:11 +08:00
1 parent 5c4a1e00fc
commit d1e354ce04
7 files changed
+120 -17

No files matched your search

+6 -3
View File
@@ -37,6 +37,9 @@
#if defined(_WIN32)
#include "Windows/WindowsAudio.h"
#include "Windows/MainWindow.h"
#endif
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
#include "Windows/CaptureDevice.h"
#endif
@@ -857,8 +860,8 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) {
#endif
#endif
#ifdef _WIN32
if (IsVistaOrHigher()) {
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
if (IsWin7OrHigher()) {
winCamera = new WindowsCaptureDevice(CAPTUREDEVIDE_TYPE::VIDEO);
winCamera->sendMessage({ CAPTUREDEVIDE_COMMAND::INITIALIZE, nullptr });
}
@@ -888,7 +891,7 @@ void NativeShutdownGraphics() {
winAudioBackend = nullptr;
#endif
#ifdef _WIN32
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
if (winCamera) {
delete winCamera;
winCamera = nullptr;