Namespace: Steamworks
This function checks to see if an application is authorized for usage by the user.
Parameter | Description |
---|---|
appid | the Steam app ID to check |
Returns true if the specified application can be run by the user. This usually means the application is owned by the user, but will also return true if the app is being loaned or is free to play for a temporary period.
See the Steamworks documentation for additional information about autnentication and ownership of games.
-- Initialize Steamworks
if not Steamworks.Initialize() then
RuntimeError("Steamworks failed to initialize.")
return 1
end
-- Get the App ID
local appId = Steamworks.GetAppId()
-- Check if the app is subscribed
Print("App subscribed: " .. tostring(Steamworks.AppSubscribed(appId)))
-- Check if the app is installed
Print("App installed: " .. tostring(Steamworks.AppInstalled(appId)))
-- Shutdown Steamworks
Steamworks.Shutdown()