Skip to content

Commit

Permalink
feat: make this compile on ue5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
odinn1984 committed Nov 13, 2023
1 parent e386df6 commit cd839a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "CustomMessageDialog.h"

#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 1
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 2

EAppReturnType::Type FCustomMessageDialog::Open(
EAppMsgCategory MessageCategory,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 1
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 2

enum class EAppMsgCategory : uint8
{
Expand All @@ -14,7 +14,7 @@ enum class EAppMsgCategory : uint8

struct FCustomMessageDialog : FMessageDialog
{
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 1
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 2

static EAppReturnType::Type Open(
EAppMsgCategory MessageCategory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

#include "CoreMinimal.h"

#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION == 3
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2
#include "HttpFwd.h"
#elif ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION <= 1
#include "Interfaces/IHttpRequest.h"
#endif

#include "JsonObjectConverter.h"
#include "Logging/MessageLog.h"
#include "SkyboxAiHttpClient.generated.h"

typedef TFunction<void(const FString &Body, int StatusCode, bool bConnectedSuccessfully)> FSkyboxAiHttpCallback;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ There are many solutions for secret management, please use one of them if you wa
| -------------- | ------- | ----- | --- |
| **5.0** | YES | NO | NO |
| **5.1** | YES | NO | NO |
| **5.2** | NO | NO | NO |
| **5.2** | YES | NO | NO |
| **5.3** | YES | NO | NO |

## Setting Up The Plugin
Expand Down

0 comments on commit cd839a4

Please sign in to comment.