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

Broken ternary logic #45

Open
Miepee opened this issue May 2, 2022 · 0 comments
Open

Broken ternary logic #45

Miepee opened this issue May 2, 2022 · 0 comments
Labels
bug Something isn't working decompiler Issues pertaining to the GML decompiler

Comments

@Miepee
Copy link
Contributor

Miepee commented May 2, 2022

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

@colinator27 colinator27 added bug Something isn't working decompiler Issues pertaining to the GML decompiler labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working decompiler Issues pertaining to the GML decompiler
Projects
None yet
Development

No branches or pull requests

2 participants