PyLibMS 3.2.2__tar.gz → 3.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pylibms-3.2.2 → pylibms-3.2.3}/PKG-INFO +1 -1
- {pylibms-3.2.2 → pylibms-3.2.3}/PyLibMS.egg-info/PKG-INFO +1 -1
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/msbt.py +10 -2
- {pylibms-3.2.2 → pylibms-3.2.3}/pyproject.toml +1 -1
- {pylibms-3.2.2 → pylibms-3.2.3}/LICENSE +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/MANIFEST.in +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/PyLibMS.egg-info/SOURCES.txt +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/PyLibMS.egg-info/dependency_links.txt +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/PyLibMS.egg-info/requires.txt +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/PyLibMS.egg-info/top_level.txt +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/README.md +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/lms_datatype.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/lms_exceptions.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/lms_fileinfo.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/stream/fileinfo.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/stream/hashtable.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/common/stream/section.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/fileio/encoding.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/fileio/io.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/definitions/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/definitions/field/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/definitions/field/io.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/definitions/field/lms_field.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/definitions/lms_messagetext.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/msbtentry.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/msbtio.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/section/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/section/atr1.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/section/tsy1.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/section/txt2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/tag/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/tag/io/param_io.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/tag/io/tag_io.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/tag/lms_tag.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/message/tag/lms_tagexceptions.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/definitions/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/definitions/attribute.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/definitions/color.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/definitions/style.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/definitions/tag.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/msbp.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/msbpread.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/ali2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/ati2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/clr1.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/string.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/syl3.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/tag2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/tgg2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/project/section/tgp2.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/config.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/definitions/__init__.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/definitions/attribute.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/definitions/tags.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/definitions/value.py +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Badge Arcade.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Brain Age Concentration Training.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Kirby Planet Robobot.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Super Mario 3D Land.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Super Mario 3D World + Bowsers Fury.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Super Mario Odyssey.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/The Legend of Zelda Echos of Wisdom.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/The Legend of Zelda a Link Between Worlds.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Tomodachi Life.yaml +0 -0
- {pylibms-3.2.2 → pylibms-3.2.3}/setup.cfg +0 -0
|
@@ -23,7 +23,7 @@ class MSBT:
|
|
|
23
23
|
self,
|
|
24
24
|
info: LMS_FileInfo | None = None,
|
|
25
25
|
section_list: list[str] | None = None,
|
|
26
|
-
|
|
26
|
+
unsupported_section_map: dict[str, bytes] | None = None,
|
|
27
27
|
attribute_config: AttributeConfig | None = None,
|
|
28
28
|
tag_config: TagConfig | None = None,
|
|
29
29
|
):
|
|
@@ -39,7 +39,7 @@ class MSBT:
|
|
|
39
39
|
self.uses_encoded_attributes = True
|
|
40
40
|
self.attr_string_table: bytes | None = None
|
|
41
41
|
|
|
42
|
-
self._unsupported_section_map =
|
|
42
|
+
self._unsupported_section_map = unsupported_section_map or {}
|
|
43
43
|
|
|
44
44
|
# Store the section list so that the order of any and all sections is preserved when writing
|
|
45
45
|
self._section_list: list[str] = section_list or ["LBL1"]
|
|
@@ -47,6 +47,9 @@ class MSBT:
|
|
|
47
47
|
self._attribute_config = attribute_config
|
|
48
48
|
self._tag_config = tag_config
|
|
49
49
|
|
|
50
|
+
def __len__(self) -> int:
|
|
51
|
+
return len(self._entries)
|
|
52
|
+
|
|
50
53
|
def __iter__(self):
|
|
51
54
|
return iter(self._entries)
|
|
52
55
|
|
|
@@ -55,6 +58,11 @@ class MSBT:
|
|
|
55
58
|
"""The file info for the MSBT instance."""
|
|
56
59
|
return self._info
|
|
57
60
|
|
|
61
|
+
@property
|
|
62
|
+
def entries(self) -> tuple[MSBTEntry, ...]:
|
|
63
|
+
"""Tuple of all the MSBT entries."""
|
|
64
|
+
return tuple(self._entries)
|
|
65
|
+
|
|
58
66
|
@property
|
|
59
67
|
def section_list(self) -> tuple[str, ...]:
|
|
60
68
|
"""The list of sections with order preserved."""
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "PyLibMS"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.3"
|
|
8
8
|
requires-python = ">=3.12"
|
|
9
9
|
description = "Python library built for the libMessageStudio (LMS) proprietary file formats from Nintendo. Supports MSBT, MSBP, and MSBF."
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Brain Age Concentration Training.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/Super Mario 3D World + Bowsers Fury.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{pylibms-3.2.2 → pylibms-3.2.3}/lms/titleconfig/presets/The Legend of Zelda Echos of Wisdom.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|