Agrarsense
PlatformUtilities.cpp
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#include "PlatformUtilities.h"
7
8#include "GenericPlatform/GenericPlatformFile.h"
9#include "Misc/Paths.h"
10#include "HAL/PlatformFileManager.h"
11#include "HAL/PlatformApplicationMisc.h"
12
13#pragma warning(disable: 4702)
14
16{
17#if WITH_EDITOR
18 return true;
19#endif
20
21 return false;
22}
23
25{
26#if PLATFORM_LINUX
27 return true;
28#endif
29
30 return false;
31}
32
34{
35#if PLATFORM_WINDOWS
36 return true;
37#endif
38
39 return false;
40}
41
43{
44#if UE_BUILD_SHIPPING
45 return true;
46#endif
47
48 return false;
49}
50
52{
53 FPlatformApplicationMisc::ClipboardCopy(*TextToCopy);
54}
static bool PlayingInEditor()
static bool IsPlatformWindows()
static bool IsShippingBuild()
static void CopyTextToClipboard(FString TextToCopy)
static bool IsPlatformLinux()