Linux implementation of the misc OS functions 更多...
#include <LinuxPlatformMisc.h>
类 FLinuxPlatformMisc 继承关系图:额外继承的成员函数 | |
静态 Public 成员函数 继承自 FUnixPlatformMisc | |
| static uint32 | GetCPUInfo () |
| Uses cpuid instruction to get the vendor string 更多... | |
| static const TCHAR * | GetNullRHIShaderFormat () |
| Determines the shader format for the platform 更多... | |
| static bool | HasBeenStartedRemotely () |
| Returns whether the program has been started remotely (e.g. 更多... | |
| static bool | HasOverriddenReturnCode (uint8 *OverriddenReturnCodeToUsePtr) |
| Determines if return code has been overriden and returns it. 更多... | |
| static void | UngrabAllInput () |
| Ungrabs input (useful before breaking into debugging) | |
静态 Public 成员函数 继承自 FGenericPlatformMisc | |
| static void | AddAdditionalRootDirectory (const FString &RootDir) |
| add an additional root directory | |
| static bool | AllowAudioThread () |
| Checks if platform wants to allow an audio thread on current device (note: does not imply it will, only if okay given other criteria met) 更多... | |
| static bool | AllowThreadHeartBeat () |
| Checks if platform wants to allow the thread heartbeat hang detection 更多... | |
| static void | BeginNamedEvent (const struct FColor &Color, const TCHAR *Text) |
| Platform specific function for adding a named event that can be viewed in external tool | |
| static FORCEINLINE void | BeginNamedEventFrame () |
| Indicates the start of a frame for named events | |
| static void | BeginProfilerColor (const struct FColor &Color) |
| Profiler color stack - this overrides the color for named events with undefined colors (e.g stat namedevents) | |
| static void | CacheLaunchDir () |
| Function to store the current working directory for use with LaunchDir() | |
| static void | ClipboardCopy (const TCHAR *Str) |
| Copies text to the operating system clipboard. | |
| static void | ClipboardPaste (class FString &Dest) |
| Pastes in text from the operating system clipboard. | |
| static FString | CloudDir () |
| Return the CloudDir. 更多... | |
| static bool | CommandLineCommands () |
| Handles Game Explorer, Firewall and FirstInstall commands, typically from the installer 更多... | |
| static void | CreateGuid (struct FGuid &Result) |
| Create a new globally unique identifier. | |
| static void | CustomNamedStat (const TCHAR *Text, float Value, const TCHAR *Graph, const TCHAR *Unit) |
| Platform specific function for adding a named custom stat that can be viewed in external tool | |
| static FORCEINLINE void | DebugBreak () |
| Break into the debugger, if IsDebuggerPresent returns true, otherwise do nothing | |
| static bool | DeleteStoredSection (const FString &InStoreId, const FString &InSectionName) |
| Deletes the given section and its contained values in the platform specific key->value store Note: The key->value store is user-specific, but may be used to share data between different applications for the same user 更多... | |
| static bool | DeleteStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName) |
| Deletes value for the given section and key in the platform specific key->value store Note: The key->value store is user-specific, but may be used to share data between different applications for the same user 更多... | |
| static void | EndNamedEvent () |
| Platform specific function for closing a named event that can be viewed in external tool | |
| static const TCHAR * | EngineDir () |
| Get the engine directory | |
| static bool | Exec (class UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Out) |
| Platform-specific Exec function 更多... | |
| static const TCHAR * | GamePersistentDownloadDir () |
| Return the GamePersistentDownloadDir. 更多... | |
| static TArray< FString > | GetAdditionalRootDirectories () |
| get additional directories which can be considered as root directories | |
| static FORCEINLINE int | GetBatteryLevel () |
| Gets the current battery level. 更多... | |
| static EConvertibleLaptopMode | GetConvertibleLaptopMode () |
| Gets the current mode of convertible laptops, i.e. 更多... | |
| static FString | GetCPUBrand () |
| Uses cpuid instruction to get the CPU brand string 更多... | |
| static FString | GetCPUChipset () |
| Returns the CPU chipset if known 更多... | |
| static uint32 | GetCPUInfo () |
| On x86(-64) platforms, uses cpuid instruction to get the CPU signature 更多... | |
| static FString | GetCPUVendor () |
| Uses cpuid instruction to get the vendor string 更多... | |
| static const TCHAR * | GetDefaultDeviceProfileName () |
| Gets the default profile name. 更多... | |
| static FString | GetDefaultLanguage () |
| Get the default language (for localization) used by this platform. 更多... | |
| static FString | GetDefaultLocale () |
| Get the default locale (for internationalization) used by this platform. 更多... | |
| static const TCHAR * | GetDefaultPathSeparator () |
| static FString | GetDeviceId () |
| Returns a unique string for device identification. 更多... | |
| static FString | GetDeviceMakeAndModel () |
| static EDeviceScreenOrientation | GetDeviceOrientation () |
| Returns the orientation of the device: e.g. 更多... | |
| static float | GetDeviceTemperatureLevel () |
| Returns the current device temperature level. 更多... | |
| static int32 | GetDeviceVolume () |
| Returns the device volume if the device is capable of returning that information. 更多... | |
| static bool | GetDiskTotalAndFreeSpace (const FString &InPath, uint64 &TotalNumberOfBytes, uint64 &NumberOfFreeBytes) |
| Retrieves information about the total number of bytes and number of free bytes for the specified disk path. | |
| static const TCHAR * | GetEngineMode () |
| Get a string description of the mode the engine was running in. | |
| static FString | GetEnvironmentVariable (const TCHAR *VariableName) |
| Retrieve a environment variable from the system 更多... | |
| static void | GetEnvironmentVariable (const TCHAR *VariableName, TCHAR *Result, int32 ResultLength) |
| Retrieve a environment variable from the system 更多... | |
| static FString | GetEpicAccountId () |
| Get the Epic account ID for the user who last used the Launcher. 更多... | |
| static FText | GetFileManagerName () |
| static FString | GetHashedMacAddressString () |
| Retrieve the Mac address of the current adapter as a hashed string (privacy). 更多... | |
| static FString | GetLocalCurrencyCode () |
| Returns the currency code associated with the device's locale 更多... | |
| static FString | GetLocalCurrencySymbol () |
| Returns the currency symbol associated with the device's locale 更多... | |
| static FString | GetLoginId () |
| Returns a unique string associated with the login account of the current machine. 更多... | |
| static TArray< uint8 > | GetMacAddress () |
| Retrieve the Mac address of the current adapter. 更多... | |
| static FString | GetMacAddressString () |
| Retrieve the Mac address of the current adapter as a string. 更多... | |
| static FGuid | GetMachineId () |
| Get (or create) the unique ID used to identify this computer. 更多... | |
| static FORCEINLINE int32 | GetMaxPathLength () |
| Returns the maximum length of a path | |
| static int32 | GetMaxRefreshRate () |
| retrieves the maximum refresh rate supported by the platform | |
| static ENetworkConnectionType | GetNetworkConnectionType () |
| Returns whether WiFi connection is currently active | |
| static FORCEINLINE void | GetNetworkFileCustomData (TMap< FString, FString > &OutCustomPlatformData) |
| Returns any platform-specific key-value data that needs to be sent to the network file server | |
| static const TCHAR * | GetNullRHIShaderFormat () |
| Determines the shader format for the platform 更多... | |
| static FString | GetOperatingSystemId () |
| Gets a globally unique ID the represents a particular operating system install. 更多... | |
| static FString | GetOSVersion () |
| Gets a string representing the numeric OS version (as opposed to a translated OS version that GetOSVersions returns). 更多... | |
| static void | GetOSVersions (FString &out_OSVersionLabel, FString &out_OSSubVersionLabel) |
| Gets the OS Version and OS Subversion. | |
| static const TCHAR * | GetPathVarDelimiter () |
| return the delimiter between paths in the PATH environment variable. | |
| static IPlatformChunkInstall * | GetPlatformChunkInstall () |
| Returns the platform specific chunk based install interface 更多... | |
| static IPlatformCompression * | GetPlatformCompression () |
| Returns the platform specific compression interface 更多... | |
| static const TCHAR * | GetPlatformFeaturesModuleName () |
| Return the name of the platform features module. 更多... | |
| static bool | GetPlatformScreenWarnings (TArray< FText > &PlatformScreenWarnings) |
| Returns any platform specific warning messages we want printed on screen | |
| static struct FAsyncIOSystemBase * | GetPlatformSpecificAsyncIOSystem () |
| Return the platform specific async IO system, or nullptr if the standard one should be used. | |
| static TArray< FString > | GetPreferredLanguages () |
| Returns an array of the user's preferred languages in order of preference 更多... | |
| static FString | GetPrimaryGPUBrand () |
| static bool | GetSHA256Signature (const void *Data, uint32 ByteSize, FSHA256Signature &OutSignature) |
| Generates the SHA256 signature of the given data. 更多... | |
| static bool | GetStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, FString &OutValue) |
| Get the value for the given section and key from the platform specific key->value store Note: The key->value store is user-specific, but may be used to share data between different applications for the same user 更多... | |
| static const TCHAR * | GetSystemErrorMessage (TCHAR *OutBuffer, int32 BufferCount, int32 Error) |
| Returns the last system error code in string form. 更多... | |
| static TArray< uint8 > | GetSystemFontBytes () |
| static FString | GetTimeZoneId () |
| Get the timezone identifier for this platform, or an empty string if the default timezone calculation will work. 更多... | |
| static FString | GetUniqueAdvertisingId () |
| Returns a unique string for advertising identification 更多... | |
| static bool | GetUseVirtualJoysticks () |
| Returns whether the platform wants to use a touch screen for virtual joysticks. | |
| static void | GetValidTargetPlatforms (TArray< FString > &TargetPlatformNames) |
| Return an ordered list of target platforms this runtime can support (ie Android_DXT, Android would mean that it prefers Android_DXT, but can use Android as well) | |
| static bool | HasActiveWiFiConnection () |
| Returns whether WiFi connection is currently active | |
| static bool | HasMemoryWarningHandler () |
| Determines if a warning handler has been set | |
| static bool | HasNonoptionalCPUFeatures () |
| static bool | HasPlatformFeature (const TCHAR *FeatureName) |
| Returns whether the given platform feature is currently available (for instance, Metal is only available in IOS8 and with A7 devices) | |
| static bool | HasProjectPersistentDownloadDir () |
| Return true if the PersistentDownloadDir is available. 更多... | |
| static bool | HasSeparateChannelForDebugOutput () |
| Whether the platform has a separate debug channel to stdout (eg. 更多... | |
| static bool | HasVariableHardware () |
| Returns whether the platform has variable hardware (configurable/upgradeable system). | |
| static FORCEINLINE void | InitTaggedStorage (uint32 NumTags) |
| Platform specific function for initializing storage of tagged memory buffers | |
| static FORCEINLINE bool | Is64bitOperatingSystem () |
| Detects whether we're running in a 64-bit operating system. 更多... | |
| static FORCEINLINE bool | IsDebuggerPresent () |
| Return true if a debugger is present | |
| static bool | IsEnsureAllowed () |
| Allows disabling ensure()s without rebuilding the binary, by either a commandline switch or a hotfix. 更多... | |
| static bool | IsLocalPrintThreadSafe () |
| Whether LocalPrint can be called from any thread without overlapping | |
| static bool | IsPackagedForDistribution () |
| static bool | IsRegisteredForRemoteNotifications () |
| Returns whether or not the device has been registered to receive remote notifications. | |
| static bool | IsRemoteSession () |
| Check to see if the platform is being viewed remotely. 更多... | |
| static bool | IsRunningOnBattery () |
| Returns whether the platform is running on battery power or not. | |
| static bool | IsStandaloneStereoOnlyDevice () |
| Returns whether this is a 'stereo only' platform. 更多... | |
| static bool | IsValidAbsolutePathFormat (const FString &Path) |
| Checks structure of the path against platform formatting requirements 更多... | |
| static const TCHAR * | LaunchDir () |
| Get the directory the application was launched from (useful for commandline utilities) | |
| static FString | LoadTextFileFromPlatformPackage (const FString &RelativePath) |
| Loads a text file relative to the package root on platforms that distribute apps in package formats. 更多... | |
| static void | LocalPrint (const TCHAR *Str) |
| Prints string to the default output | |
| static void | LowLevelOutputDebugString (const TCHAR *Message) |
| Sends a message to a remote tool, and debugger consoles | |
| static FORCENOINLINE void | MemoryBarrier () |
| Enforces strict memory load/store ordering across the memory barrier call. | |
| static EAppReturnType::Type | MessageBoxExt (EAppMsgType::Type MsgType, const TCHAR *Text, const TCHAR *Caption) |
| Show a message box if possible, otherwise print a message and return the default 更多... | |
| static bool | NeedsNonoptionalCPUFeaturesCheck () |
| static void | NormalizePath (FString &InPath) |
| Platform-specific normalization of path E.g. 更多... | |
| static int32 | NumberOfCores () |
| return the number of hardware CPU cores | |
| static int32 | NumberOfCoresIncludingHyperthreads () |
| return the number of logical CPU cores | |
| static int32 | NumberOfIOWorkerThreadsToSpawn () |
| Return the number of worker threads we should spawn to service IO, NOT based on number of cores | |
| static int32 | NumberOfWorkerThreadsToSpawn () |
| Return the number of worker threads we should spawn, based on number of cores | |
| static bool | OsExecute (const TCHAR *CommandType, const TCHAR *Command, const TCHAR *CommandLine=NULL) |
| Has the OS execute a command and path pair (such as launch a browser) 更多... | |
| static void | PlatformHandleSplashScreen (bool ShowSplashScreen=false) |
| Called to dismiss splash screen | |
| static void | PlatformPreInit () |
| Called during appInit() after cmd line setup | |
| static void | PlatformTearDown () |
| Called during AppExit(). 更多... | |
| static FORCEINLINE void | Prefetch (void const *x, int32 offset=0) |
| Platform-specific instruction prefetch | |
| static void | PrepareMobileHaptics (EMobileHapticsType Type) |
| For mobile devices, this will crank up a haptic engine for the specified type to be played later with TriggerMobileHaptics If this is called again before Release, it will switch to this type | |
| static const TCHAR * | ProjectDir () |
| Return the project directory | |
| static void | PumpEssentialAppMessages () |
| Pumps app messages only if there are essential keep-alive messages pending. 更多... | |
| static void | RegisterForRemoteNotifications () |
| Requests permission to send remote notifications to the user's device. | |
| static void | ReleaseMobileHaptics () |
| For mobile devices, this will shutdown the haptics, allowing system to put it to reset as needed | |
| static void | RequestExit (bool Force) |
| Requests application exit. 更多... | |
| static void | RequestExitWithStatus (bool Force, uint8 ReturnCode) |
| Requests application exit with a specified return code. 更多... | |
| static bool | RestartApplication () |
| Requests application to restart | |
| static const TCHAR * | RootDir () |
| Get the application root directory. | |
| static void | SetCrashHandler (void(*CrashHandler)(const FGenericCrashContext &Context)) |
| Installs handler for the unexpected (due to error) termination of the program, including, but not limited to, crashes. | |
| static void | SetEnvironmentVar (const TCHAR *VariableName, const TCHAR *Value) |
| Sets an environment variable to the local process's environment 更多... | |
| static bool | SetEpicAccountId (const FString &AccountId) |
| Set the Epic account ID for the user who last used the Launcher 更多... | |
| static void | SetGracefulTerminationHandler () |
| Set/restore the Console Interrupt (Control-C, Control-Break, Close) handler. | |
| static void | SetMemoryWarningHandler (void(*Handler)(const FGenericMemoryWarningContext &Context)) |
| Set a handler to be called when there is a memory warning from the OS 更多... | |
| static void | SetOverrideProjectDir (const FString &InOverrideDir) |
| Allows a game/program/etc to control the game directory in a special place (for instance, monolithic programs that don't have .uprojects) | |
| static bool | SetStoredValue (const FString &InStoreId, const FString &InSectionName, const FString &InKeyName, const FString &InValue) |
| Set the value for the given section and key in the platform specific key->value store Note: The key->value store is user-specific, but may be used to share data between different applications for the same user 更多... | |
| static bool | SetStoredValues (const FString &InStoreId, const FString &InSectionName, const TMap< FString, FString > &InKeyValues) |
| Set the value for the given section and key in the platform specific key->value store Note: The key->value store is user-specific, but may be used to share data between different applications for the same user 更多... | |
| static void | SetUTF8Output () |
| Sets the default output to UTF8 | |
| static void | ShareURL (const FString &URL, const FText &Description, int32 LocationHintX, int32 LocationHintY) |
| Perform a mobile-style sharing of a URL. 更多... | |
| static bool | ShouldDisablePluginAtRuntime (const FString &PluginName) |
| Allows platform at runtime to disable unsupported plugins 更多... | |
| static FORCEINLINE void | ShutdownTaggedStorage () |
| Platform specific function for freeing storage of tagged memory buffers | |
| static void | SubmitErrorReport (const TCHAR *InErrorHist, EErrorReportMode::Type InMode) |
| Submits a crash report to a central server (release builds only) | |
| static bool | SupportsFullCrashDumps () |
| Platform can generate a full-memory crashdump during crash handling. | |
| static bool | SupportsMultithreadedFileHandles () |
| static FORCEINLINE void | TagBuffer (const char *Label, uint32 Category, const void *Buffer, size_t BufferSize) |
| Platform specific function for tagging a memory buffer with a label. 更多... | |
| static void | TearDown () |
| Frees any memory retained by FGenericPlatformMisc. | |
| static void | TickHotfixables () |
| Ticks values that can be hotfixable in the config. | |
| static void | TriggerMobileHaptics () |
| For mobile devices, this will kick the haptic type that was set in PrepareMobileHaptics. 更多... | |
| static void | UnregisterForRemoteNotifications () |
| Requests unregistering from receiving remote notifications on the user's device. | |
| static void | UpdateHotfixableEnsureSettings () |
| Updates hotfixable ensure settings from config and commandline (config takes priority). | |
| static bool | UseRenderThread () |
| Checks if platform wants to use a rendering thread on current device 更多... | |
静态 Protected 属性 继承自 FGenericPlatformMisc | |
| static bool | bPromptForRemoteDebugOnEnsure |
| Whether the user should be prompted to allow for a remote debugger to be attached on an ensure | |
| static bool | bShouldPromptForRemoteDebugging |
| Whether the user should be prompted to allow for a remote debugger to be attached | |
Linux implementation of the misc OS functions