mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-07-04 22:24:04 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc4bad678a | |||
ee796d0eb1 |
@ -139,6 +139,12 @@ __ https://archive.fo/
|
|||||||
Changelog
|
Changelog
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
Version 1.1.2
|
||||||
|
`````````````
|
||||||
|
|
||||||
|
* Added support for the resource file attributes "Resources Locked" and "Printer Driver MultiFinder Compatible" from ResEdit.
|
||||||
|
* Added more dummy constants for resource attributes with unknown meaning, so that resource files containing such attributes can be loaded without errors.
|
||||||
|
|
||||||
Version 1.1.1
|
Version 1.1.1
|
||||||
`````````````
|
`````````````
|
||||||
|
|
||||||
|
10
rsrcfork.py
10
rsrcfork.py
@ -22,7 +22,7 @@ __all__ = [
|
|||||||
"open",
|
"open",
|
||||||
]
|
]
|
||||||
|
|
||||||
__version__ = "1.1.1"
|
__version__ = "1.1.2"
|
||||||
|
|
||||||
# Translation table to replace ASCII non-printable characters with periods.
|
# Translation table to replace ASCII non-printable characters with periods.
|
||||||
_TRANSLATE_NONPRINTABLES = {k: "." for k in [*range(0x20), 0x7f]}
|
_TRANSLATE_NONPRINTABLES = {k: "." for k in [*range(0x20), 0x7f]}
|
||||||
@ -79,6 +79,14 @@ STRUCT_RESOURCE_NAME_HEADER = struct.Struct(">B")
|
|||||||
class ResourceFileAttrs(enum.Flag):
|
class ResourceFileAttrs(enum.Flag):
|
||||||
"""Resource file attribute flags. The descriptions for these flags are taken from comments on the map*Bit and map* enum constants in <CarbonCore/Resources.h>."""
|
"""Resource file attribute flags. The descriptions for these flags are taken from comments on the map*Bit and map* enum constants in <CarbonCore/Resources.h>."""
|
||||||
|
|
||||||
|
mapResourcesLocked = 32768 # "Resources Locked" (undocumented, but available as a checkbox in ResEdit)
|
||||||
|
_UNKNOWN_16384 = 16384
|
||||||
|
_UNKNOWN_8192 = 8192
|
||||||
|
_UNKNOWN_4096 = 4096
|
||||||
|
_UNKNOWN_2048 = 2048
|
||||||
|
_UNKNOWN_1024 = 1024
|
||||||
|
_UNKNOWN_512 = 512
|
||||||
|
mapPrinterDriverMultiFinderCompatible = 256 # "Printer Driver MultiFinder Compatible" (undocumented, but available as a checkbox in ResEdit)
|
||||||
mapReadOnly = 128 # "is this file read-only?", "Resource file read-only"
|
mapReadOnly = 128 # "is this file read-only?", "Resource file read-only"
|
||||||
mapCompact = 64 # "Is a compact necessary?", "Compact resource file"
|
mapCompact = 64 # "Is a compact necessary?", "Compact resource file"
|
||||||
mapChanged = 32 # "Is it necessary to write map?", "Write map out at update"
|
mapChanged = 32 # "Is it necessary to write map?", "Write map out at update"
|
||||||
|
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ with open("README.rst", "r", encoding="utf-8") as f:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="rsrcfork",
|
name="rsrcfork",
|
||||||
version="1.1.1",
|
version="1.1.2",
|
||||||
description="A pure Python library for reading old Macintosh resource manager data",
|
description="A pure Python library for reading old Macintosh resource manager data",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url="https://github.com/dgelessus/python-rsrcfork",
|
url="https://github.com/dgelessus/python-rsrcfork",
|
||||||
|
Reference in New Issue
Block a user