Add missing includes. Remove some more unnecessary #ifdef _DEBUG checks - the debugger is supposed to work in release mode too.

This commit is contained in:
Henrik Rydgård 2017-12-20 10:22:15 +01:00
parent 740d0504ad
commit 4f1e0de9a9
7 changed files with 10 additions and 3 deletions

View file

@ -213,7 +213,7 @@ void Core_RunLoop(GraphicsContext *ctx) {
double diffTime = time_now_d() - startTime;
int sleepTime = (int)(1000.0 / 60.0) - (int)(diffTime * 1000.0);
if (sleepTime > 0)
Sleep(sleepTime);
sleep_ms(sleepTime);
if (!windowHidden) {
ctx->SwapBuffers();
}
@ -292,11 +292,9 @@ reswitch:
}
// wait for step command..
#if defined(_DEBUG)
host->UpdateDisassembly();
host->UpdateMemView();
host->SendCoreWait(true);
#endif
{
std::unique_lock<std::mutex> guard(m_hStepMutex);

View file

@ -30,6 +30,7 @@
#include <functional>
#include <thread>
#include <mutex>
#include <condition_variable>
#include "base/basictypes.h"
#include "profiler/profiler.h"

View file

@ -16,6 +16,8 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <thread>
#include <mutex>
#include <condition_variable>
#include "Core/Reporting.h"

View file

@ -24,8 +24,10 @@
#include <string>
#include <codecvt>
#endif
#include <thread>
#include <mutex>
#include <condition_variable>
#include "math/math_util.h"
#include "thread/threadutil.h"

View file

@ -17,6 +17,8 @@
#include <algorithm>
#include <thread>
#include <mutex>
#include <condition_variable>
#include "base/timeutil.h"
#include "ext/vjson/json.h"

View file

@ -19,6 +19,7 @@
#include <thread>
#include <memory>
#include <mutex>
#include <condition_variable>
#include "input/input_state.h"
#include "thread/threadutil.h"

View file

@ -3,6 +3,7 @@
#include <vector>
#include <limits>
#include <mutex>
#include <condition_variable>
#include "base/basictypes.h"
#include "thread/threadutil.h"