aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-05 03:41:35 +0100
committerGitExample <git@example.com>2022-02-05 03:41:35 +0100
commit5c7370a6b07a7914a7d16b853c3e92624849ba9d (patch)
treea82d2762daedca2052ca8590548eb36a7319b276 /src
parent7573f80030d9536d97b6a60dd1f9bce3c4093209 (diff)
downloadViper-5c7370a6b07a7914a7d16b853c3e92624849ba9d.tar.gz
Viper-5c7370a6b07a7914a7d16b853c3e92624849ba9d.zip
fixed max mod install limit of 512mb
If a mod had a file that was bigger than 512mb inside it, it'd error out, simply switching the copy-dir module to recursive-copy fixes this.
Diffstat (limited to 'src')
-rw-r--r--src/utils.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/utils.js b/src/utils.js
index b54808d..1456467 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -1,6 +1,6 @@
const path = require("path");
const fs = require("fs-extra");
-const copy = require("copy-dir");
+const copy = require("recursive-copy");
const { app, dialog, ipcMain, Notification } = require("electron");
const Emitter = require("events");
@@ -445,12 +445,7 @@ const mods = {
fs.statSync(path.join(mod, "mod.json")).isFile()) {
let modname = mod.replace(/^.*(\\|\/|\:)/, "");
- copy.sync(mod, path.join(modpath, modname), {
- mode: true,
- cover: true,
- utimes: true,
- });
-
+ copy(mod, path.join(modpath, modname))
ipcMain.emit("installedmod", "", modname);
return installed();