Skip to content

Commit

Permalink
Fixed getSavesPath to respect direct mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbl committed Sep 14, 2024
1 parent e047172 commit c8b6e56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/worker/BridgeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ export function getRuntime(): InstallationRuntime | null {
function getSavesPath(): string {
return path.join(
process.env.USERPROFILE ?? path.join(getHomePath(), '../'),
`Saved Games/Diablo II Resurrected/mods/${
runtime?.options.outputModName ?? 'D2RMM'
}/`,
'Saved Games/Diablo II Resurrected/',
runtime!.options.isDirectMode
? ''
: `mods/${runtime?.options.outputModName ?? 'D2RMM'}/`,
);
}

Expand Down

0 comments on commit c8b6e56

Please sign in to comment.