Fixing intro crash and graphics

This commit is contained in:
GearsProgress
2026-09-07 11:22:22 -04:00
parent bbe4edeee8
commit 3cc00d3aa9
2 changed files with 29 additions and 0 deletions

View File

@@ -1257,6 +1257,10 @@ bool LinkConnection::LinkCommand_InitalizeConnection(bool waitForCompletion)
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
PTGB_MGBA_INFO("Running command: InitalizeConnection");
@@ -1276,6 +1280,10 @@ bool LinkConnection::LinkCommand_ReloadCurrentBox(bool waitForCompletion)
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
PTGB_MGBA_INFO("Running command: ReloadCurrentBox");
@@ -1297,6 +1305,10 @@ bool LinkConnection::LinkCommand_TransferPokemon(int boxNumber, byte removalArra
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
int maxBoxes = 0;
if (gen == 1)
@@ -1350,6 +1362,10 @@ bool LinkConnection::LinkCommand_SoftReset(bool waitForCompletion)
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
PTGB_MGBA_INFO("Running command: SoftReset");
@@ -1371,6 +1387,10 @@ bool LinkConnection::LinkCommand_ModifySRAMAccess(bool enableSRAM, byte SRAMbank
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
if (SRAMbank > 3)
{
@@ -1404,6 +1424,10 @@ bool LinkConnection::LinkCommand_RunSecondaryPayload(byte payload[], int payload
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
PTGB_MGBA_INFO("Running command: RunSecondaryPayload");
@@ -1426,6 +1450,10 @@ bool LinkConnection::LinkCommand_ReadMemorySection(u32 dataPointer, byte outArra
{
return true;
}
else if (!linkSPI->isActive())
{
return false;
}
if (dataPointer > 0xFFFF)
{