Agrarsense
Unreal
Agrarsense
Source
Agrarsense
Utils
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
15
bool
UPlatformUtilities::PlayingInEditor
()
16
{
17
#if WITH_EDITOR
18
return
true
;
19
#endif
20
21
return
false
;
22
}
23
24
bool
UPlatformUtilities::IsPlatformLinux
()
25
{
26
#if PLATFORM_LINUX
27
return
true
;
28
#endif
29
30
return
false
;
31
}
32
33
bool
UPlatformUtilities::IsPlatformWindows
()
34
{
35
#if PLATFORM_WINDOWS
36
return
true
;
37
#endif
38
39
return
false
;
40
}
41
42
bool
UPlatformUtilities::IsShippingBuild
()
43
{
44
#if UE_BUILD_SHIPPING
45
return
true
;
46
#endif
47
48
return
false
;
49
}
50
51
void
UPlatformUtilities::CopyTextToClipboard
(FString TextToCopy)
52
{
53
FPlatformApplicationMisc::ClipboardCopy(*TextToCopy);
54
}
PlatformUtilities.h
UPlatformUtilities::PlayingInEditor
static bool PlayingInEditor()
Definition:
PlatformUtilities.cpp:15
UPlatformUtilities::IsPlatformWindows
static bool IsPlatformWindows()
Definition:
PlatformUtilities.cpp:33
UPlatformUtilities::IsShippingBuild
static bool IsShippingBuild()
Definition:
PlatformUtilities.cpp:42
UPlatformUtilities::CopyTextToClipboard
static void CopyTextToClipboard(FString TextToCopy)
Definition:
PlatformUtilities.cpp:51
UPlatformUtilities::IsPlatformLinux
static bool IsPlatformLinux()
Definition:
PlatformUtilities.cpp:24
Generated by
1.9.4