Jump to content

queryModPath Question


RandomHero13
Go to solution Solved by Pickysaurus,

Recommended Posts

  • Solution

You can use a Vortex utility function to get that path dynamically.

import { util } from 'vortex-api' // TypeScript version
const { util } = requires('vortex-api') // JavaScript version

const docPath = path.join(util.getVortexPath('localAppData'), 'Starfield'); // Results in "C:\Users\<username>\AppData\Roaming\Starfield"


Example from Starfield: https://github.com/Nexus-Mods/game-starfield/blob/master/src/util.ts#L64

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...