Re: How to tell Mac from Linux wine within a Wine app? (steam hardware survey)

2012-11-10 Thread Max TenEyck Woodbury
On 11/10/2012 02:03 PM, Scott Ritchie wrote:
 Is there an easy way for the steam hardware survey to tell whether it's
 running under Mac or Linux Wine?
 
 I remember discussing this issue with an engineer from Valve after
 asking they make the % of Wine users public again.
 
 
Why do you care?

The best way is probably to try something that works on a Mac, and if
it comes back with 'not implemented', try a workaround that works with
Wine.

It would not be a good idea to infer that because one thing is broken
under wine, that some other work around is also needed.  Each
capability should be checked separately.  Things can change fairly
rapidly in Wine.





Re: How to tell Mac from Linux wine within a Wine app? (steam hardware survey)

2012-11-10 Thread Charles Davis

On Nov 10, 2012, at 12:03 PM, Scott Ritchie wrote:

 Is there an easy way for the steam hardware survey to tell whether it's 
 running under Mac or Linux Wine?
 
 I remember discussing this issue with an engineer from Valve after asking 
 they make the % of Wine users public again.
You can call the wine_get_host_version() function in ntdll. It's used by 
winetest to insert the host system info into its reports.

Chip





Re: How to tell Mac from Linux wine within a Wine app? (steam hardware survey)

2012-11-10 Thread Scott Ritchie

On 11/10/12 11:20 AM, Max TenEyck Woodbury wrote:

On 11/10/2012 02:03 PM, Scott Ritchie wrote:

Is there an easy way for the steam hardware survey to tell whether it's
running under Mac or Linux Wine?

I remember discussing this issue with an engineer from Valve after
asking they make the % of Wine users public again.



Why do you care?

The best way is probably to try something that works on a Mac, and if
it comes back with 'not implemented', try a workaround that works with
Wine.

It would not be a good idea to infer that because one thing is broken
under wine, that some other work around is also needed.  Each
capability should be checked separately.  Things can change fairly
rapidly in Wine.




The purpose isn't to work around wine bugs by detecting wine, it's to 
find out how many Wine/Mac and Wine/Linux users there are so they can 
assess how that compares to the native clients.