Skip to content

Ingame reloading of assets when changing settings#60

Open
LossRain wants to merge 8 commits intopuyonexus:masterfrom
LossRain:asset_layover2
Open

Ingame reloading of assets when changing settings#60
LossRain wants to merge 8 commits intopuyonexus:masterfrom
LossRain:asset_layover2

Conversation

@LossRain
Copy link
Copy Markdown
Contributor

Allows the user to dynamically apply changes of some preferences to existing Games after closing the Settings dialog in the Client. Additionally separates AssetManager into two classes (a base class and generated helper with access to the game's parameters) AssetBundles are now front-end agnostic and take ppvs::Frontend* as a parameter for required actions.

Requires further testing before merging (live changing of preferences for multiple Game instances works, relaunching is fully functional for me, ClientNG works, memory usage and leaks haven't been analyzed)

This hopefully gets away with the requirement for the "template" AssetManager class.
I am sorry for this huge commit. It gives the Game object a simple way of
reaching (possibly) all of the game assets and reload them upon request.
Currently it triggers on the closure of the settings dialogue.
Comment thread Puyolib/AssetManager.h Outdated
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