Download CommonLua/Platforms/steam/SteamNetwork.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Platforms/steam/SteamNetwork.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Platforms/steam/SteamNetwork.lua
-
curl -L -o SteamNetwork.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Platforms/steam/SteamNetwork.lua
1.01 kB
| if FirstLoad then | |
| threadSteamGetAppTicket = false | |
| end | |
| config.NetCheckUpdates = false | |
| function ProviderName() | |
| return "steam" | |
| end | |
| function PlatformGetProviderLogin(official_connection) | |
| local err, auth_provider, auth_provider_data, display_name | |
| if not IsSteamLoggedIn() then | |
| DebugPrint("IsSteamLoggedIn() failed\n") | |
| return "steam-auth" | |
| end | |
| auth_provider = "steam" | |
| display_name = SteamGetPersonaName() | |
| if not display_name then | |
| DebugPrint("SteamGetPersonaName() failed\n") | |
| return "steam-auth" | |
| end | |
| while threadSteamGetAppTicket do -- wait any other calls to AsyncSteamGetAppTicket | |
| Sleep(10) | |
| end | |
| threadSteamGetAppTicket = CurrentThread() or true | |
| err, auth_provider_data = AsyncSteamGetAppTicket(tostring(display_name)) | |
| assert(threadSteamGetAppTicket == (CurrentThread() or true)) | |
| threadSteamGetAppTicket = false | |
| if err then | |
| DebugPrint("AsyncSteamGetAppTicket() failed: " .. err .. "\n") | |
| return "steam-auth" | |
| end | |
| return err, auth_provider, auth_provider_data, display_name | |
| end |