Skip to content

Allow compiling enums when enum statements are not present? (when "Create enum declarations" is disabled) #16

@CST1229

Description

@CST1229

Is your feature request related to a problem? Please describe.
If you disable the "Create enum declarations" option in UndertaleModTool (creating the issue here since it's directly related to the (de)compiler), decompiled code will still have enums (both UnknownEnum and game-specific enums) in it, but compiling said code will not compile the enums since they're not in the GML text. It will instead compile a regular variable access, which will crash the game.

Describe the solution you'd like
Make game-specific enums and UnknownEnum count anyways, even if they're not present in the code. Maybe defining an enum would cause it to overwrite the existing one with that name.

Describe alternatives you've considered
The other option is making the option disable enums in the decompiler too but I don't want that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions