Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Implemented a new mapper for DDLCtVN (closes #11) and a new debug tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ZudoB committed Jul 29, 2018
1 parent 0a26f91 commit 8e327a0
Show file tree
Hide file tree
Showing 30 changed files with 203 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Doki Doki Mod Manager!",
"description": "Mod Manager for Doki Doki Literature Club!",
"author": "Doki Doki Mod Manager! Development Team",
"version": "2.3.1",
"version": "2.4.0",
"homepage": "https://doki.space",
"main": "src/common/main.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/common/installs/ModInstaller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/common/installs/ModInstaller.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/common/installs/ModInstaller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as unzip from "@zudo/unzipper";
import {createWriteStream} from "fs";
import {createWriteStream, unlinkSync} from "fs";
import {mkdirsSync} from "fs-extra";
import {join as joinPath, sep as pathSep} from "path";
import {inferMapper} from "../mods/ModNormaliser";
Expand All @@ -10,6 +10,11 @@ export default class ModInstaller {
public static installMod(modPath: string, installPath: string) {
return new Promise((ff, rj) => {
inferMapper(modPath).then((mapper) => {
for (const file of mapper.getFilesToDelete()) {
Logger.debug("Deleting " + file);
unlinkSync(joinPath(installPath, "game", file));
}

const zip = unzip(modPath);

Logger.info("Installing with mapper: " + mapper.getFriendlyName());
Expand Down
11 changes: 11 additions & 0 deletions src/common/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8e327a0

Please sign in to comment.