Skip to content

Added feature to check data signatures at Source.Python setup. #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fixes.
  • Loading branch information
CookStar committed Feb 14, 2023
commit c0de2238ab9668860c737f69c9470057addeaf61
20 changes: 14 additions & 6 deletions addons/source-python/packages/source-python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,13 @@ def setup_check_signatures():
)
class_warn = True
_sp_logger.log_warning(
'Invalid signature detected.\n'
'Name: {0}\nSignature: {1}\nFile: {2}'.format(
name, ' '.join("{:02X}".format(i) for i in identifier), file))
'Invalid signature detected.\n'
'Name: {0}\nSignature: {1}\nFile: {2}\n'.format(
name,
' '.join("{:02X}".format(i) for i in identifier),
file
)
)

# check the global pointers signature
file = SP_DATA_PATH / 'memory' / 'global_pointers.ini'
Expand All @@ -188,9 +192,13 @@ def setup_check_signatures():
gp_warn = True

_sp_logger.log_warning(
'Invalid signature detected.\n'
'Name: {0}\nSignature: {1}\nFile: {2}'.format(
name, ' '.join("{:02X}".format(i) for i in identifier), file))
'Invalid signature detected.\n'
'Name: {0}\nSignature: {1}\nFile: {2}\n'.format(
name,
' '.join("{:02X}".format(i) for i in identifier),
file
)
)

def setup_data():
"""Setup data."""
Expand Down