MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / createIntroMoviesData

Function createIntroMoviesData

src/packFileSerializer.ts:658–668  ·  view source on GitHub ↗
(pack_files: PackedFile[])

Source from the content-addressed store, hash-verified

656 });
657};
658const createIntroMoviesData = (pack_files: PackedFile[]) => {
659 for (const moviePath of gameToIntroMovies[appData.currentGame]) {
660 pack_files.push({
661 name: moviePath,
662 file_size: emptyMovie.length,
663 start_pos: 0,
664 // is_compressed: 0,
665 schemaFields: [{ type: "Buffer", fields: [{ type: "Buffer", val: emptyMovie }] }],
666 } as PackedFile);
667 }
668};
669export const getDBVersionByTableName = (packFile: PackedFile, dbName: string) => {
670 if (packFile.name.endsWith(".loc")) return LocVersion;
671 const dbversions = DBNameToDBVersions[appData.currentGame][dbName];

Callers 1

writeStartGamePackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected