HomeWildfire Games

Allow registering hooks that trigger on config changes.

Description

Allow registering hooks that trigger on config changes.

Rendering options use this capability to simplify their implementation. This makes it easier to add new options.

Comments by: vladislavbelov

Differential Revision: https://code.wildfiregames.com/D2293

Event Timeline

vladislavbelov added inline comments.
/ps/trunk/source/renderer/RenderingOptions.h
116โ€“126

You don't need these functions in the interface, there're useless here. Since their bodies are the only proxies.

wraitii added inline comments.Nov 21 2020, 5:39 PM
/ps/trunk/source/renderer/RenderingOptions.h
116โ€“126

I recall I had problem with private access if they weren't here.

vladislavbelov added inline comments.Nov 22 2020, 1:04 AM
/ps/trunk/source/renderer/RenderingOptions.h
116โ€“126

Why are you trying to access a private member? Just pass the member as a reference or make the setup function a method of the implementation class.

vladislavbelov raised a concern with this commit.Jan 12 2021, 8:48 PM
vladislavbelov added inline comments.
/ps/trunk/source/renderer/RenderingOptions.cpp
166

Followed the wrong code in rP17737 and broke the option.

This commit now has outstanding concerns.Jan 12 2021, 8:48 PM
wraitii requested verification of this commit.Jan 13 2021, 11:04 AM
This commit now requires verification by auditors.Jan 13 2021, 11:04 AM
vladislavbelov resigned from this commit.Jan 13 2021, 1:27 PM
This commit no longer requires audit.Jan 13 2021, 1:27 PM