mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
Improve compatibility.
Don't implemente on vista and UWP,they don't have a full support for this.
This commit is contained in:
1 parent
5c4a1e00fc
commit
d1e354ce04
7 files changed
+120
-17
No files matched your search
+6
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user