Skip to content
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

[BugFix & Improvements] add support for legacy game natives replacement #125

Merged
merged 10 commits into from
Mar 2, 2024

Conversation

laolarou726
Copy link
Member

@laolarou726 laolarou726 commented Feb 27, 2024

  • add support for legacy game natives replacement
  • fix possible crashes for info resolver
  • add support for auto-encoding detection for logs

PR-Codex overview

This PR introduces new enums, model classes, JSON contexts, encoding helpers, and game version parsing methods. It enhances JSON serialization, encoding detection, and Minecraft version extraction.

Detailed summary

  • Added NativeReplacementPolicy enum
  • Modified GameLogEventArgs class
  • Updated DefaultMinecraftUWPCore with LaunchSettings
  • Refactored UserPropertiesContext JSON serialization
  • Added IsNewNativeLib method to RulesHelper
  • Updated JSON context classes
  • Modified AssetInfoResolver for exception handling
  • Updated DefaultGameCore with Encoding and LaunchSettings
  • Added NativeReplaceModel class
  • Added EncodingHelper for encoding detection
  • Added GameVersionHelper for Minecraft version parsing

The following files were skipped due to too many changes: ProjBobcat/ProjBobcat/Class/Helper/GameVersionHelper.cs, ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultVersionLocator.cs, ProjBobcat/ProjBobcat/Class/Helper/NativeReplace/NativeReplaceHelper.cs, ProjBobcat/ProjBobcat/DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs, ProjBobcat/ProjBobcat/Class/Helper/GameResourcesResolveHelper.cs, ProjBobcat/ProjBobcat/Class/Helper/NativeReplace/NativeReplaceHelper.Json.cs

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@laolarou726 laolarou726 added 漏洞 Bug 某些功能发生了异常 Something isn't working 新功能/改进 enhancement 增加新功能 New feature or request labels Feb 27, 2024
Copy link

sonarcloud bot commented Feb 28, 2024

Quality Gate Passed Quality Gate passed

Issues
10 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@laolarou726 laolarou726 merged commit 9f3c5ac into master Mar 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
漏洞 Bug 某些功能发生了异常 Something isn't working 新功能/改进 enhancement 增加新功能 New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants