Obtaining current gameVersion and featureSet
Hi,
Thanks for the previous update letting us changing the gameVersion and featureSet. Would it be possible to also have a function to get these to not change them if they are the same for exemple ?
I know there is way to bypass private member, but that would be better to always have a way to get them if you change name of something or stuff like that
The SetVersion method is optional, it'll default to the constants if not called
Is that what you meant?
It more that your constants are "private" in golang. I know we can bypass the private of it, but would just want a way to retrieve the gameVersion and featureSet from a PsyNet struct.
In others words, I want a method on PsyNet struct to get gameVersion and featureSet that are public (starting with capitalize letter) just to be sure we will always be able to support the access to gameVersion and featureSet even if you change the name of them for exemple.
Sure, I can add something like GetVersion.
Just curious, what’s the use case for needing these constants outside of the API handlers?
It's for getting the current gameVersion and featureSet of the PsyNet struct to not change them for no reason if we detect that the game itself have the same one but still fail.
Here is an exemple of where I manually get them to use them later on the same file : https://github.com/LEX0RE/rockpload/blob/master/app/manager/account_manager.go#L383
added this part of v0.1.20