Skip to content

Get currently loaded project

To get the absolute path of the currently loaded game:

ts
import { Project } from "@vaguevoid/tools";

const { projectPath } = await Project.getProject();
console.log(projectPath); // null if no project is loaded, otherwise absolute path