SetDir
This function sets the current directory.
Syntax
- static bool SetDir(const std::string& path)
Parameters
- path: the path to the new directory to change to.
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;
}