ElDewrito / ElDorito

A Halo Online modification
725 stars 143 forks source link

Added command to reload user created variants on demand #452

Closed ThunderWaffle closed 6 years ago

ThunderWaffle commented 6 years ago

Proposed changes in this pull request:

  1. Added command "Game.ReloadVariants" to the console to support reloading variants from file.

Why should this pull request be merged?

Currently there is no way to reload variants that you add to "./mods/maps" or "./mods/variants" without restarting the game.

Have you tested this on your own and/or in a game with other people?

Tested alone.

Test procedure.

  1. Start game as normal
  2. Go into ./mods/maps or ./mods/variants and add new content
  3. Run "Game.ReloadVariants"
  4. Verify new content is now in the menu. Note the file explorer for map or gametype needs to be closed and reopened.

Similar test can be run for deleting content.

ThunderWaffle commented 6 years ago

This will take some significant refactoring. It can be done, though.

Shockfire commented 6 years ago

cc @unk-1 @camden-smallwood: I think the changes to BlamData.cpp here are correct but I just want you guys to double-check when you get a chance since these functions are pretty critical