mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-09-09 01:25:35 -05:00
Fixing intro crash and graphics
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user