Skip to content

Refactor and feature enhancement #364

Merged
donkeyProgramming merged 9 commits into
masterfrom
UpdatePackFileContainers
Jun 6, 2026
Merged

Refactor and feature enhancement #364
donkeyProgramming merged 9 commits into
masterfrom
UpdatePackFileContainers

Conversation

@donkeyProgramming

Copy link
Copy Markdown
Owner

PR Classification

Refactor and feature enhancement to improve PackFileContainer handling with caching and simplified file operations.

PR Summary

This PR introduces a caching mechanism for PackFileContainer objects, simplifies directory/file operations, and enhances logging for better debugging. It also updates tests to reflect these changes.

  • PackFileContainerLoader: Replaced Load methods with CreateFromPackFile, CreateFromGameEnum, and CreateFromSystemFolder to support PackFileContainerType.
  • CachedPackFileContainer: Added caching with SQLite (file-backed and in-memory) and methods like Save and CreateFromFingerPrint.
  • IPackFileContainer: Replaced GetSubDirectories with GetAllFilesByFolder for simplified folder/file retrieval.
  • Tests: Updated test cases to use InMemoryPackFileContainerCacheHelper and validate caching logic.
  • PackFileTreeBuilder: Refactored to use GetAllFilesByFolder for building tree structures.

@donkeyProgramming donkeyProgramming merged commit 5c2ad48 into master Jun 6, 2026
1 check passed
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.

1 participant