This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static crc32(data: fsPromises.FileHandle | Uint8Array): Promise<number> { | |
return new Promise((resolve, reject) => { | |
let inStream: stream.Readable; | |
try { | |
if (data instanceof Uint8Array) { | |
inStream = new stream.PassThrough().end(data); | |
} else { | |
inStream = data.createReadStream({ start: 0, autoClose: false, highWaterMark: this.chunkSize }); | |
} | |
} catch (e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------ | |
//--- 010 Editor v14.0.1 Binary Template | |
// | |
// File: vfxb.bt | |
// Authors: segfault-bilibili | |
// Version: 0.1 | |
// Purpose: Decode *.vfxb files (and decompessed LZ4 data) in Magia Record's resource/image_native/mini/anime_v2 | |
// Category: Game | |
// File Mask: *.vfxb | |
// ID Bytes: 64 69 75 47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BITS 32] | |
PORT equ 0x3F8 | |
PNP_IDX_EN equ 0x30 | |
PNP_IDX_IO0 equ 0x60 | |
NUVOTON_ENTRY_KEY equ 0x87 | |
NUVOTON_EXIT_KEY equ 0xAA | |
PNP_DEV_PORT equ 0x2E |
OlderNewer