Implemented setResourceDirectory(const char *).

Implemented source code for setResourceDirectory method. This method changes the current working directory to that of the specified one. This should be called to procure resources like .png files.