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

Decompiler improvements #162

Merged
merged 74 commits into from
May 12, 2019
Merged

Decompiler improvements #162

merged 74 commits into from
May 12, 2019

Conversation

Kneesnap
Copy link
Collaborator

@Kneesnap Kneesnap commented Apr 10, 2019

  • Lots of minor changes to make the decompiled code fully supported by GMS1. (GMS2 untested)
  • Support && + || if statements.
  • Fixed numerous bugs, including if (temp_var_1 - 1) and a break bug causing some code to be omitted from the decompilation.
  • Improved return logic,
Before:
if (condition)
 return 1
else
 return 0

After:
return condition
  • Added option for scripts to show progress bars.

@Kneesnap Kneesnap changed the title Allow script access to UndertaleModTool namespace. Add extra csx namespace access. Apr 10, 2019
@krzys-h krzys-h changed the title Add extra csx namespace access. WIP: Decompiler improvements, add extra csx namespace access Apr 17, 2019
@Kneesnap Kneesnap changed the title WIP: Decompiler improvements, add extra csx namespace access Decompiler improvements Apr 23, 2019
@Kneesnap
Copy link
Collaborator Author

Kneesnap commented May 5, 2019

Alright, I think that's everything. I'm able to export a working project without issue, after next commit.

@colinator27
Copy link
Member

Previously it just represented negative origin as very large positive numbers (>~2.14 billion) due to the nature of signed/unsigned integers. This obviously didn't lose any data, but it makes it harder to deal with. So that fixes it for the library and editor in one, though the editor didn't need to be touched at all.

@krzys-h
Copy link
Member

krzys-h commented May 12, 2019

dog2

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.

None yet

3 participants