Skip to content

Correct Linux Steam files location - #9

Merged
jakkn merged 3 commits into
nwneetools:masterfrom
squattingmonk:master
Apr 16, 2020
Merged

Correct Linux Steam files location#9
jakkn merged 3 commits into
nwneetools:masterfrom
squattingmonk:master

Conversation

@squattingmonk

Copy link
Copy Markdown
Contributor

This corrects the Steam files location for Linux (#8). It does not correct the Windows path.

Comment thread nwnsc/nwnsc.cpp Outdated
SteamRootDir = GetHomeDirectory() + "/Library/Application Support/Steam/steamapps/common/Neverwinter Nights/";
SteamRootDir = GetHomeDirectory() + "/.local/share/Steam/steamapps/common/Neverwinter Nights/";
#elif defined(_WINDOWS)
SteamRootDir = GetHomeDirectory() + "/Library/Application Support/Steam/steamapps/common/Neverwinter Nights/";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Neverwinter Nights\\" (no home directory) for Windows here?

This assumes %PROGRAMFILES(X86)% is on the C:\ drive. It would be better
to do a variable expansion since this assumption will not always hold
true, but it should work in the majority of cases.
@jakkn
jakkn merged commit 43dd111 into nwneetools:master Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants