From ad5bf8c6f67529cd7bcdebd71a716c240c392c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 13 Mar 2017 16:13:18 +0100 Subject: [PATCH] This mutex should not have been made local, thanks @unknownbrackets --- Core/FileSystems/BlockDevices.cpp | 2 ++ Core/FileSystems/BlockDevices.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/FileSystems/BlockDevices.cpp b/Core/FileSystems/BlockDevices.cpp index 17b650759b..38dbc9dd10 100644 --- a/Core/FileSystems/BlockDevices.cpp +++ b/Core/FileSystems/BlockDevices.cpp @@ -30,6 +30,8 @@ extern "C" #include "ext/libkirk/kirk_engine.h" }; +std::mutex NPDRMDemoBlockDevice::mutex_; + BlockDevice *constructBlockDevice(FileLoader *fileLoader) { // Check for CISO if (!fileLoader->Exists()) diff --git a/Core/FileSystems/BlockDevices.h b/Core/FileSystems/BlockDevices.h index 235ea89f8b..a58cc9b484 100644 --- a/Core/FileSystems/BlockDevices.h +++ b/Core/FileSystems/BlockDevices.h @@ -105,7 +105,7 @@ public: private: FileLoader *fileLoader_; - std::mutex mutex_; + static std::mutex mutex_; u32 lbaSize; u32 psarOffset;