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

Fix #930. #940

Merged
merged 6 commits into from
Jul 2, 2021
Merged

Fix #930. #940

merged 6 commits into from
Jul 2, 2021

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Jun 20, 2021

No description provided.

@Hoikas Hoikas linked an issue Jun 20, 2021 that may be closed by this pull request
This fixes the issues resulting from Autodesk bolting on localization
support and sanitizing certain words.
These proxies are a little fiddly, but I can't think of a better way to
do it since the old overloads are now `MAX_SEALED` and proxy to the new
overload. While we could undef `MAX_SEALED`, that assumes AD will never
change `MAX_SEALED` to an outright `final`, so we'd be back to this same
problem again.
@Hoikas
Copy link
Member Author

Hoikas commented Jul 2, 2021

Working on compile errors revealed by max plugin CI.

@Hoikas Hoikas marked this pull request as draft July 2, 2021 16:02
In the Max 2008 lib files, `ReferenceTarget::GetClassName()` is exported
as `ReferenceTarget::GetClassNameA()`. Later versions of Max undefine
`GetClassName` to prevent that.
@Hoikas Hoikas marked this pull request as ready for review July 2, 2021 16:53
@Hoikas
Copy link
Member Author

Hoikas commented Jul 2, 2021

CI errors fixed.

Copy link
Member

@zrax zrax left a comment

Choose a reason for hiding this comment

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

Nice, I like this a lot better than the macro hell we were heading towards before...

Sources/Tools/MaxMain/MaxCompat.h Outdated Show resolved Hide resolved
Sources/Tools/MaxMain/MaxCompat.h Outdated Show resolved Hide resolved
Sources/Tools/MaxMain/MaxCompat.h Outdated Show resolved Hide resolved
Sources/Tools/MaxMain/MaxCompat.h Outdated Show resolved Hide resolved
Sources/Tools/MaxMain/MaxCompat.h Outdated Show resolved Hide resolved
Co-authored-by: Michael Hansen <zrax0111@gmail.com>
@Hoikas Hoikas merged commit def7615 into H-uru:master Jul 2, 2021
@Hoikas Hoikas deleted the max2022 branch July 2, 2021 22:23
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.

Support Max 2022
2 participants