diff --git a/atrcopy/ataridos.py b/atrcopy/ataridos.py index 7abe02b..d60d454 100644 --- a/atrcopy/ataridos.py +++ b/atrcopy/ataridos.py @@ -131,8 +131,8 @@ class MydosDirent(AtariDosDirent): class XexSegmentSaver(SegmentSaver): - name = "Atari 8-bit Executable" - extensions = [".xex"] + export_data_name = "Atari 8-bit Executable" + export_extensions = [".xex"] class XexSegment(ObjSegment): diff --git a/atrcopy/segments.py b/atrcopy/segments.py index da11be7..b44d0f7 100644 --- a/atrcopy/segments.py +++ b/atrcopy/segments.py @@ -11,22 +11,13 @@ selected_bit_mask = 0x80 class SegmentSaver(object): - name = "Raw Data" - extensions = [".dat"] + export_data_name = "Raw Data" + export_extensions = [".dat"] @classmethod def encode_data(cls, segment): return segment.tostring() - @classmethod - def get_file_dialog_wildcard(cls): - # Using only the first extension - wildcards = [] - if cls.extensions: - ext = cls.extensions[0] - wildcards.append("%s (*%s)|*%s" % (cls.name, ext, ext)) - return "|".join(wildcards) - class OrderWrapper(object): """Wrapper for numpy data so that manipulations can use normal numpy syntax