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

Update preprocessor #75

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Update preprocessor #75

merged 3 commits into from
Aug 6, 2024

Conversation

Johni0702
Copy link
Collaborator

Latest preprocessor has two new features which UC can make good use of:

  1. "Strict extra mapping files" allow (well, require, with automatic inference where possible) one to specify exact types for method mappings (e.g. translate(DDD)V to translated(), but translate(FFF)V to translatef()), allowing us to use extra mappings for a bunch more things which previously had to use preprocessor statements.
  2. It will now try to infer class mappings for srg-era Minecraft versions based on shared method/field names, allowing us to get rid of a bunch of manually entered class mappings.

It also gained a cleanupUnnecessaryMappings task which will automatically remove any mapping entries which don't do anything (be it because of point 2, or because they were broken or redundant to begin with).

This also fixes UGraphics.blendEquation inappropriately bypassing GlStateManager on 1.12.2.

Automaticaly generated via cleanupUnnecessaryMappings task.
Now that preprocessor supports manual method mappings with specific
descriptors, we can remap all of these via mappings instead of having to
use preprocessor statements.

The blendEquation one should have been using GlStateManager on
1.12.2 anyway.
@Johni0702 Johni0702 merged commit 34cec8d into master Aug 6, 2024
1 check passed
@Johni0702 Johni0702 deleted the feature/update-preprocessor branch August 6, 2024 13:35
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