Lua
C++
Edit

ChangeDir

This functions changes the current directory. Relative file paths will loaded from the new directory.

Syntax

Parameter Description
path folder location to move to

Returns

Returns true if the directory was successfully changed, otherwise false is returned.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    //Print starting directory
    Print(CurrentDir());

    //Navigate up one directory level
    ChangeDir("..");

    //Print new directory
    Print(CurrentDir());

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.