mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix spelling of IsRunned to IsRunning
This commit is contained in:
parent
d249bfef4d
commit
96c692aefc
@ -161,7 +161,7 @@ wxArrayString PPCThread::ErrorToString(const u32 error)
|
|||||||
|
|
||||||
void PPCThread::Run()
|
void PPCThread::Run()
|
||||||
{
|
{
|
||||||
if(IsRunned()) Stop();
|
if(IsRunning()) Stop();
|
||||||
if(IsPaused())
|
if(IsPaused())
|
||||||
{
|
{
|
||||||
Resume();
|
Resume();
|
||||||
@ -170,7 +170,7 @@ void PPCThread::Run()
|
|||||||
|
|
||||||
wxGetApp().SendDbgCommand(DID_START_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_START_THREAD, this);
|
||||||
|
|
||||||
m_status = Runned;
|
m_status = Running;
|
||||||
|
|
||||||
SetPc(entry);
|
SetPc(entry);
|
||||||
InitStack();
|
InitStack();
|
||||||
@ -187,7 +187,7 @@ void PPCThread::Resume()
|
|||||||
|
|
||||||
wxGetApp().SendDbgCommand(DID_RESUME_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_RESUME_THREAD, this);
|
||||||
|
|
||||||
m_status = Runned;
|
m_status = Running;
|
||||||
DoResume();
|
DoResume();
|
||||||
Emu.CheckStatus();
|
Emu.CheckStatus();
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ void PPCThread::Resume()
|
|||||||
|
|
||||||
void PPCThread::Pause()
|
void PPCThread::Pause()
|
||||||
{
|
{
|
||||||
if(!IsRunned()) return;
|
if(!IsRunning()) return;
|
||||||
|
|
||||||
wxGetApp().SendDbgCommand(DID_PAUSE_THREAD, this);
|
wxGetApp().SendDbgCommand(DID_PAUSE_THREAD, this);
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ public:
|
|||||||
|
|
||||||
bool IsSPU() const { return m_type == PPC_THREAD_SPU; }
|
bool IsSPU() const { return m_type == PPC_THREAD_SPU; }
|
||||||
bool IsOk() const { return m_error == 0; }
|
bool IsOk() const { return m_error == 0; }
|
||||||
bool IsRunned() const { return m_status == Runned; }
|
bool IsRunning() const { return m_status == Running; }
|
||||||
bool IsPaused() const { return m_status == Paused; }
|
bool IsPaused() const { return m_status == Paused; }
|
||||||
bool IsStopped() const { return m_status == Stopped; }
|
bool IsStopped() const { return m_status == Stopped; }
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ void GLRSXThread::Task()
|
|||||||
{
|
{
|
||||||
wxCriticalSectionLocker lock(p.m_cs_main);
|
wxCriticalSectionLocker lock(p.m_cs_main);
|
||||||
|
|
||||||
if(p.m_ctrl->get == p.m_ctrl->put || !Emu.IsRunned())
|
if(p.m_ctrl->get == p.m_ctrl->put || !Emu.IsRunning())
|
||||||
{
|
{
|
||||||
SemaphorePostAndWait(p.m_sem_flush);
|
SemaphorePostAndWait(p.m_sem_flush);
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ wxThread::ExitCode NullRSXThread::Entry()
|
|||||||
{
|
{
|
||||||
wxCriticalSectionLocker lock(p.m_cs_main);
|
wxCriticalSectionLocker lock(p.m_cs_main);
|
||||||
|
|
||||||
if(p.m_ctrl->get == p.m_ctrl->put || !Emu.IsRunned())
|
if(p.m_ctrl->get == p.m_ctrl->put || !Emu.IsRunning())
|
||||||
{
|
{
|
||||||
SemaphorePostAndWait(p.m_sem_flush);
|
SemaphorePostAndWait(p.m_sem_flush);
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ void Emulator::Run()
|
|||||||
if(!IsReady()) return;
|
if(!IsReady()) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsRunned()) Stop();
|
if(IsRunning()) Stop();
|
||||||
if(IsPaused())
|
if(IsPaused())
|
||||||
{
|
{
|
||||||
Resume();
|
Resume();
|
||||||
@ -156,7 +156,7 @@ void Emulator::Run()
|
|||||||
|
|
||||||
wxCriticalSectionLocker lock(m_cs_status);
|
wxCriticalSectionLocker lock(m_cs_status);
|
||||||
//ConLog.Write("run...");
|
//ConLog.Write("run...");
|
||||||
m_status = Runned;
|
m_status = Running;
|
||||||
|
|
||||||
m_vfs.Mount("/", vfsDevice::GetRoot(m_path), new vfsLocalFile());
|
m_vfs.Mount("/", vfsDevice::GetRoot(m_path), new vfsLocalFile());
|
||||||
m_vfs.Mount("/dev_hdd0/", wxGetCwd() + "\\dev_hdd0\\", new vfsLocalFile());
|
m_vfs.Mount("/dev_hdd0/", wxGetCwd() + "\\dev_hdd0\\", new vfsLocalFile());
|
||||||
@ -189,7 +189,7 @@ void Emulator::Run()
|
|||||||
|
|
||||||
void Emulator::Pause()
|
void Emulator::Pause()
|
||||||
{
|
{
|
||||||
if(!IsRunned()) return;
|
if(!IsRunning()) return;
|
||||||
//ConLog.Write("pause...");
|
//ConLog.Write("pause...");
|
||||||
wxGetApp().SendDbgCommand(DID_PAUSE_EMU);
|
wxGetApp().SendDbgCommand(DID_PAUSE_EMU);
|
||||||
|
|
||||||
@ -205,10 +205,10 @@ void Emulator::Resume()
|
|||||||
wxGetApp().SendDbgCommand(DID_RESUME_EMU);
|
wxGetApp().SendDbgCommand(DID_RESUME_EMU);
|
||||||
|
|
||||||
wxCriticalSectionLocker lock(m_cs_status);
|
wxCriticalSectionLocker lock(m_cs_status);
|
||||||
m_status = Runned;
|
m_status = Running;
|
||||||
|
|
||||||
CheckStatus();
|
CheckStatus();
|
||||||
if(IsRunned() && Ini.CPUDecoderMode.GetValue() != 1) GetCPU().Exec();
|
if(IsRunning() && Ini.CPUDecoderMode.GetValue() != 1) GetCPU().Exec();
|
||||||
wxGetApp().SendDbgCommand(DID_RESUMED_EMU);
|
wxGetApp().SendDbgCommand(DID_RESUMED_EMU);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ public:
|
|||||||
void SavePoints(const wxString& path);
|
void SavePoints(const wxString& path);
|
||||||
void LoadPoints(const wxString& path);
|
void LoadPoints(const wxString& path);
|
||||||
|
|
||||||
__forceinline bool IsRunned() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Runned; }
|
__forceinline bool IsRunning() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Running; }
|
||||||
__forceinline bool IsPaused() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Paused; }
|
__forceinline bool IsPaused() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Paused; }
|
||||||
__forceinline bool IsStopped() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Stopped; }
|
__forceinline bool IsStopped() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Stopped; }
|
||||||
__forceinline bool IsReady() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Ready; }
|
__forceinline bool IsReady() const { wxCriticalSectionLocker lock(m_cs_status); return m_status == Ready; }
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
void OnRun(wxCommandEvent& event)
|
void OnRun(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
if(Emu.IsRunned())
|
if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
}
|
}
|
||||||
|
@ -78,14 +78,14 @@ void DisAsmFrame::AddLine(const wxString line)
|
|||||||
{
|
{
|
||||||
static bool finished = false;
|
static bool finished = false;
|
||||||
|
|
||||||
if(finished && Emu.IsRunned())
|
if(finished && Emu.IsRunning())
|
||||||
{
|
{
|
||||||
count = 0;
|
count = 0;
|
||||||
finished = false;
|
finished = false;
|
||||||
}
|
}
|
||||||
else if(count >= LINES_OPCODES || !Emu.IsRunned())
|
else if(count >= LINES_OPCODES || !Emu.IsRunning())
|
||||||
{
|
{
|
||||||
if(Emu.IsRunned()) Emu.Pause();
|
if(Emu.IsRunning()) Emu.Pause();
|
||||||
finished = true;
|
finished = true;
|
||||||
CPU.PrevPc();
|
CPU.PrevPc();
|
||||||
return;
|
return;
|
||||||
|
@ -186,7 +186,7 @@ void InterpreterDisAsmFrame::ShowAddr(const u64 addr)
|
|||||||
|
|
||||||
wxColour colour;
|
wxColour colour;
|
||||||
|
|
||||||
if((!CPU.IsRunned() || !Emu.IsRunned()) && PC == CPU.PC)
|
if((!CPU.IsRunning() || !Emu.IsRunning()) && PC == CPU.PC)
|
||||||
{
|
{
|
||||||
colour = wxColour("Green");
|
colour = wxColour("Green");
|
||||||
}
|
}
|
||||||
@ -429,7 +429,7 @@ void InterpreterDisAsmFrame::Task()
|
|||||||
{
|
{
|
||||||
CPU.ExecOnce();
|
CPU.ExecOnce();
|
||||||
}
|
}
|
||||||
while(CPU.IsRunned() && Emu.IsRunned() && !TestDestroy() && !IsBreakPoint(CPU.PC) && dump_status == dump_enable);
|
while(CPU.IsRunning() && Emu.IsRunning() && !TestDestroy() && !IsBreakPoint(CPU.PC) && dump_status == dump_enable);
|
||||||
}
|
}
|
||||||
catch(const wxString& e)
|
catch(const wxString& e)
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,7 @@ void MainFrame::BootGame(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
bool stoped = false;
|
bool stoped = false;
|
||||||
|
|
||||||
if(Emu.IsRunned())
|
if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
stoped = true;
|
stoped = true;
|
||||||
@ -187,7 +187,7 @@ void MainFrame::BootElf(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
bool stoped = false;
|
bool stoped = false;
|
||||||
|
|
||||||
if(Emu.IsRunned())
|
if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
stoped = true;
|
stoped = true;
|
||||||
@ -216,7 +216,7 @@ void MainFrame::BootSelf(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
bool stoped = false;
|
bool stoped = false;
|
||||||
|
|
||||||
if(Emu.IsRunned())
|
if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
stoped = true;
|
stoped = true;
|
||||||
@ -251,7 +251,7 @@ void MainFrame::Pause(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
Emu.Resume();
|
Emu.Resume();
|
||||||
}
|
}
|
||||||
else if(Emu.IsRunned())
|
else if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ void MainFrame::Config(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
bool paused = false;
|
bool paused = false;
|
||||||
|
|
||||||
if(Emu.IsRunned())
|
if(Emu.IsRunning())
|
||||||
{
|
{
|
||||||
Emu.Pause();
|
Emu.Pause();
|
||||||
paused = true;
|
paused = true;
|
||||||
@ -377,7 +377,7 @@ void MainFrame::UpdateUI(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
bool is_runned, is_stopped, is_ready;
|
bool is_running, is_stopped, is_ready;
|
||||||
|
|
||||||
if(event.GetEventType() == wxEVT_DBG_COMMAND)
|
if(event.GetEventType() == wxEVT_DBG_COMMAND)
|
||||||
{
|
{
|
||||||
@ -385,40 +385,40 @@ void MainFrame::UpdateUI(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
case DID_START_EMU:
|
case DID_START_EMU:
|
||||||
case DID_STARTED_EMU:
|
case DID_STARTED_EMU:
|
||||||
is_runned = true;
|
is_running = true;
|
||||||
is_stopped = false;
|
is_stopped = false;
|
||||||
is_ready = false;
|
is_ready = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DID_STOP_EMU:
|
case DID_STOP_EMU:
|
||||||
case DID_STOPED_EMU:
|
case DID_STOPED_EMU:
|
||||||
is_runned = false;
|
is_running = false;
|
||||||
is_stopped = true;
|
is_stopped = true;
|
||||||
is_ready = false;
|
is_ready = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DID_PAUSE_EMU:
|
case DID_PAUSE_EMU:
|
||||||
case DID_PAUSED_EMU:
|
case DID_PAUSED_EMU:
|
||||||
is_runned = false;
|
is_running = false;
|
||||||
is_stopped = false;
|
is_stopped = false;
|
||||||
is_ready = false;
|
is_ready = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DID_RESUME_EMU:
|
case DID_RESUME_EMU:
|
||||||
case DID_RESUMED_EMU:
|
case DID_RESUMED_EMU:
|
||||||
is_runned = true;
|
is_running = true;
|
||||||
is_stopped = false;
|
is_stopped = false;
|
||||||
is_ready = false;
|
is_ready = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DID_READY_EMU:
|
case DID_READY_EMU:
|
||||||
is_runned = false;
|
is_running = false;
|
||||||
is_stopped = false;
|
is_stopped = false;
|
||||||
is_ready = true;
|
is_ready = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
is_runned = Emu.IsRunned();
|
is_running = Emu.IsRunning();
|
||||||
is_stopped = Emu.IsStopped();
|
is_stopped = Emu.IsStopped();
|
||||||
is_ready = Emu.IsReady();
|
is_ready = Emu.IsReady();
|
||||||
break;
|
break;
|
||||||
@ -426,7 +426,7 @@ void MainFrame::UpdateUI(wxCommandEvent& event)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
is_runned = Emu.IsRunned();
|
is_running = Emu.IsRunning();
|
||||||
is_stopped = Emu.IsStopped();
|
is_stopped = Emu.IsStopped();
|
||||||
is_ready = Emu.IsReady();
|
is_ready = Emu.IsReady();
|
||||||
}
|
}
|
||||||
@ -436,7 +436,7 @@ void MainFrame::UpdateUI(wxCommandEvent& event)
|
|||||||
wxMenuItem& stop = *menubar.FindItem( id_sys_stop );
|
wxMenuItem& stop = *menubar.FindItem( id_sys_stop );
|
||||||
wxMenuItem& send_exit = *menubar.FindItem( id_sys_send_exit );
|
wxMenuItem& send_exit = *menubar.FindItem( id_sys_send_exit );
|
||||||
|
|
||||||
pause.SetText(is_runned ? "Pause\tCtrl + P" : is_ready ? "Start\tCtrl + C" : "Resume\tCtrl + C");
|
pause.SetText(is_running ? "Pause\tCtrl + P" : is_ready ? "Start\tCtrl + C" : "Resume\tCtrl + C");
|
||||||
pause.Enable(!is_stopped);
|
pause.Enable(!is_stopped);
|
||||||
stop.Enable(!is_stopped);
|
stop.Enable(!is_stopped);
|
||||||
//send_exit.Enable(false);
|
//send_exit.Enable(false);
|
||||||
@ -502,7 +502,7 @@ void MainFrame::OnKeyDown(wxKeyEvent& event)
|
|||||||
switch(event.GetKeyCode())
|
switch(event.GetKeyCode())
|
||||||
{
|
{
|
||||||
case 'C': case 'c': if(Emu.IsPaused()) Emu.Resume(); else if(Emu.IsReady()) Emu.Run(); return;
|
case 'C': case 'c': if(Emu.IsPaused()) Emu.Resume(); else if(Emu.IsReady()) Emu.Run(); return;
|
||||||
case 'P': case 'p': if(Emu.IsRunned()) Emu.Pause(); return;
|
case 'P': case 'p': if(Emu.IsRunning()) Emu.Pause(); return;
|
||||||
case 'S': case 's': if(!Emu.IsStopped()) Emu.Stop(); return;
|
case 'S': case 's': if(!Emu.IsStopped()) Emu.Stop(); return;
|
||||||
case 'R': case 'r': if(!Emu.m_path.IsEmpty()) {Emu.Stop(); Emu.Run();} return;
|
case 'R': case 'r': if(!Emu.m_path.IsEmpty()) {Emu.Stop(); Emu.Run();} return;
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ static void safe_realloc(T* ptr, uint new_size)
|
|||||||
|
|
||||||
enum Status
|
enum Status
|
||||||
{
|
{
|
||||||
Runned,
|
Running,
|
||||||
Paused,
|
Paused,
|
||||||
Stopped,
|
Stopped,
|
||||||
Ready,
|
Ready,
|
||||||
|
Loading…
Reference in New Issue
Block a user