1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Removed fs-sync

This commit is contained in:
DJ1TJOO 2021-03-14 16:22:12 +01:00
parent 240a235dc4
commit f5fe5a79f9
2 changed files with 3 additions and 3 deletions

View File

@ -135,13 +135,13 @@ window.onload = async () => {
let instance = undefined;
let modFolderContents = [];
if (G_IS_STANDALONE) {
modFolderContents = getIPCRenderer().sendSync("fs-sync-job", {
modFolderContents = getIPCRenderer().send("fs-job", {
folder: "mods",
type: "readDir",
filename: "",
}).data;
if (modFolderContents.includes("modpack.json")) {
instance = getIPCRenderer().sendSync("fs-sync-job", {
instance = getIPCRenderer().send("fs-job", {
folder: "mods",
type: "read",
filename: "modpack.json",

View File

@ -92,7 +92,7 @@ export class ModManager {
addMod(url, fromFile = false) {
if (fromFile && G_IS_STANDALONE) {
return new Promise((resolve, reject) => {
const modCode = getIPCRenderer().sendSync("fs-sync-job", {
const modCode = getIPCRenderer().send("fs-job", {
folder: "mods",
type: "read",
filename: url,