Compare commits

..

No commits in common. "27095ae6c7229a9bec9fc13dad1d2fd05652ed4a" and "ff10e884dc947df9b95284b0764d26f5591de627" have entirely different histories.

4 changed files with 4 additions and 15 deletions

View file

@ -15,7 +15,7 @@ void FSkyPortalModule::ShutdownModule()
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
// we call this function before unloading the module.
if (GEngine && GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) {
if (GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) {
GEngine->GetEngineSubsystem<USkyPortalSubsystem>()->Deinitialize();
}
}

View file

@ -206,11 +206,7 @@ uint8* USkyPortalIO::QueryBlock(uint8 FigureIndex, uint8 BlockIndex)
}
}
} while (write == false && output && (output[0] != 'Q' || (output[1] % 0x10 != FigureIndex && output[1] != 0x01) || output[2] != BlockIndex) && attempt < 10);
if (output == nullptr) {
UE_LOG(LogSkyportalIO, Error, TEXT("Query failed after %d attempts"), attempt);
return 0; // Return early if the loop failed to get valid output
}
} while (write == false && (output[0] != 'Q' || (output[1] % 0x10 != FigureIndex && output[1] != 0x01) || output[2] != BlockIndex) && attempt < 10);
UE_LOG(LogSkyportalIO, Verbose, TEXT("Querying block %d - success"), BlockIndex);
UE_LOG(LogSkyportalIO, VeryVerbose, TEXT("Data block %d = \n %s"), BlockIndex,*OutputToString(output));
return output;

View file

@ -71,8 +71,6 @@ void FPortalStatusChecker::CheckPortalStatus()
if (
//!FalsePositive() //filter conflicting infos
true) {
int32 figID = 0;
UFigureData* figData = NewObject<UFigureData>();
//FigureDataBlock FigureData;
switch (CurrentStatusData.StatusArray[i])
{
@ -80,12 +78,8 @@ void FPortalStatusChecker::CheckPortalStatus()
case EFigureStatus::PRESENT:
break;
case EFigureStatus::ADDED:
figData = PortalHandleRef->ReadFigureBlocks(i);
if (figData)
{
figID = figData->GetFigureID();
}
subref->OnSkylanderAdded.Broadcast(figID, i);
//figData = PortalHandleRef->ReadFigureBlocks(i);
subref->OnSkylanderAdded.Broadcast(00, i);
break;
case EFigureStatus::REMOVED:
subref->OnSkylanderRemoved.Broadcast(00, i);

View file

@ -1,6 +1,5 @@
#pragma once
#include "SkyPortalDefinitions.h"
#include "HAL/Runnable.h"