Skip to content

Upgrading from 2.1.x to 2.2.x

Hanro edited this page Aug 10, 2021 · 1 revision

The easiest way to update right away is to just call the "loadLegacy" function after you load msmc to insure code built on 2.1.x and earlier will continue to work on 2.2.x. This function will likely be deprecated in the future.

The main change is one of architecture. We felt that it would be better to have something based on async await/promises then the old callback Architecture found in 2.1.x and earlier. We know this is a radical shift in direction, although we found that the old callback architecture lent itself to messier code and offered less overall flexibility.

2.2.x also adds in some hooks to better integrate with mclc and support for Demo mode accounts. Add to that the fact that we added in the code needed to pull down information from a user's xbox account such as their username, avatar, gamer tag and so forth.

Unfortunately all this means is that you'll need to refactor some code to match the changes we added to msmc. This will hopefully not happen again.