by Spike » Sat Aug 02, 2014 5:27 pm
so you need to know whether its running on linux, so you're instead testing to see if they used -dedicated on the commandline instead?
that's absurd.
if you really want to test to see if you're running on linux, use the cvar_type function and test for some linux-specific cvar. of course, due to the 'proper' dp builds all using sdl, you're screwed. you might be able to use strftime to see which C run time it was linked against, if the bug is caused by msvc or whatever.
but assuming that all and only dedicated servers are running on linux is stupid.
if both machines are under your control, surely you'll know which one you got the saved game from in the first place, so why do you need to set a cvar (which won't be shown in the saved game anyway)?
if you're seeing behavioural differences between linux and windows, then you should bitch at whoever is responsible. But probably you'll find out that its your own config issue.
If you're seeing differences between dedicated and listen servers, then its probably your own fault anyway. If you explain the difference that you're observing then maybe someone here will be able to point out exactly which part of the API you're failing to understand.
.