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 = 2
Load the resource asynchronously.
Background = 4
Load the resource in the background. Exact behavior is unknown.
Blocking = 1
Load the resource in a blocking manner, i.e. wait for the resource to be loaded before returning.
Create = 8
Create the path if it doesn't exist.
NoLoad = 16
Only return the resource if it's already loaded, otherwise return null. Takes precedence over all other flags.
None = 0
No flags.
Preload = 64
Preload 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 = 512
Load with high quality. Most likely used for textures.
QualityHighest = 1024
Load with the highest quality. Most likely used for textures.
QualityLow = 256
Load with low quality. Most likely used for textures.
QualityLowest = 128
Load with the lowest quality. Most likely used for textures.
Stream = 32
Load the resource from the nativePC folder.
Unknown = 2048
Unknown flag, affects the behavior of file opening.
UseLoadList2 = 16384
Use the second load list. Exact behavior is unknown. Ignored unless Async is set.