Skip to content

Commit df90e0a

Browse files
committed
rm process.noAsar changes
1 parent 3ed2940 commit df90e0a

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/backend/ipcHandlers/mods.ts

-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ export async function prepareBaseGameForModding({
125125
extractService.on('canceled', () => {
126126
logInfo(`Canceled Extracting of base game file`, LogPrefix.HyperPlay)
127127

128-
process.noAsar = false
129-
130128
cancelQueueExtraction()
131129
callAbortController(appName)
132130

src/backend/storeManagers/hyperplay/games.ts

-14
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,6 @@ export async function cancelExtraction(appName: string) {
765765
)
766766

767767
try {
768-
process.noAsar = false
769-
770768
const extractZipService = inProgressExtractionsMap.get(appName)
771769
if (extractZipService) {
772770
extractZipService.cancel()
@@ -964,8 +962,6 @@ export async function install(
964962
}
965963
return { status: 'done' }
966964
} catch (error) {
967-
process.noAsar = false
968-
969965
logInfo(
970966
`Error while downloading and extracting game: ${error}`,
971967
LogPrefix.HyperPlay
@@ -1053,10 +1049,6 @@ export async function extract(
10531049
const zipFile = path.join(directory, fileName)
10541050
logInfo(`Extracting ${zipFile} to ${destinationPath}`, LogPrefix.HyperPlay)
10551051

1056-
// disables electron's fs wrapper called when extracting .asar files
1057-
// which is necessary to extract electron app/game zip files
1058-
process.noAsar = true
1059-
10601052
sendFrontendMessage('gameStatusUpdate', {
10611053
appName,
10621054
status: 'extracting',
@@ -1155,8 +1147,6 @@ export async function extract(
11551147
status: 'extracting'
11561148
})
11571149

1158-
process.noAsar = false
1159-
11601150
if (isMac && executable.endsWith('.app')) {
11611151
const macAppExecutable = readdirSync(
11621152
join(executable, 'Contents', 'MacOS')
@@ -1211,8 +1201,6 @@ export async function extract(
12111201
LogPrefix.HyperPlay
12121202
)
12131203

1214-
process.noAsar = false
1215-
12161204
cancelQueueExtraction()
12171205
callAbortController(appName)
12181206

@@ -1255,8 +1243,6 @@ export async function extract(
12551243
extractService.extract().then()
12561244
})
12571245
} catch (error: unknown) {
1258-
process.noAsar = false
1259-
12601246
logInfo(`Error while extracting game ${error}`, LogPrefix.HyperPlay)
12611247

12621248
window.webContents.send('gameStatusUpdate', {

0 commit comments

Comments
 (0)