Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkr committed Feb 23, 2021
2 parents 8f598c6 + a79cc30 commit 0e20282
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions modExclusions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ebkr-r2modman

ebkr-r2modman_dsp

Harb-AttributeFinder

ethanbrews-RiskOfRainModManager
Expand Down
5 changes: 0 additions & 5 deletions src/r2mm/installing/ProfileInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ export default class ProfileInstaller extends ProfileInstallerProvider {
if (file.toLowerCase() !== 'mods.yml') {
await fs.unlink(filePath);
}
} else {
if ((await fs.lstat(filePath)).isDirectory()) {
await FileUtils.emptyDirectory(filePath);
await fs.rmdir(filePath);
}
}
}
} catch(e) {
Expand Down
12 changes: 9 additions & 3 deletions src/r2mm/manager/linux/GameDirectoryResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as vdf from '@node-steam/vdf';
import * as path from 'path';
import { homedir } from 'os';
import ManagerSettings from '../ManagerSettings';
import FsProvider from "../../../providers/generic/file/FsProvider";
import FsProvider from '../../../providers/generic/file/FsProvider';
import GameDirectoryResolverProvider from '../../../providers/ror2/game/GameDirectoryResolverProvider';
import Game from '../../../model/game/Game';
import GameManager from '../../../model/game/GameManager';
Expand All @@ -21,11 +21,17 @@ export default class GameDirectoryResolverImpl extends GameDirectoryResolverProv
try {
const dirs = [
path.resolve(homedir(), '.local', 'share', 'Steam'),
path.resolve(homedir(), '.var', 'app', 'com.valvesoftware.Steam', '.local', 'share', 'Steam')
path.resolve(homedir(), '.steam', 'steam'),
path.resolve(homedir(), '.steam', 'root'),
path.resolve(homedir(), '.steam'),
path.resolve(homedir(), '.var', 'app', 'com.valvesoftware.Steam', '.local', 'share', 'Steam'),
path.resolve(homedir(), '.var', 'app', 'com.valvesoftware.Steam', '.steam', 'steam'),
path.resolve(homedir(), '.var', 'app', 'com.valvesoftware.Steam', '.steam', 'root'),
path.resolve(homedir(), '.var', 'app', 'com.valvesoftware.Steam', '.steam')
];
for (let dir of dirs) {
if (await FsProvider.instance.exists(dir))
return dir;
return await FsProvider.instance.realpath(dir);
}
throw new Error('Steam is not installed');
} catch(e) {
Expand Down

0 comments on commit 0e20282

Please sign in to comment.