SetDir

This function sets the current directory.

Syntax

Parameters

Returns

Returns true of the current directory could be changed to the specified path, otherwise false is returned.

Example

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
FileSystem::SetDir("Materials");
System::Print(FileSystem::GetDir());

return 0;
}