diff options
author | aszlig <aszlig@nix.build> | 2020-03-29 18:12:10 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2020-03-29 18:21:31 +0200 |
commit | d4ddb4b1079d3b58e93142184b9bcf57bb596ead (patch) | |
tree | 126d29ec2fcc64ca8eb861c8b00864a7c04e6b26 /pkgs/sternenseemann/default.nix | |
parent | 4edfc23056e5a1598293eb62749d46655e6102f9 (diff) |
invisigun-heroes: Get nick name from environment
Since the player's nick name is retrieved via Steam we don't get any nick name via the DRM-free version. To cope with this, the nick name is now determined by looking at the INVISIGUN_NICKNAME and USER if the former is not defined. If people don't want their local user name to be displayed to others, there is a setting in the options menu to disable this behaviour. The reason why I patched the call to Tools::FilterText (which is used sanitise the nick name) instead of a more specific one is because the more specific one is optimized out in the build: IL_0000: ldarg.0 IL_0001: call string class Tools::'?????????'(valuetype '?????????') IL_0006: call string class Tools::FilterText(string) IL_000b: ret So the only way to patch out the call in IL_0001 would be to use addresses/offsets, which is bound to break in the next upstream version. However, since the output is essentially wrapped in Tools::FilterText, I decided to patch that one instead and we simply throw away the argument. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/sternenseemann/default.nix')
0 files changed, 0 insertions, 0 deletions