mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #655 from lioncash/crashes
Fix two possible crashes related to the debugger.
This commit is contained in:
commit
008b907bf0
@ -30,7 +30,7 @@ namespace PowerPC
|
||||
|
||||
// STATE_TO_SAVE
|
||||
PowerPCState GC_ALIGNED16(ppcState);
|
||||
static volatile CPUState state = CPU_STEPPING;
|
||||
static volatile CPUState state = CPU_POWERDOWN;
|
||||
|
||||
Interpreter * const interpreter = Interpreter::getInstance();
|
||||
static CoreMode mode;
|
||||
|
@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)
|
||||
|
||||
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
||||
{
|
||||
if (!Memory::IsInitialized())
|
||||
{
|
||||
PanicAlertT("Cannot set uninitialized memory.");
|
||||
return;
|
||||
}
|
||||
|
||||
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
||||
std::string str_val = WxStrToStr(valbox->GetValue());
|
||||
u32 addr;
|
||||
|
Loading…
Reference in New Issue
Block a user