Skip to content

PolymodErrorCode refactor#362

Open
EliteMasterEric wants to merge 1 commit intoexperimentalfrom
error-code-rework
Open

PolymodErrorCode refactor#362
EliteMasterEric wants to merge 1 commit intoexperimentalfrom
error-code-rework

Conversation

@EliteMasterEric
Copy link
Member

The PolymodErrorCode enum was super disorganized (there were two different error codes for trying to load a mod that's outdated for instance), so I refactored it and a bunch of the places in Polymod where it got used.

Part of a change to resolve FunkinCrew/Funkin#6992.


// -----------------------------------------------------------------------------------------------
public function getMetadata(modId:String)
public function getMetadata(modId:String, ?origin:PolymodErrorOrigin):Void

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should return Null<ModMetadata> not Void 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmao

@Hundrec
Copy link
Member

Hundrec commented Feb 28, 2026

Rebased on top of experimental (this was originally based on funkin/experimental)

Checked that it works.

Once Eric addresses the comments, this should be good to go!

…t error codes for trying to load an outdated mod!)
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.

4 participants