Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX] Use download folder install path for .temp #742

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/backend/storeManagers/hyperplay/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import {
isWindows,
isLinux,
configFolder,
getValidateLicenseKeysApiUrl
getValidateLicenseKeysApiUrl,
configStore
} from 'backend/constants'
import {
downloadFile,
Expand Down Expand Up @@ -559,7 +560,11 @@ function getZipFileName(
platformInfo: PlatformConfig
): { directory: string; filename: string } {
const zipName = encodeURI(platformInfo.name)
const tempfolder = path.join(configFolder, 'hyperplay', '.temp', appName)
const downloadFolder = configStore.get(
'settings.defaultInstallPath',
configFolder
)
const tempfolder = path.join(downloadFolder, 'hyperplay', '.temp', appName)

if (!existsSync(tempfolder)) {
mkdirSync(tempfolder, { recursive: true })
Expand Down
Loading