Commit b11a97f
steam: Fix float stat truncation, outdated macOS SDK path, and VS detection
steamshim_child.c: Fix float stat values being silently truncated to
integers. In processEvent(), SHIMEVENT_SETSTATF/GETSTATF was assigning
float values as:
event.fvalue = (int)*((float *)buf);
The erroneous (int) cast discarded the fractional part before assigning
to the float field. This meant stats like stat_online_minutes_played
(a float) were always rounded down to whole numbers. Remove the cast so
the float value is assigned directly.
steamshim_parent/Makefile: Update macOS redistributable library path
from osx32 to osx. Valve renamed the directory when they dropped 32-bit
macOS support in Steamworks SDK ~1.42 (2018). Building the Steam shim
for HOST=osx would fail to link because the path no longer exists in
any recent SDK.
steamshim_parent/build.bat: Add support for Visual Studio 2017, 2019,
and 2022. Previously the script only detected VS2015 (VS140COMNTOOLS).
Now it first tries vswhere.exe (available since VS2017, the standard
Microsoft-recommended discovery mechanism) to locate the latest
installed VS with C++ tools. Falls back to the legacy VS2015 check if
vswhere is not found.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 178f13b commit b11a97f
3 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
| |||
0 commit comments