Table of Contents

Class LocalDirectoryDRM

Namespace
DLCToolkit.DRM
Assembly
DLCToolkit.dll

A virtual DRM provider mounted to a local directory which offers DRM like ability without any verification. Supports listing all DLC unique keys that are available in the specified directory. Does not support ownership verification and will simply report that any DLC in the specified folder is owned by the user and can be loaded. Supported on any platform with IO support (Not WebGL for example) and may be useful for free DLC or expansion packs that can be simply dropped into a game folder and be auto-detected. You can also manually handle this sort of setup using the DLCDirectory instead, which is what this DRM provider is using internally, but it may offer you more control for things like install/uninstall events.

public sealed class LocalDirectoryDRM : IDRMProvider
Inheritance
LocalDirectoryDRM
Implements

Constructors

LocalDirectoryDRM(string)

Create a new instance from the target folder. Note that the specified folder must already exist or an exception will be thrown.

public LocalDirectoryDRM(string localFolderPath)

Parameters

localFolderPath string

The path where DLC content may be stored

Exceptions

ArgumentException

The folder path is null or empty

DirectoryNotFoundException

The folder path does not exist