mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Start removing bad coreState checks
This commit is contained in:
@@ -469,13 +469,12 @@ bool PortManager::RefreshPortList() {
|
||||
#endif // WITH_UPNP
|
||||
}
|
||||
|
||||
int upnpService(const unsigned int timeout)
|
||||
{
|
||||
int upnpService(const unsigned int timeout) {
|
||||
SetCurrentThreadName("UPnPService");
|
||||
INFO_LOG(Log::sceNet, "UPnPService: Begin of UPnPService Thread");
|
||||
|
||||
// Service Loop
|
||||
while (upnpServiceRunning && coreState != CORE_POWERDOWN) {
|
||||
while (upnpServiceRunning) {
|
||||
// Sleep for 1ms for faster response if active, otherwise sleep longer (TODO: Improve on this).
|
||||
sleep_ms(g_Config.bEnableUPnP ? 1 : 100, "upnp-poll");
|
||||
|
||||
|
||||
@@ -2118,11 +2118,6 @@ GPUDebug::NotifyResult GPUCommon::NotifyCommand(u32 pc, GPUBreakpoints *breakpoi
|
||||
if (debugBreak) {
|
||||
breakpoints->ClearTempBreakpoints();
|
||||
|
||||
if (coreState == CORE_POWERDOWN) {
|
||||
breakNext_ = BreakNext::NONE;
|
||||
return process ? NotifyResult::Execute : NotifyResult::Skip;
|
||||
}
|
||||
|
||||
u32 op = Memory::Read_U32(pc);
|
||||
auto info = DisassembleOp(pc, op);
|
||||
NOTICE_LOG(Log::GeDebugger, "Waiting at %08x, %s", pc, info.desc.c_str());
|
||||
|
||||
@@ -316,10 +316,7 @@ void MainThreadFunc() {
|
||||
|
||||
DEBUG_LOG(Log::Boot, "Done.");
|
||||
|
||||
if (coreState == CORE_POWERDOWN) {
|
||||
INFO_LOG(Log::Boot, "Exit before core loop.");
|
||||
goto shutdown;
|
||||
}
|
||||
_dbg_assert_(coreState != CORE_POWERDOWN);
|
||||
|
||||
g_inLoop = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user