Skip to content

Commit

Permalink
feat: minor improvements (#140)
Browse files Browse the repository at this point in the history
* fix: fixed minor issues

* fix: compile issues with header file inclusion
  • Loading branch information
YermekG authored Oct 8, 2024
1 parent a3e1aec commit 80c77bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Source/Immutable/Private/Immutable/ImtblBlui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ void UImtblBlui::Init()
BluEye->bEnabled = true;
IMTBL_LOG("Events subscribed")

BluEye->Init();
if (!BluEye->Init())
{
IMTBL_ERR("BluEye is not initialised")
return;
}
IMTBL_LOG("BluEye Initialised")

// We're attempting to replicate the process that Unreal's WebBrowser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "CoreMinimal.h"
#include "Immutable/ImmutableSubsystem.h"
#include "Kismet/BlueprintAsyncActionBase.h"

#include "ImtblBlueprintAsyncAction.generated.h"
Expand All @@ -20,5 +20,5 @@ class IMMUTABLE_API UImtblBlueprintAsyncAction : public UBlueprintAsyncActionBas
UObject* WorldContextObject;

// Get subsystem
class UImmutableSubsystem* GetSubsystem() const;
UImmutableSubsystem* GetSubsystem() const;
};
2 changes: 1 addition & 1 deletion Source/Immutable/Public/Immutable/ImmutableDataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct FImtblUserProfile
};

USTRUCT()
struct FImmutablePassportZkEvmRequestAccountsData
struct IMMUTABLE_API FImmutablePassportZkEvmRequestAccountsData
{
GENERATED_BODY()

Expand Down
6 changes: 3 additions & 3 deletions Source/Immutable/Public/Immutable/ImmutableSubsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "CoreMinimal.h"
#include "ImmutablePassport.h"
#include "Subsystems/GameInstanceSubsystem.h"
// clang-format off
#include "ImmutableSubsystem.generated.h"
Expand All @@ -22,7 +22,7 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
virtual void Deinitialize() override;

TWeakObjectPtr<class UImmutablePassport> GetPassport() const
TWeakObjectPtr<UImmutablePassport> GetPassport() const
{
return MakeWeakObjectPtr(Passport);
}
Expand Down Expand Up @@ -56,7 +56,7 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
class UImtblBlui* ImtblBlui = nullptr;

UPROPERTY()
class UImmutablePassport* Passport = nullptr;
UImmutablePassport* Passport = nullptr;

bool bHasSetupGameBridge = false;
bool bIsReady = false;
Expand Down

0 comments on commit 80c77bf

Please sign in to comment.