Skip to content

Commit

Permalink
Fixed a bug where initial save selection would fail
Browse files Browse the repository at this point in the history
This was caused if the default directory (DS3 saves) didn't exist
  • Loading branch information
omgftw committed Apr 15, 2018
1 parent f7bc3fd commit 567ea4b
Show file tree
Hide file tree
Showing 2 changed files with 2,541 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/welcome/welcomeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var defaultPath = null;
if (process.env.APPDATA) {
defaultPath = path.join(process.env.APPDATA, "DarkSoulsIII");
if (!fs.existsSync(defaultPath)) defaultPath = '.';
var directories = fs.readdirSync(defaultPath);
var saveDir = _.find(directories, function(o) {
return fs.statSync(path.join(defaultPath, o)).isDirectory;
Expand Down
Loading

0 comments on commit 567ea4b

Please sign in to comment.