lsteamclient: Move dos to unix path conversion to the unix side.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-10-02 23:20:43 +02:00 committed by Arkadiusz Hiler
parent fd5711e93b
commit 049342a555
58 changed files with 575 additions and 567 deletions

View file

@ -189,7 +189,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWork
{
struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile_params *)args;
struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *)params->linux_side;
params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->pTags );
char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 );
char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 );
params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->pTags );
steamclient_free_path( u_pchFile );
steamclient_free_path( u_pchPreviewFile );
return 0;
}