mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Cleanup a lot of the bootup state management.
This commit is contained in:
1 parent
e6ea158dcc
commit
088a02bfdb
30 files changed
+239
-257
No files matched your search
@@ -150,7 +150,7 @@ void WebSocketGPUStatsState::FlipListener() {
|
||||
// Note: stats are returned after the next flip completes (paused if CPU or GPU in break.)
|
||||
// Note: info and timing may not be accurate if certain settings are disabled.
|
||||
void WebSocketGPUStatsState::Get(DebuggerRequest &req) {
|
||||
if (!PSP_IsInited())
|
||||
if (PSP_GetBootState() != BootState::Complete)
|
||||
return req.Fail("CPU not started");
|
||||
|
||||
std::lock_guard<std::mutex> guard(pendingLock_);
|
||||
@@ -169,7 +169,7 @@ void WebSocketGPUStatsState::Get(DebuggerRequest &req) {
|
||||
//
|
||||
// Note: info and timing will be accurate after the first frame.
|
||||
void WebSocketGPUStatsState::Feed(DebuggerRequest &req) {
|
||||
if (!PSP_IsInited())
|
||||
if (PSP_GetBootState() != BootState::Complete)
|
||||
return req.Fail("CPU not started");
|
||||
bool enable = true;
|
||||
if (!req.ParamBool("enable", &enable, DebuggerParamType::OPTIONAL))
|
||||
|
||||
Reference in new issue
Block a user