Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Incorrect path to Steam #140

Open
ShackledTime opened this issue Apr 25, 2021 · 1 comment
Open

Incorrect path to Steam #140

ShackledTime opened this issue Apr 25, 2021 · 1 comment

Comments

@ShackledTime
Copy link

Program attempts to find Steam directory in incorrect location, is there any way to change the path the program chooses to fix this issue?

@kongomongo
Copy link
Contributor

This shortened snippet is basically how it gets the Steam path. Whats is in your registry? What is in your opinion the wrong/correct path?

static getSteamPath() {
        hive: Registry.HKCU, key: '\\Software\\Valve\\Steam',

      key.values((err, items) => {
        let steamPath = false;

        items.forEach((item) => {
          if (item.name === 'SteamPath') {
            steamPath = item.value;
          }
        });

        if (steamPath) {
          this.steamPath = steamPath;
          log.info(`Got Steam path: ${steamPath}`);
          return resolve(steamPath);
        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants