[This is preliminary documentation and is subject to change.]

Reads command-line switches and sets up paths and logging. This should be called before any other library function. Note to frontend devs: Subscribe to log-related events before calling this. Does not raise any events besides Logger.Logged. Throws exceptions on failure.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.2.4 (0.6.2.4)

Syntax

   
 C# 
public static void InitLibrary(
	IEnumerable<string> rawArgs
)

Parameters

rawArgs
IEnumerable<(Of <(<'String>)>)>
string arguments passed to the frontend (if any).

Exceptions

ExceptionCondition
System..::..InvalidOperationException If library is already initialized.
System.IO..::..IOException Working path, log path, or map path could not be set.

See Also