Skip to content

Commit 20da3d4

Browse files
Fixed preview image issue
1 parent a2b64a3 commit 20da3d4

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"dependencies": {
7676
"@ffmpeg-installer/ffmpeg": "^1.1.0",
7777
"electron-debug": "^3.2.0",
78-
"electron-log": "^4.4.7",
78+
"electron-log": "^4.4.8",
7979
"electron-updater": "^5.0.1",
8080
"ffmpeg-static": "^5.1.0",
8181
"ffprobe-static": "^3.1.0",

src/main/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if (process.platform === "win32") {
3434

3535
ffmpeg.setFfmpegPath(ffmpegPath);
3636

37+
Object.assign(console, log.functions);
38+
3739
console.log("HOME DIRECTORY: " + __dirname);
3840
console.log("FFMPEG PATH: " + ffmpegPath);
3941
console.log("DEFAULT PREVIEW IMAGE: " + defaultPreviewFilePath);
@@ -324,7 +326,7 @@ const importZip = async (filePath: string, game: string) => {
324326

325327
// Create and add a collection
326328
const collectionId: string = filePath.substring(
327-
filePath.lastIndexOf('/') + 1,
329+
filePath.lastIndexOf(path.sep) + 1,
328330
filePath.lastIndexOf('.zip')
329331
);
330332

0 commit comments

Comments
 (0)