Re: To be a listener to a specific CVAR

#3
Thank you @cry-jan.

I missed the *_CB functions. As far as I see, it takes just one function. I can solve my problem with a wrapper but you may want to changed it with std::initializer_list. Then programmers can give more than one function. Just my opinion, maybe there is some problems for that.

RainMan14
RainMan14

Re: To be a listener to a specific CVAR

#4
Allowing multiple callbacks per CVar would probably require a non-trivial refactoring and I can't remember ever having a pressing need for this feature. Anyway, if you need multiple callbacks you can always create an additional functions that calls all the others and then register that 'master-callback' on the CVar.

Who is online

Users browsing this forum: No registered users and 4 guests