diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index 3a7b1b252..dcc454bfd 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: ["master"] - pull_request: - branches: ["master"] + # branches: ["master"] + # pull_request: + # branches: ["master"] jobs: build: diff --git a/src/main/services/mods/bs-mods-manager.service.ts b/src/main/services/mods/bs-mods-manager.service.ts index e798151ef..f6661a199 100644 --- a/src/main/services/mods/bs-mods-manager.service.ts +++ b/src/main/services/mods/bs-mods-manager.service.ts @@ -64,7 +64,10 @@ export class BsModsManagerService { const bsPath = await this.bsLocalService.getVersionPath(version); const modsPath = path.join(bsPath, modsDir); + log.info("MARKER getModsInDir", modsPath); + if (!pathExistsSync(modsPath)) { + log.info("MARKER modsPath does not exist"); return []; } @@ -102,6 +105,9 @@ export class BsModsManagerService { }); const mods = await Promise.all(promises); + + log.info("MARKER filtered mods", mods.filter(Boolean)); + return mods.filter(Boolean); } @@ -307,6 +313,8 @@ export class BsModsManagerService { } public async getInstalledMods(version: BSVersion): Promise { + log.info("MARKER getInstalledMods"); + this.manifestMatches = []; const bsipa = await this.getBsipaInstalled(version); @@ -316,6 +324,8 @@ export class BsModsManagerService { const dirMods = pluginsMods.flat().concat(libsMods.flat()); + log.info("MARKER got mods", pluginsMods, libsMods, dirMods); + const modsDict = new Map(); if (bsipa) {