Skip to content

Broken ternary logic #45

Open
Open
@Miepee

Description

There are quite a few instances of broken ternary logic:

Failed to decompile code for "gml_Object_system_Draw_64": System.Exception: Ternary logic broke
  at DogScepterLib.Project.GML.Decompiler.ASTIfStatement.Write(DecompileContext ctx, StringBuilder sb) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 1285
   at DogScepterLib.Project.GML.Decompiler.ASTBlock.Write(DecompileContext ctx, StringBuilder sb) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 164
   at DogScepterLib.Project.GML.Decompiler.ASTIfStatement.Write(DecompileContext ctx, StringBuilder sb) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 1319
   at DogScepterLib.Project.GML.Decompiler.ASTNode.WriteFromContext(DecompileContext ctx, StringBuilder sb) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 112
   at DogScepterLib.Project.GML.Decompiler.ASTNode.WriteFromContext(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 87
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntryString(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 187
   at DogScepterCLI.Commands.DumpCommand.<>c__DisplayClass36_1.<ExecuteAsync>b__0(GMCode elem) in C:\Users\narr\gitrepos\dog-scepter\DogScepterCLI\Commands\DumpCommand.cs:line 199

Games affected:
White glove, my sick little world, habitat, narcoschleptic, adrift, nuclear crab, butterflies, keep yourself alive, rupert the robot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdecompilerIssues pertaining to the GML decompiler

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions