Skip to content

Issue #638: Fixed C# TextureMap field types #707

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SpyderTL
Copy link

@SpyderTL SpyderTL commented Jan 7, 2018

By default, Marshall.PtrToStructure converts char fields to 1 byte characters. Ushort fields are properly converted to 2 byte values.

This should fix Issue #638.

By default, Marshall.PtrToStructure converts char fields to 1 byte characters.  Ushort fields are properly converted to 2 byte values.
@deranen
Copy link

deranen commented Oct 2, 2018

Why hasn't this been merged already?

@BOLL7708
Copy link

BOLL7708 commented Oct 2, 2018

@deranen probably because the file is automatically generated so any changes to it would have to be done somewhere else, not in the actual file.

I bump into parameters and properties being wrong, floats that are doubles, ints that are chars etc. Feels like we could have a separate place just to report things in the C# header 😅

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants