Skip to content

Conversation

@isHarryh
Copy link
Contributor

@isHarryh isHarryh commented Feb 6, 2025

Summary

This PR does some minor improvements on the helpers module. These improvements will not affect the existing features.

Common Changes

  1. Type hints.

Individual Changes

  1. ArchiveStorageDecryptor: Uses an inline approach to replace the function to_uint4_array, which can improve the performance and simplify the code.
  2. ResourceReader: Refactors the get_resource_data function, because this function used an implicit argument overloading trick (mixed the 4-args invocation and the 3-args invocation, but only 4-args invocation is used externally), which is bad for maintaining.
  3. UnityVersion: Fixes the error in the method fromString.

@K0lb3 K0lb3 force-pushed the master branch 2 times, most recently from 5ab6d25 to c695346 Compare February 6, 2025 21:28
@isHarryh
Copy link
Contributor Author

isHarryh commented Feb 7, 2025

According to your 4 reviews. I have changed these things and force-pushed these changes.

@isHarryh
Copy link
Contributor Author

Okay. 2 fixes were applyed since the last push:

  1. Revert the changes in Tpk.py which caused NameError.
  2. Use forward reference "SerializedFile" in ResourceReader.

Copy link
Owner

@K0lb3 K0lb3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, thanks

@K0lb3 K0lb3 merged commit fd42f9c into K0lb3:master Feb 10, 2025
6 checks passed
@isHarryh isHarryh deleted the patch-helpers branch June 6, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants