From 13f6e57f09a6cc1ee3043940e0ee4a7409f1d3a0 Mon Sep 17 00:00:00 2001 From: Yusarina Date: Fri, 14 Jun 2024 23:44:52 +0100 Subject: [PATCH] Added Comments --- core/pmx/import_pmx.py | 204 +++++++++++++++++++++-------------------- 1 file changed, 103 insertions(+), 101 deletions(-) diff --git a/core/pmx/import_pmx.py b/core/pmx/import_pmx.py index 3e65ece..6a5bddc 100644 --- a/core/pmx/import_pmx.py +++ b/core/pmx/import_pmx.py @@ -3,172 +3,174 @@ import struct def read_pmx_header(file): # Read PMX header information - magic = file.read(4) + magic = file.read(4) # Read magic bytes (should be "PMX ") if magic != b'PMX ': raise ValueError("Invalid PMX file") - version = struct.unpack('