[Scummvm-git-logs] scummvm-web master -> f2f2cabd9875f3f2371117959c31d178c6fc3f72

lephilousophe noreply at scummvm.org
Sat Oct 4 09:10:54 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://api.github.com/repos/scummvm/scummvm-web .

Summary:
f2f2cabd98 DUMPER-COMPANION: Fix imports and prepare for next version


Commit: f2f2cabd9875f3f2371117959c31d178c6fc3f72
    https://github.com/scummvm/scummvm-web/commit/f2f2cabd9875f3f2371117959c31d178c6fc3f72
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-10-04T11:05:18+02:00

Commit Message:
DUMPER-COMPANION: Fix imports and prepare for next version

Type the onProgress callback to avoid future bogus type inference.

Changed paths:
    dumper-companion/src/Dumper.tsx
    dumper-companion/src/hfs/directory.ts


diff --git a/dumper-companion/src/Dumper.tsx b/dumper-companion/src/Dumper.tsx
index 0037e78b..40af0bc5 100644
--- a/dumper-companion/src/Dumper.tsx
+++ b/dumper-companion/src/Dumper.tsx
@@ -1,5 +1,5 @@
 import { Component, ComponentChild } from 'preact';
-import { fs } from '@zip.js/zip.js/lib/zip-fs.js';
+import { fs } from '@zip.js/zip.js';
 import { Volume } from './hfs/main';
 import { Language, getLanguages } from './encoding';
 
@@ -152,7 +152,7 @@ export default class Dumper extends Component<Props, State> {
                 volume.dumpToZip(zipFS.root, this.state.lang, !this.state.unicode, this.state.forceMacBinary, this.log.bind(this));
                 const blob = await zipFS.exportBlob({
                     level: 0,
-                    onprogress: (index, max) => {
+                    onprogress: (index: number, max: number): undefined => {
                         const percent = Math.floor(index / max * 100);
                         this.updateDumpPercent(percent);
                     }
diff --git a/dumper-companion/src/hfs/directory.ts b/dumper-companion/src/hfs/directory.ts
index 70f20fb9..23f021aa 100644
--- a/dumper-companion/src/hfs/directory.ts
+++ b/dumper-companion/src/hfs/directory.ts
@@ -31,7 +31,7 @@ import { computeCRC } from '../crc';
 import { Language, encodeFileName } from '../encoding';
 import struct from '../struct';
 import { bytes, bytesToString, joinBytes } from '../util';
-import type { ZipDirectoryEntry } from '@zip.js/zip.js/lib/zip-fs.js';
+import type { ZipDirectoryEntry } from '@zip.js/zip.js';
 
 
 export type FileOrFolder = MacFile | AbstractFolder;




More information about the Scummvm-git-logs mailing list