mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Replace a bad function
This commit is contained in:
parent
9f344be824
commit
0f97578a35
6 changed files with 3 additions and 15 deletions
|
@ -93,10 +93,6 @@ private:
|
|||
bool enabled_ = false;
|
||||
};
|
||||
|
||||
// TODO: A simple buffered log that can be used to display the log in-window
|
||||
// on Android etc.
|
||||
// class BufferedLogListener { ... }
|
||||
|
||||
struct LogChannel {
|
||||
char m_shortName[32]{};
|
||||
LogLevel level;
|
||||
|
|
|
@ -149,13 +149,6 @@ void Core_WaitInactive() {
|
|||
}
|
||||
}
|
||||
|
||||
void Core_WaitInactive(int milliseconds) {
|
||||
if (Core_IsActive() && !GPUStepping::IsStepping()) {
|
||||
std::unique_lock<std::mutex> guard(m_hInactiveMutex);
|
||||
m_InactiveCond.wait_for(guard, std::chrono::milliseconds(milliseconds));
|
||||
}
|
||||
}
|
||||
|
||||
void Core_SetPowerSaving(bool mode) {
|
||||
powerSaving = mode;
|
||||
}
|
||||
|
|
|
@ -96,7 +96,6 @@ bool Core_IsInactive();
|
|||
// Warning: these three are only used on Windows - debugger integration.
|
||||
void Core_StateProcessed();
|
||||
void Core_WaitInactive();
|
||||
void Core_WaitInactive(int milliseconds);
|
||||
|
||||
void Core_SetPowerSaving(bool mode);
|
||||
bool Core_GetPowerSaving();
|
||||
|
|
|
@ -626,7 +626,7 @@ void BreakpointManager::Update(u32 addr) {
|
|||
bool resume = false;
|
||||
if (Core_IsStepping() == false) {
|
||||
Core_Break("cpu.breakpoint.update", addr);
|
||||
Core_WaitInactive(200);
|
||||
Core_WaitInactive();
|
||||
resume = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) {
|
|||
if (isRunning)
|
||||
{
|
||||
Core_Break("cpu.breakpoint.add", 0);
|
||||
Core_WaitInactive(200);
|
||||
Core_WaitInactive();
|
||||
}
|
||||
|
||||
BreakpointWindow bpw(m_hDlg,cpu);
|
||||
|
|
|
@ -353,7 +353,7 @@ void MainThreadFunc() {
|
|||
// Process the shutdown. Without this, non-GL delays 800ms on shutdown.
|
||||
Core_Run(g_graphicsContext);
|
||||
}
|
||||
Core_WaitInactive(800);
|
||||
Core_WaitInactive();
|
||||
|
||||
g_inLoop = false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue