mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-30 15:05:16 -04:00
BIOSUtilities v25.02.23
Fixed AMI PFAT Extract file naming of "ALL" and "OOB" Upgraded dependency "dissect.util" from 3.18 to 3.19
This commit is contained in:
parent
5f9ea8e846
commit
40553b3244
9 changed files with 26 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
# coding=utf-8
|
||||
|
||||
"""
|
||||
Copyright (C) 2022-2024 Plato Mavropoulos
|
||||
Copyright (C) 2022-2025 Plato Mavropoulos
|
||||
"""
|
||||
|
||||
import os
|
||||
|
@ -99,9 +99,7 @@ def path_name(in_path: str, limit: bool = False) -> str:
|
|||
|
||||
comp_name: str = PurePath(in_path).name
|
||||
|
||||
is_win: bool = system_platform()[1]
|
||||
|
||||
if limit and is_win:
|
||||
if limit and system_platform()[1]:
|
||||
comp_name = comp_name[:MAX_WIN_COMP_LEN - len(extract_suffix())]
|
||||
|
||||
return comp_name
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
# coding=utf-8
|
||||
|
||||
"""
|
||||
Copyright (C) 2022-2024 Plato Mavropoulos
|
||||
Copyright (C) 2022-2025 Plato Mavropoulos
|
||||
"""
|
||||
|
||||
import ctypes
|
||||
|
||||
from typing import Any, Final
|
||||
|
||||
CHAR: Final[type[ctypes.c_char] | int] = ctypes.c_char
|
||||
UINT8: Final[type[ctypes.c_ubyte] | int] = ctypes.c_ubyte
|
||||
UINT16: Final[type[ctypes.c_ushort] | int] = ctypes.c_ushort
|
||||
UINT32: Final[type[ctypes.c_uint] | int] = ctypes.c_uint
|
||||
UINT64: Final[type[ctypes.c_uint64] | int] = ctypes.c_uint64
|
||||
CHAR: Final[Any] = ctypes.c_char
|
||||
UINT8: Final[Any] = ctypes.c_ubyte
|
||||
UINT16: Final[Any] = ctypes.c_ushort
|
||||
UINT32: Final[Any] = ctypes.c_uint
|
||||
UINT64: Final[Any] = ctypes.c_uint64
|
||||
|
||||
|
||||
def ctypes_struct(buffer: bytes | bytearray, start_offset: int, class_object: Any,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue