Skip to content

New IDEVersion struct in GeneralInfo for convenience#2406

Open
BioTomateDE wants to merge 1 commit into
UnderminersTeam:masterfrom
BioTomateDE:versionstruct
Open

New IDEVersion struct in GeneralInfo for convenience#2406
BioTomateDE wants to merge 1 commit into
UnderminersTeam:masterfrom
BioTomateDE:versionstruct

Conversation

@BioTomateDE

Copy link
Copy Markdown
Contributor

Description

Made a new struct called IDEVersion that contains major, minor, release, build and LTS branch. UndertaleGeneralInfo now stores this in a new field called Version. You can still use GeneralInfo.Major to access GeneralInfo.Version.Major etc using a properties. This ensures this change does not break existing code (and is more convenient anyway).

The reason I implemented this is because I think this could be useful when handling GameMaker versions without needing to create a whole UndertaleGeneralInfo or making your own struct/tuple for the 5 different version parts.

Caveats

no

Notes

if you don't like the name IDEVersion I can change it to something else lol

@BioTomateDE BioTomateDE marked this pull request as draft June 24, 2026 08:58
@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

@BioTomateDE BioTomateDE marked this pull request as ready for review June 24, 2026 09:59
@luizzeroxis

Copy link
Copy Markdown
Contributor

Interesting, although you'd have to be careful that it doesn't break XAML bindings and such (Fody would probably be doing a lot the heavy lifting here). I think it would be better to decouple the version as in the data file and the detected version by UTMT. You might as well combine both the version number and the branch into a single object at that point.

@BioTomateDE

Copy link
Copy Markdown
Contributor Author

we can have an additional OriginalVersion field that denotes the read gen8 version. thats probably better right?

@colinator27 colinator27 added this to the Possible for 0.9.x milestone Jul 2, 2026
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.

3 participants