Compare commits
No commits in common. "27095ae6c7229a9bec9fc13dad1d2fd05652ed4a" and "ff10e884dc947df9b95284b0764d26f5591de627" have entirely different histories.
27095ae6c7
...
ff10e884dc
4 changed files with 4 additions and 15 deletions
|
@ -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,
|
// 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.
|
// we call this function before unloading the module.
|
||||||
|
|
||||||
if (GEngine && GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) {
|
if (GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) {
|
||||||
GEngine->GetEngineSubsystem<USkyPortalSubsystem>()->Deinitialize();
|
GEngine->GetEngineSubsystem<USkyPortalSubsystem>()->Deinitialize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
} while (write == false && (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
|
|
||||||
}
|
|
||||||
UE_LOG(LogSkyportalIO, Verbose, TEXT("Querying block %d - success"), BlockIndex);
|
UE_LOG(LogSkyportalIO, Verbose, TEXT("Querying block %d - success"), BlockIndex);
|
||||||
UE_LOG(LogSkyportalIO, VeryVerbose, TEXT("Data block %d = \n %s"), BlockIndex,*OutputToString(output));
|
UE_LOG(LogSkyportalIO, VeryVerbose, TEXT("Data block %d = \n %s"), BlockIndex,*OutputToString(output));
|
||||||
return output;
|
return output;
|
||||||
|
|
|
@ -71,8 +71,6 @@ void FPortalStatusChecker::CheckPortalStatus()
|
||||||
if (
|
if (
|
||||||
//!FalsePositive() //filter conflicting infos
|
//!FalsePositive() //filter conflicting infos
|
||||||
true) {
|
true) {
|
||||||
int32 figID = 0;
|
|
||||||
UFigureData* figData = NewObject<UFigureData>();
|
|
||||||
//FigureDataBlock FigureData;
|
//FigureDataBlock FigureData;
|
||||||
switch (CurrentStatusData.StatusArray[i])
|
switch (CurrentStatusData.StatusArray[i])
|
||||||
{
|
{
|
||||||
|
@ -80,12 +78,8 @@ void FPortalStatusChecker::CheckPortalStatus()
|
||||||
case EFigureStatus::PRESENT:
|
case EFigureStatus::PRESENT:
|
||||||
break;
|
break;
|
||||||
case EFigureStatus::ADDED:
|
case EFigureStatus::ADDED:
|
||||||
figData = PortalHandleRef->ReadFigureBlocks(i);
|
//figData = PortalHandleRef->ReadFigureBlocks(i);
|
||||||
if (figData)
|
subref->OnSkylanderAdded.Broadcast(00, i);
|
||||||
{
|
|
||||||
figID = figData->GetFigureID();
|
|
||||||
}
|
|
||||||
subref->OnSkylanderAdded.Broadcast(figID, i);
|
|
||||||
break;
|
break;
|
||||||
case EFigureStatus::REMOVED:
|
case EFigureStatus::REMOVED:
|
||||||
subref->OnSkylanderRemoved.Broadcast(00, i);
|
subref->OnSkylanderRemoved.Broadcast(00, i);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "SkyPortalDefinitions.h"
|
|
||||||
#include "HAL/Runnable.h"
|
#include "HAL/Runnable.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue