296 Commits

Author SHA1 Message Date
Rémi Bernon
2a69a32cf8 lsteamclient: Add a new export to initialize registry.
CW-Bug-Id: #24510
2025-04-24 18:03:43 +03:00
Rémi Bernon
3a4858bd6b lsteamclient: Add a missing parameter.
CW-Bug-Id: #24510
2025-04-24 18:03:43 +03:00
Billy Laws
42f2d563a4 steamclient: Call Windows vtable callbacks with the correct arg count
The x86 Windows ABI pushes all arguments onto the stack in the caller
and expects the callee to clean them up. The mismatch in parameter
counts thus causes the stack to be offset after calling these
callbacks leading to a crash.
2025-04-24 17:58:12 +03:00
Arkadiusz Hiler
a62e072e94 lsteamclient: Generate SteamWorks SDK 1.62 support. 2025-03-20 18:48:22 +02:00
Arkadiusz Hiler
5b723fb5f4 lsteamclient: Generate SteamWorks SDK 1.61 support. 2025-01-29 23:01:30 +02:00
Paul Gofman
7a651eba33 lsteamclient: Only free SteamMatchmakingServerListResponse callback after ISteamMatchMakingServers::ReleaseRequest().
And leak the callback for SteamMatchMakingServers v001
(same as before e3798c1adbdd7a424ac544bec592b93f6c6289f5 for both versions).

CW-Bug-Id: #24528
2024-11-28 19:19:11 +02:00
Paul Gofman
01c636ddb8 lsteamclient: Make SteamMatchMakingServers::ReleaseRequest() manual.
CW-Bug-Id: #24528
2024-11-28 19:19:11 +02:00
Paul Gofman
727dc0caae lsteamclient: Convert URL in ISteamFriends::ActivateGameOverlayToWebPage().
CW-Bug-Id: #24247
2024-11-21 17:31:33 +02:00
Paul Gofman
6a160b9d0a lsteamclient: Handle error result in networking_message_pool_receive_().
CW-Bug-Id: #24177
2024-11-21 17:31:33 +02:00
Paul Gofman
f277d7a21f lsteamclient: Convert api call completion callback length in SteamAPICallCompleted_t.
CW-Bug-Id: #24446
2024-11-08 14:14:04 +02:00
Paul Gofman
1a73b04e6c lsteamclient: Add ISteamTimeline interface.
CW-Bug-Id: #24276
2024-09-23 18:16:24 +03:00
Paul Gofman
2e97e9f002 lsteamclient: Reset last error in Steam_BGetCallback() on no callback return.
CW-Bug-Id: #24028
2024-08-19 22:35:49 +03:00
Paul Gofman
235b0b151c lsteamclient: Preserve last error in load_steamclient().
CW-Bug-Id: #24028
2024-08-19 22:35:49 +03:00
Paul Gofman
bf479d31d9 lsteamclient: Use default conversion in convert_callback_utow / callback_message_utow even if Unix len is unknown.
CW-Bug-Id: #23875
2024-08-19 22:33:50 +03:00
Paul Gofman
54378d5357 lsteamclient: Fix source length for ntdll_umbstowcs().
CW-Bug-Id: #23962
2024-07-02 17:01:46 +03:00
Rémi Bernon
dbc381d95e lsteamclient: Generate SteamWorks SDK 1.60 support.
CW-Bug-Id: #23976
2024-07-01 10:10:27 +03:00
Rémi Bernon
25890a64ca lsteamclient: Import SteamWorks SDK 1.60.
CW-Bug-Id: #23976
2024-07-01 10:10:26 +03:00
Paul Gofman
b4b6617224 lsteamclient: Zero unused output message pointers in networking_message_pool_receive().
CW-Bug-Id: #23829
2024-05-23 10:54:50 +03:00
Paul Gofman
5a996971d7 lsteamclient: Initialize sockets in load_steamclient().
CW-Bug-Id: #23749
2024-05-23 10:54:49 +03:00
Paul Gofman
e3798c1adb lsteamclient: Delete matchmaking callback objects on request completion.
CW-Bug-Id: #23577
2024-05-23 10:54:49 +03:00
Paul Gofman
0389125f9a lsteamclient: TRACE all the strings with debugstr_a() in execute_pending_callbacks().
CW-Bug-Id: #23577
2024-05-23 10:54:49 +03:00
Paul Gofman
0b317f8464 lsteamclient: Collapse path in dos to unix conversion.
CW-Bug-Id: #23664
2024-04-19 09:47:18 -06:00
Paul Gofman
4e289629ce lsteamclient: Strip extra /'s from file:/// in steamclient_dos_to_unix_path().
CW-Bug-Id: #23664
2024-04-19 09:47:18 -06:00
Paul Gofman
6e7e17776e lsteamclient: Return empty string from steamclient_dos_to_unix_path() when conversion failed.
CW-Bug-Id: #23664
2024-04-19 09:47:18 -06:00
Paul Gofman
a287ebaaf9 lsteamclient: Propagate Unix side access violation to the PE side exception.
CW-Bug-Id: #23623
2024-04-04 08:53:20 -06:00
Paul Gofman
3cba1580fe lsteamclient: Convert callbacks with a best guess even if specified message length is too short.
CW-Bug-Id: #23620
2024-04-04 08:53:20 -06:00
Arkadiusz Hiler
4341729100 lsteamclient: Generate SteamWorks SDK 1.59 support. 2024-03-22 13:30:06 +02:00
Paul Gofman
bd8d7e374e lsteamclient: Reimplement callback_message_utow() in manual code using table.
CW-Bug-Id: #23550
2024-03-20 19:52:21 -06:00
Paul Gofman
7e98577a74 lsteamclient: Reimplement alloc_callback_wtou(), convert_callback_utow() in manual code using generated table.
And try to handle the case of non-matching Windows callback length
similar to  before commit 6a5d5757ca2fbed232481f4e001114e7ba87560c.

CW-Bug-Id: #23550
2024-03-20 19:52:21 -06:00
Paul Gofman
ce08f3ca53 lsteamclient: Generate C conversion functions.
CW-Bug-Id: #23550
2024-03-20 19:52:21 -06:00
Rémi Bernon
121cdab5fc lsteamclient: Copy the ServerResponded parameter for delayed callbacks.
CW-Bug-Id: #23272
2024-02-15 15:53:29 +02:00
Rémi Bernon
457407ffd5 lsteamclient: Copy the m_hSteamUser member in callback_message_utow. 2024-02-15 15:53:29 +02:00
Rémi Bernon
faf681cd9c lsteamclient: Execute any pending callback before ReleaseRequest.
CW-Bug-Id: #22729
2024-02-15 15:53:29 +02:00
Paul Gofman
22672c5b0a lsteamclient: Clear last error in create_win_interface().
CW-Bug-Id: #23178
2024-02-15 15:53:29 +02:00
Paul Gofman
051cb009df lsteamclient: Fix g_tmppath buffer length.
CW-Bug-Id: #23197
2024-02-15 15:53:29 +02:00
Paul Gofman
5d374bdc2c lsteamclient: Use GetEnvironmentVariableW() in load_steamclient().
CW-Bug-Id: #23142
2024-02-15 15:53:29 +02:00
Paul Gofman
f2fa9ed325 Revert "lsteamclient: Use getenv() in load_steamclient()."
This reverts commit df4821f3612b8876bcbd2e0803f9c57f72b209d4.

CW-Bug-Id: #23170
2024-02-15 15:53:29 +02:00
Rémi Bernon
37dc6df5eb lsteamclient: Avoid accessing entry->callback.size after free.
Fixes a crash in Space Engineers.

CW-Bug-Id: #23145
2024-02-15 15:53:29 +02:00
Paul Gofman
b86aa755d9 lsteamclient: Use getenv() in load_steamclient().
CW-Bug-Id: #23142
2024-02-15 15:53:29 +02:00
Paul Gofman
c8669fbcbd steamclient: Read access input strings on the PE side. 2024-02-15 15:53:29 +02:00
Rémi Bernon
eb45ddf6f8 lsteamclient: Add warnings and asserts to unixlib calls.
CW-Bug-Id: #22729
2024-02-15 15:53:29 +02:00
Rémi Bernon
838d14d66e lsteamclient: Split unixlib and build with msvcrt.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00
Rémi Bernon
99bdd62d6c lsteamclient: Get rid of unused functions declarations. 2024-02-15 15:53:28 +02:00
Rémi Bernon
60d50a11e6 lsteamclient: Get rid of DECLSPEC_HIDDEN. 2024-02-15 15:53:28 +02:00
Rémi Bernon
726879ea78 lsteamclient: Add missing break in ISteamNetworkingUtils_SetConfigValue switch.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00
Rémi Bernon
5e70a92e17 lsteamclient: Default calling convention is cdecl.
CW-Bug-Id: #22729
CW-Bug-Id: #23085
2024-02-15 15:53:28 +02:00
Rémi Bernon
1bf0e86507 lsteamclient: Make sure the param structs are consistently aligned.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00
Rémi Bernon
cd4a31f4e0 lsteamclient: Use int8_t instead of ambiguous sized bool.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00
Rémi Bernon
98a90a1458 lsteamclient: Queue callback for input EnableActionEventCallbacks functions.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00
Rémi Bernon
6a7dbe6160 lsteamclient: Queue callback for networking SetConfigValue functions.
CW-Bug-Id: #22729
2024-02-15 15:53:28 +02:00