feat: ka 0xff02 handling

This commit is contained in:
TrèsAbhi committed 2023-12-10 11:57:21 -06:00
1 parent 5471c7fa32
commit dc01eff812
2 files changed
+21 -27

No files matched your search

+1 -9
View File
@@ -315,7 +315,7 @@ if (allTargets || targets?.includes('tankModels')) {
// const scgStream = await SCPGStream.fromDVPLFile(
// `${DATA}/${DOI['3d']}/${scgPath}.dvpl`,
// );
// const sc2Data = sc2Stream.consumeSC2();
const sc2Data = sc2Stream.consumeSC2();
// const scgData = scgStream.consumeSCG();
// writeFile(
@@ -324,14 +324,6 @@ if (allTargets || targets?.includes('tankModels')) {
// typeof value === 'bigint' ? value.toString() : value,
// ),
// );
try {
sc2Stream.consumeSC2();
} catch (error) {
if (!(error as Error).message.startsWith('Unhandled KA version')) {
throw error;
}
}
}
}),
);