mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 01:05:47 -04:00
Qt: Fix opening debugger when system already paused
This commit is contained in:
@ -560,6 +560,12 @@ bool Boot(const SystemBootParameters& params)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (params.start_paused)
|
||||
{
|
||||
DebugAssert(s_state == State::Running);
|
||||
s_state = State::Paused;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -699,7 +705,7 @@ bool Boot(const SystemBootParameters& params)
|
||||
}
|
||||
|
||||
// Good to go.
|
||||
s_state = State::Running;
|
||||
s_state = params.start_paused ? State::Paused : State::Running;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@ struct SystemBootParameters
|
||||
u32 media_playlist_index = 0;
|
||||
bool load_image_to_ram = false;
|
||||
bool force_software_renderer = false;
|
||||
bool start_paused = false;
|
||||
};
|
||||
|
||||
namespace System {
|
||||
|
Reference in New Issue
Block a user