Commit Graph

137 Commits

Author SHA1 Message Date
Paul Gofman
47ae0819ae lsteamclient: Execute SteamNetworkingSocketsDebugOutput callback from a Wine thread.
CW-Bug-Id: #20684

The callback is called from a native Unix thread which is not initialized with Wine,
meaning it, e. g., has a leftover TEB from another thread. Only native Unix functions
may be called from such a thread.
2022-06-03 14:26:11 +03:00
Paul Gofman
8d7d5bb129 lsteamclient: HACK: Skip spurious overlay deactivation event.
CW-Bug-Id: #20169
2022-06-03 14:26:11 +03:00
Rémi Bernon
7fd1f62249 lsteamclient: Turn overlay input filtering traces to FIXME. 2022-06-03 14:26:11 +03:00
Paul Gofman
4e20758255 Revert "lsteamclient: HACK Do not unset SteamAppId for 'Splitgate: Arena Warfare'."
This reverts commit 57dc9d7062.
2022-06-03 14:26:11 +03:00
Paul Gofman
cd60b70756 lsteamclient: Fixup gameID parameter for SteamUser008_InitiateGameConnection().
CW-Bug-Id: #20195
2022-04-20 18:54:06 +03:00
Paul Gofman
e03828cdc3 lsteamclient: Also treat TypeKind.UNEXPOSED as unspecified function pointer in genwrapper.py. 2022-04-20 18:54:06 +03:00
Eduard Permyakov
d6aec09c05 lsteamclient: Fix forwarding incorrect result for certain path-related operations.
The SteamAPI may return non-zero values even when a NULL pointer is
passed in for the target path buffer. For example, GetAppInstallDir
will still return the required size of the distination buffer.

Since api_result is the length of the Windows path, it is not completely
safe to return it directly, since the corresponding UNIX path may have
more characters. Without access to the original Windows path, we cannot
make a conversion to determine how many characters the UNIX path will
have. So just resort to returning a safe upper bound value.

CW-Bug-Id: #19606
2022-01-24 16:03:39 +02:00
Rémi Bernon
57ea5353ee lsteamclient: Parse all include files at once. 2022-01-19 11:29:54 +02:00
Rémi Bernon
226313fa1d lsteamclient: Remove unnecessary includes.
The -Isteamworks_sdk_{sdkver} was not expanded anyway.
2022-01-19 11:29:54 +02:00
Rémi Bernon
de5557448b lsteamclient: Use dicts to lookup structs in gen_wrapper.py. 2022-01-19 11:29:54 +02:00
Rémi Bernon
5e3dab64e2 lsteamclient: Import from clang.cindex instead of prefixing. 2022-01-19 11:29:54 +02:00
Andrew Eikum
212cbc0c9a lsteamclient: Generate steamworks sdk 1.53a support 2022-01-19 11:29:54 +02:00
Andrew Eikum
0b9c8a34aa lsteamclient: Import steamworks sdk 1.53a 2022-01-19 11:29:54 +02:00
Andrew Eikum
58860a6cc6 lsteamclient: Support reference parameters 2022-01-19 11:29:54 +02:00
Andrew Eikum
67316452df lsteamclient: Use python f-strings 2022-01-19 11:29:54 +02:00
Paul Gofman
7a90ff74ce lsteamclient: Get memory for SteamClient interface within native steamclient.dll loader range.
CW-Bug-ID: #19605

For Mafia II.
2021-11-11 18:36:07 +02:00
Andrew Eikum
b3c6c677bc lsteamclient: Fix SteamIPAddress_t size
CW-Bug-Id: #19598
2021-11-11 18:29:03 +02:00
Andrew Eikum
2165c3ff81 lsteamclient: Also key glyph path cache off of flags parameter 2021-11-11 17:52:16 +02:00
Andrew Eikum
0b1db713ac lsteamclient: Also convert paths from GetGlyphForXboxOrigin
CW-Bug-Id: #19517
2021-10-08 13:22:52 -05:00
Andrew Eikum
f9eef72c88 lsteamclient: Convert glyph paths in new ISteamInput005 methods
CW-Bug-Id: #19517
2021-10-08 13:22:52 -05:00
Andrew Eikum
4b9b102b31 lsteamclient: Convert path given to ISteamInput::SetInputActionManifestFilePath
CW-Bug-Id: #19517
2021-10-08 13:22:52 -05:00
Andrew Eikum
da911c3bf9 lsteamclient: generate 1.52 support 2021-10-08 13:22:51 -05:00
Andrew Eikum
a1244bdf38 lsteamclient: import steamworks sdk 1.52 2021-10-08 13:22:51 -05:00
Paul Gofman
57dc9d7062 lsteamclient: HACK Do not unset SteamAppId for 'Splitgate: Arena Warfare'.
CW-Bug-Id: 18924

To be dropped on the next rebase.
2021-05-27 21:30:27 +03:00
Andrew Eikum
5504754ce9 lsteamclient: generate 1.51 support 2021-03-31 14:08:10 -05:00
Andrew Eikum
c2e3697d90 lsteamclient: import steamworks sdk 1.51 2021-03-31 14:08:10 -05:00
Andrew Eikum
8398ebded4 update wine to 6.3 2021-03-31 14:08:09 -05:00
Rémi Bernon
42e1584e71 steamclient: Fake Shift + Tab key release on overlay activation. 2021-01-14 10:11:07 -06:00
Rémi Bernon
186f81ec47 steamclient: Monitor GameOverlayActivated_t callbacks to track overlay presence. 2021-01-11 12:26:56 -06:00
Giovanni Mascellani
e5c634ce0b Silence expected and harmless errors 2020-12-01 14:54:06 -06:00
Giovanni Mascellani
16992af05c Port gen_wrapper.py to Python 3
Basically the only issue left out is that Python3 is much more picky
on file encoding, and some Valve headers are not UTF-8. Ignoring
errors is enough to get everything fixed.
2020-12-01 14:54:06 -06:00
Giovanni Mascellani
04af5e3d79 Sort callback tables by id
This way the generated file is more deterministic, and hopefully less
irrelevant diff is produced (for example when switching from Python 2
to Python 3, or when adding more callbacks that cause rehashing the
dictionary).
2020-12-01 14:54:06 -06:00
Giovanni Mascellani
c559773d00 lsteamclient: Allow callbacks to be NULL
Steamworks API seems to accept NULL callbacks, simply avoiding to call
them when this is the case.
2020-11-09 13:43:05 -06:00
Paul Gofman
4f31b3b2b8 lsteamclient: Fix end of string check in relative path conversion. 2020-11-09 13:43:05 -06:00
Andrew Eikum
8bb3afc9a2 lsteamclient: Handle callbacks for ISteamNetworking interfaces 2020-10-02 14:22:48 -05:00
Andrew Eikum
30c21636c5 lsteamclient: support ISteamNetworkingMessages 2020-10-02 14:22:44 -05:00
Andrew Eikum
f22095c745 lsteamclient: generate 1.50 support 2020-10-02 14:22:39 -05:00
Andrew Eikum
5cec5eedc7 lsteamclient: import steamworks 1.50 2020-10-02 14:22:35 -05:00
Andrew Eikum
c0aa7979a3 steamclient: Generate support for steamworks 1.49 2020-09-29 14:29:06 -05:00
Andrew Eikum
ac86122f28 steamclient: Import steamworks sdk 1.49 2020-09-29 14:29:06 -05:00
Rémi Bernon
6a9e719119 lsteamclient: Stub GameOverlayRenderer entry points. 2020-09-29 14:29:06 -05:00
Andrew Eikum
7d444028c3 update wine to 5.13 2020-09-29 14:29:05 -05:00
Andrew Eikum
a853ce145d lsteamclient: Import steamworks 1.48a and fix up networkingsockets versions 2020-06-05 08:58:23 -05:00
Andrew Eikum
18e235f96b lsteamclient: Sync environment only once 2020-03-18 13:49:55 -05:00
Derek Lesho
a33e3d105d lsteamclient: Sync important environment variables before calling CreateInterface. 2020-03-09 10:03:54 -05:00
Rémi Bernon
c6cead45dc lsteamclient: Reallocate new interface only when linux_side changes.
This fixes Batman: AK's Denuvo DRM incorrectly flagging the game as
pirated.
2020-02-24 09:33:55 -06:00
Andrew Eikum
1bfc03a2c5 steamclient: generate 1.47 support 2020-01-10 07:49:46 -06:00
Andrew Eikum
a2317ff230 steamclient: Clean up 1.47 for generating 2020-01-10 07:49:46 -06:00
Andrew Eikum
03ed34405a steamclient: import steamworks 1.47 2020-01-10 07:49:45 -06:00
Andrew Eikum
63e14b5678 lsteamclient: Preserve command-line cdecl macro 2019-08-23 09:57:46 -05:00