Start removing bad coreState checks

This commit is contained in:
Henrik Rydgård
2025-04-04 14:52:10 +02:00
parent f573b0c72c
commit ebfc467d5d
3 changed files with 3 additions and 12 deletions
+2 -3
View File
@@ -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");
-5
View File
@@ -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());
+1 -4
View File
@@ -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;