Skip to content

Commit

Permalink
mod: Added support for ULT and 699 files
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Dec 30, 2022
1 parent 7b278f7 commit f44f53e
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion plugins/mod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
PLUGIN_AUTHOR = 'Philipp Wolfer'
PLUGIN_DESCRIPTION = (
'Support for loading and renaming various tracker files formats '
'(.mod, .xm, .it, .mptm, .ahx, .mtm, .med, .s3m, .okt). '
'(.mod, .xm, .it, .mptm, .ahx, .mtm, .med, .s3m, .ult, .699, .okt). '
'There is limited support for writing the title tag as track name for some '
'formats.'
)
Expand Down Expand Up @@ -269,6 +269,28 @@ class S3MFile(ModuleFile):
)


class ULTFile(ModuleFile):
EXTENSIONS = ['.ult']
NAME = 'ULT'

# http://www.textfiles.com/programming/FORMATS/ultform.pro
# http://www.textfiles.com/programming/FORMATS/ultform14.pro
_magic = MagicBytes(b'MAS_UTrack_V00')
_static_text_fields = (
StaticField('title', 15, 32, FieldAccess.READ_WRITE),
)


class Composer669File(ModuleFile):
EXTENSIONS = ['.669']
NAME = 'Composer 669'

# http://www.textfiles.com/programming/FORMATS/669-form.pro
_magic = MagicBytes(b'if')
_static_text_fields = (
StaticField('comment', 2, 108, FieldAccess.READ_WRITE),
)


class OktalyzerFile(ModuleFile):
EXTENSIONS = ['.okt']
Expand All @@ -286,4 +308,6 @@ class OktalyzerFile(ModuleFile):
register_format(MEDFile)
register_format(MTMFile)
register_format(S3MFile)
register_format(ULTFile)
register_format(Composer669File)
register_format(OktalyzerFile)

0 comments on commit f44f53e

Please sign in to comment.