We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59622f commit 3a59c4aCopy full SHA for 3a59c4a
app/assets/js/dropinmodutil.js
@@ -2,6 +2,7 @@ const fs = require('fs-extra')
2
const path = require('path')
3
const { ipcRenderer, shell } = require('electron')
4
const { SHELL_OPCODE } = require('./ipcconstants')
5
+const { webUtils } = require('electron')
6
7
// Group #1: File Name (without .disabled, if any)
8
// Group #2: File Extension (jar, zip, or litemod)
@@ -81,7 +82,8 @@ exports.addDropinMods = function(files, modsdir) {
81
82
83
for(let f of files) {
84
if(MOD_REGEX.exec(f.name) != null) {
- fs.moveSync(f.path, path.join(modsdir, f.name))
85
+ const filePath = webUtils.getPathForFile(f)
86
+ fs.moveSync(filePath, path.join(modsdir, f.name))
87
}
88
89
0 commit comments