mirror of
https://github.com/ValveSoftware/Proton
synced 2025-08-31 06:35:23 +00:00
lsteamclient: Move dos to unix path conversion to the unix side.
CW-Bug-Id: #22729
This commit is contained in:
@@ -311,7 +311,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent( void *args )
|
||||
{
|
||||
struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent_params *)args;
|
||||
struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side;
|
||||
params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder );
|
||||
char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 );
|
||||
params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder );
|
||||
steamclient_free_path( u_pszContentFolder );
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -319,7 +321,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview( void *args )
|
||||
{
|
||||
struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview_params *)args;
|
||||
struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side;
|
||||
params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile );
|
||||
char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 );
|
||||
params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile );
|
||||
steamclient_free_path( u_pszPreviewFile );
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -455,7 +459,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer( voi
|
||||
{
|
||||
struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer_params *)args;
|
||||
struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side;
|
||||
params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder );
|
||||
char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 );
|
||||
params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder );
|
||||
steamclient_free_path( u_pszFolder );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user