Skip to content

Comments

Fix crash in mod.cpp when JSON root object is different. #93

Merged
PoloNX merged 1 commit intoPoloNX:masterfrom
Starwarsfan2099:master
Jul 9, 2025
Merged

Fix crash in mod.cpp when JSON root object is different. #93
PoloNX merged 1 commit intoPoloNX:masterfrom
Starwarsfan2099:master

Conversation

@Starwarsfan2099
Copy link
Contributor

SimpleModDownloader crashed when installing the Super Smash Bros. mod here: https://gamebanana.com/mods/605724

Crash originated in File::loadFile() from mod.cpp. The JSON returned from https://gamebanana.com/apiv11/File/{fileID} did not have an _aMetadata._aArchiveFileTree object, instead the root object was just _aArchiveFileTree. This pull request adds logic checking for either object.

@PoloNX
Copy link
Owner

PoloNX commented Jul 9, 2025

Thanks. I need to work on this project again

@PoloNX PoloNX merged commit f0c5968 into PoloNX:master Jul 9, 2025
2 checks passed
This was referenced Jul 9, 2025
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.

2 participants