From 2728d12b6169a978aa3dc2e35390923d2eecd295 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Wed, 25 May 2022 15:03:54 -0700 Subject: Add more file extension -> type/creator code mappings --- hotline/flattened_file_object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/flattened_file_object.go') diff --git a/hotline/flattened_file_object.go b/hotline/flattened_file_object.go index ee8a69b..bd281e0 100644 --- a/hotline/flattened_file_object.go +++ b/hotline/flattened_file_object.go @@ -58,8 +58,8 @@ type FlatFileInformationFork struct { func NewFlatFileInformationFork(fileName string) FlatFileInformationFork { return FlatFileInformationFork{ Platform: []byte("AMAC"), // TODO: Remove hardcode to support "AWIN" Platform (maybe?) - TypeSignature: []byte(fileTypeFromFilename(fileName)), // TODO: Don't infer types from filename - CreatorSignature: []byte(fileCreatorFromFilename(fileName)), // TODO: Don't infer types from filename + TypeSignature: []byte(fileTypeFromFilename(fileName).TypeCode), // TODO: Don't infer types from filename + CreatorSignature: []byte(fileTypeFromFilename(fileName).CreatorCode), // TODO: Don't infer types from filename Flags: []byte{0, 0, 0, 0}, // TODO: What is this? PlatformFlags: []byte{0, 0, 1, 0}, // TODO: What is this? RSVD: make([]byte, 32), // Unimplemented in Hotline Protocol -- cgit