Click or drag to resize
CoronaRuntimeRunInDirectory Method

Starts the Corona runtime by using the given path as the resource directory and executing the "resource.car" or "main.lua" file found it it.

If the runtime is currently executing a Corona project, then it will be terminated before running a new one.

Namespace: CoronaLabs.Corona.WinRT
Assembly: CoronaLabs (in CoronaLabs.dll) Version: 255.255.255.255
Syntax
public IOperationResult RunInDirectory(
	string resourceDirectoryPath
)

Parameters

resourceDirectoryPath
Type: SystemString

Absolute path to the directory that Corona should use as the resource directory.

Cannot be null or empty string or else an exception will be thrown.

Return Value

Type: IOperationResult

Returns a success result if the Corona runtime was able to start up.

Returns a failure result if unable to start. In this case, the result object's "Message" property will provide an error message indicating why the failure occurred.

See Also