diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 83ea7000..4e32d7e2 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -558,7 +558,17 @@ path_conversions = [ "w2l_arrays": [False], "w2l_urls": [False], "return_is_size": False - } + }, + { + "parent_name": "SetInputActionManifestFilePath", + "l2w_names": [], + "l2w_lens": [], + "l2w_urls": [], + "w2l_names": ["pchInputActionManifestAbsolutePath"], + "w2l_arrays": [False], + "w2l_urls": [False], + "return_is_size": False + }, ] def strip_const(typename): diff --git a/lsteamclient/winISteamInput.c b/lsteamclient/winISteamInput.c index 42d28c9a..441560b3 100644 --- a/lsteamclient/winISteamInput.c +++ b/lsteamclient/winISteamInput.c @@ -39,8 +39,10 @@ bool __thiscall winISteamInput_SteamInput005_Shutdown(winISteamInput_SteamInput0 DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_SetInputActionManifestFilePath, 8) bool __thiscall winISteamInput_SteamInput005_SetInputActionManifestFilePath(winISteamInput_SteamInput005 *_this, const char * pchInputActionManifestAbsolutePath) { + char lin_pchInputActionManifestAbsolutePath[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchInputActionManifestAbsolutePath, lin_pchInputActionManifestAbsolutePath, 0); TRACE("%p\n", _this); - return cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->linux_side, pchInputActionManifestAbsolutePath); + return cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->linux_side, pchInputActionManifestAbsolutePath ? lin_pchInputActionManifestAbsolutePath : NULL); } DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_RunFrame, 8)