Skip to content

Conversation

@ticky
Copy link

@ticky ticky commented Jul 22, 2021

This adds the ability to use the gdishrink function from the command line, and additionally significantly improves the Python 3 compatibility of that code.

First up, it encodes some stuff which was strings as bytes.

Secondly, it fixes one instance where a calculation could sometimes result in a float value, which I believe Python 2 would transparently truncate to an int if needed, but Python 3 requires explicit truncation.

I'm not hugely familiar with getopt, so if there's a better way to insert these functions I'm all ears.

ticky added 2 commits July 22, 2021 10:27
This adds the ability to use the gdishrink function from the command line, and additionally significantly improves the Python 3 compatibility of that code.

First up, it encodes some stuff which was strings as bytes.

Secondly, it fixes one instance where a calculation could sometimes result in a float value, which I believe Python 2 would transparently truncate to an int if needed, but Python 3 requires explicit truncation.

I'm not hugely familiar with getopt, so if there's a better way to insert these functions I'm all ears.
@ticky
Copy link
Author

ticky commented Aug 15, 2021

Updated with another bit of Py3 compatibility; it now handles games with additional GD-DA audio tracks in the high density area without crashing

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.

1 participant