aboutsummaryrefslogtreecommitdiff
path: root/hotline/flattened_file_object.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-25 15:03:54 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-25 15:10:28 -0700
commit2728d12b6169a978aa3dc2e35390923d2eecd295 (patch)
tree42078a99c30846ee4499a93e14db6a6717eb73e6 /hotline/flattened_file_object.go
parent583fd0d2d9064c173a13d6735edde771d5789de7 (diff)
Add more file extension -> type/creator code mappings
Diffstat (limited to 'hotline/flattened_file_object.go')
-rw-r--r--hotline/flattened_file_object.go4
1 files changed, 2 insertions, 2 deletions
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