Enum LoadFlags
- Namespace
- SharpPluginLoader.Core
- Assembly
- SharpPluginLoader.Core.dll
Flags to pass to the GetResource<T>(string, MtDti, LoadFlags) method.
[Flags]
public enum LoadFlags
Fields
Async = 2Load the resource asynchronously.
Background = 4Load the resource in the background. Exact behavior is unknown.
Blocking = 1Load the resource in a blocking manner, i.e. wait for the resource to be loaded before returning.
Create = 8Create the path if it doesn't exist.
NoLoad = 16Only return the resource if it's already loaded, otherwise return null. Takes precedence over all other flags.
None = 0No flags.
Preload = 64Preload the resource. I.e. only create the resource object, but don't load the actual data. Incompatible with Blocking and Async. This operation is always synchronous.
QualityHigh = 512Load with high quality. Most likely used for textures.
QualityHighest = 1024Load with the highest quality. Most likely used for textures.
QualityLow = 256Load with low quality. Most likely used for textures.
QualityLowest = 128Load with the lowest quality. Most likely used for textures.
Stream = 32Load the resource from the nativePC folder.
Unknown = 2048Unknown flag, affects the behavior of file opening.
UseLoadList2 = 16384Use the second load list. Exact behavior is unknown. Ignored unless Async is set.