Skip to content

Commit

Permalink
Add missing includes. Remove some more unnecessary #ifdef _DEBUG chec…
Browse files Browse the repository at this point in the history
…ks - the debugger is supposed to work in release mode too.
  • Loading branch information
hrydgard committed Dec 20, 2017
1 parent 740d050 commit 4f1e0de
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Core/Core.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void Core_RunLoop(GraphicsContext *ctx) {
double diffTime = time_now_d() - startTime; double diffTime = time_now_d() - startTime;
int sleepTime = (int)(1000.0 / 60.0) - (int)(diffTime * 1000.0); int sleepTime = (int)(1000.0 / 60.0) - (int)(diffTime * 1000.0);
if (sleepTime > 0) if (sleepTime > 0)
Sleep(sleepTime); sleep_ms(sleepTime);
if (!windowHidden) { if (!windowHidden) {
ctx->SwapBuffers(); ctx->SwapBuffers();
} }
Expand Down Expand Up @@ -292,11 +292,9 @@ void Core_Run(GraphicsContext *ctx) {
} }


// wait for step command.. // wait for step command..
#if defined(_DEBUG)
host->UpdateDisassembly(); host->UpdateDisassembly();
host->UpdateMemView(); host->UpdateMemView();
host->SendCoreWait(true); host->SendCoreWait(true);
#endif


{ {
std::unique_lock<std::mutex> guard(m_hStepMutex); std::unique_lock<std::mutex> guard(m_hStepMutex);
Expand Down
1 change: 1 addition & 0 deletions Core/HLE/sceSas.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <functional> #include <functional>
#include <thread> #include <thread>
#include <mutex> #include <mutex>
#include <condition_variable>


#include "base/basictypes.h" #include "base/basictypes.h"
#include "profiler/profiler.h" #include "profiler/profiler.h"
Expand Down
2 changes: 2 additions & 0 deletions Core/Reporting.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.


#include <thread> #include <thread>
#include <mutex>
#include <condition_variable>


#include "Core/Reporting.h" #include "Core/Reporting.h"


Expand Down
2 changes: 2 additions & 0 deletions Core/System.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
#include <string> #include <string>
#include <codecvt> #include <codecvt>
#endif #endif

#include <thread> #include <thread>
#include <mutex> #include <mutex>
#include <condition_variable>


#include "math/math_util.h" #include "math/math_util.h"
#include "thread/threadutil.h" #include "thread/threadutil.h"
Expand Down
2 changes: 2 additions & 0 deletions UI/RemoteISOScreen.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@


#include <algorithm> #include <algorithm>
#include <thread> #include <thread>
#include <mutex>
#include <condition_variable>


#include "base/timeutil.h" #include "base/timeutil.h"
#include "ext/vjson/json.h" #include "ext/vjson/json.h"
Expand Down
1 change: 1 addition & 0 deletions Windows/InputDevice.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <thread> #include <thread>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <condition_variable>


#include "input/input_state.h" #include "input/input_state.h"
#include "thread/threadutil.h" #include "thread/threadutil.h"
Expand Down
1 change: 1 addition & 0 deletions ext/native/thread/prioritizedworkqueue.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <vector> #include <vector>
#include <limits> #include <limits>
#include <mutex> #include <mutex>
#include <condition_variable>


#include "base/basictypes.h" #include "base/basictypes.h"
#include "thread/threadutil.h" #include "thread/threadutil.h"
Expand Down

0 comments on commit 4f1e0de

Please sign in to comment.